Zum Inhalt springen
GET /v1/heroes

All heroes with stats

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/dota-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

curl "https://api.oanor.com/dota-api/v1/heroes" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/dota-api/v1/heroes", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/dota-api/v1/heroes");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/dota-api/v1/heroes",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "count": 127,
        "heroes": [
            {
                "id": 1,
                "img": "https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/heroes/antimage.png?",
                "icon": "https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/heroes/icons/antimage.png?",
                "name": "Anti-Mage",
                "roles": [
                    "Carry",
                    "Escape",
                    "Nuker"
                ],
                "pro_ban": 20,
                "pro_win": 10,
                "pro_pick": 18,
                "pub_pick": 349782,
                "attack_type": "Melee",
                "primary_attr": "agi"
            },
            {
                "id": 2,
                "img": "https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/heroes/axe.png?",
                "icon": "https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/heroes/icons/axe.png?",
                "name": "Axe",
                "roles": [
                    "Initiator",
                    "Durable",
                    "Disabler",
                    "Carry"
                ],
                "pro_ban": 125,
                "pro_win": 54,
                "pro_pick": 116,
                "pub_pick": 595631,
                "attack_type": "Melee",
                "primary_attr": "str"
            },
            {
                "id": 3,
                "img": "https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/heroes/bane.png?",
                "icon": "https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/heroes/icons/bane.png?",
                "name": "Bane",
                "roles": [
                    "Support",
                    "Disabler",
                    "Nuker",
                    "Durable"
                ],
                "pro_ban": 88,
                "pro_win": 45,
                "pro_pick": 60,
                "pub_pick": 90342,
                "attack_type": "Ranged",
                "primary_attr": "all"
            },
            {
                "id": 4,
                "img": "https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/heroes/bloodseeker.png?",
                "icon": "https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/heroes/icons/bloodseeker.png?",
                "name": "Bloodseeker",
                "roles": [
                    "Carry",
                    "Disabler",
                    "Nuker",
                    "Initiator"
                ],
                "pro_ban": 9,
                "pro_win": 1,
                "pro_pick": 4,
                "pub_pick": 112315,
                "attack_type": "Melee",
                "primary_attr": "agi"
            },
            {
                "id": 5,
                "img": "https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/heroes/crystal_maiden.png?",
                "icon
…