OpenDota API endpoint
Returns the live OpenDota hero lookup needed to resolve `hero_id` values in live and detailed match responses. It includes every current hero ID with its internal name, localized name, primary attribute (`agi`, `all`, `int`, or `str`) and attack type (`Melee` or `Ranged`).
/opendota/heroesReturns OpenDota's current hero lookup for resolving hero_id values in live and detailed match responses.
Header: Crawlora x-api-key required; no OpenDota API key is needed upstream.
Parameters: none.
Notable response behavior:
primary_attr has these values: agi, all, int, str.attack_type has these values: Melee, Ranged.| Field | Filled in, of 127 checked |
|---|---|
| id | 127 |
| name | 127 |
| localized_name | 127 |
| primary_attr | 127 |
| attack_type | 127 |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/opendota/heroes" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"source_url": "https://api.opendota.com/api/heroes",
"fetched_at": "2026-10-27T09:50:00Z",
"count": 2,
"heroes": [
{
"id": 1,
"name": "npc_dota_hero_antimage",
"localized_name": "Anti-Mage",
"primary_attr": "agi",
"attack_type": "Melee"
},
{
"id": 138,
"name": "npc_dota_hero_muerta",
"localized_name": "Muerta",
"primary_attr": "int",
"attack_type": "Ranged"
}
]
}
}Request schema
No body schema
Response schema
Inline response schema
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | Code is the HTTP status code or a custom code used to indicate the result of the request @example 200 | |||
| data | opendota.HeroesResponse | No | ||||
| data.count | integer | No | 127 | |||
| data.fetched_at | string | No | 2026-10-27T10:00:00Z | |||
| data.heroes | array | No | ||||
| data.heroes[].attack_type | string | No | Melee, Ranged | Melee | ||
| data.heroes[].id | integer | No | 93 | |||
| data.heroes[].localized_name | string | No | Slark | |||
| data.heroes[].name | string | No | npc_dota_hero_slark | |||
| data.heroes[].primary_attr | string | No | agi, all, int, str | agi | ||
| data.source_url | string | No | ||||
| msg | unknown | No | Msg is the message that describes the result of the request @example "Request successful" |
| Status | Description | Schema |
|---|---|---|
| 429 | Too Many Requests | #/definitions/app.Response |
| 503 | Service Unavailable | #/definitions/app.Response |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/opendota/heroes" \
-H "x-api-key: $CRAWLORA_API_KEY"