Vai al contenuto
GET /v1/heroes

All heroes with stats

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/dota-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo 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
…