OpenDota API endpoint
Returns the items players buy on a hero in four phases (`start_game`, `early_game`, `mid_game`, `late_game`), each sorted by purchase count, with item ids resolved to internal names such as `power_treads` through the item-id table. An unknown hero id returns not found.
/opendota/hero-itemsReturns the most bought items per game phase for a Dota 2 hero.
Header: x-api-key required.
Parameters:
hero_id: required positive hero id from opendota-heroes.Notable response behavior:
phases[].phase has these values: start_game, early_game, mid_game, late_game.name is the internal item name from the item_ids table of opendota-constants and is omitted for an id missing from it.404. The response is cached for up to six hours.| Field | Filled in, of 4 checked | Values in the sample |
|---|---|---|
| phase | 4 | “start_game” and 3 other values |
| items | 4 | median 15 entries |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| x-api-key (header) | string | Yes | API key required | ||
| hero_id | integer | Yes | Positive hero ID from opendota-heroes | 1 |
curl -X GET "https://api.crawlora.net/api/v1/opendota/hero-items?hero_id=1" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"source_url": "https://api.opendota.com/api/hero-items",
"fetched_at": "2026-10-28T10:00:00Z",
"hero_id": 1,
"phases": [
{
"phase": "early_game",
"items": [
{
"item_id": 29,
"name": "boots",
"count": 99
},
{
"item_id": 56,
"name": "ring_of_health",
"count": 99
}
]
}
]
}
}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.HeroItemsResponse | No | ||||
| data.fetched_at | string | No | 2026-10-27T10:00:00Z | |||
| data.hero_id | integer | No | 1 | |||
| data.phases | array | No | ||||
| data.phases[].items | array | No | ||||
| data.phases[].items[].count | integer | No | 97 | |||
| data.phases[].items[].item_id | integer | No | 63 | |||
| data.phases[].items[].name | string | No | power_treads | |||
| data.phases[].phase | string | No | start_game, early_game, mid_game, late_game | early_game | ||
| 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 |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 404 | Not Found | #/definitions/app.Response |
| 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/hero-items?hero_id=1" \
-H "x-api-key: $CRAWLORA_API_KEY"