OpenDota API endpoint
Returns a hero's games and wins grouped by game length in five-minute bins (`start_minute` is the bin's first minute), sorted by length, to show whether the hero is stronger early or late. An unknown hero id returns not found.
/opendota/hero-durationsReturns a Dota 2 hero's games, wins and win rate per game-length bin.
Header: x-api-key required.
Parameters:
hero_id: required positive hero id from opendota-heroes.Notable response behavior:
start_minute 20 covers minutes 20 to 24.404. The response is cached for up to six hours.| Field | Filled in, of 23 checked | Values in the sample |
|---|---|---|
| start_minute | 23 | 5 to 200, median 60 |
| games | 23 | 1 to 2,828, median 56 |
| wins | 23 | 0 to 1,407, median 29 |
| win_rate_percent | 23 | 0 to 100, median 48.55 |
| 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-durations?hero_id=1" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"source_url": "https://api.opendota.com/api/hero-durations",
"fetched_at": "2026-10-28T10:00:00Z",
"hero_id": 1,
"count": 1,
"bins": [
{
"start_minute": 20,
"games": 2400,
"wins": 1300,
"win_rate_percent": 54.17
}
]
}
}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.HeroDurationsResponse | No | ||||
| data.bins | array | No | ||||
| data.bins[].games | integer | No | 2400 | |||
| data.bins[].start_minute | integer | No | 20 | |||
| data.bins[].win_rate_percent | number | No | 54.17 | |||
| data.bins[].wins | integer | No | 1300 | |||
| data.count | integer | No | 23 | |||
| data.fetched_at | string | No | 2026-10-27T10:00:00Z | |||
| data.hero_id | integer | No | 1 | |||
| 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-durations?hero_id=1" \
-H "x-api-key: $CRAWLORA_API_KEY"