OpenDota API endpoint
Returns how often a hero faced each other hero in recent public games and how often it won, sorted by games played, with localized hero names and win-rate percentages. An unknown hero id returns not found.
/opendota/hero-matchupsReturns a Dota 2 hero's win record against every other hero.
Header: x-api-key required.
Parameters:
hero_id: required positive hero id from opendota-heroes.Notable response behavior:
wins and games are from the hero's side; win_rate_percent is omitted with no games.404. The response is cached for up to six hours.| Field | Filled in, of 126 checked | Values in the sample |
|---|---|---|
| hero_id | 126 | |
| localized_name | 126 | “Storm Spirit” and 125 other values |
| games | 126 | 2 to 81, median 23 |
| wins | 126 | 1 to 42, median 12 |
| win_rate_percent | 126 | 16.67 to 86.67, median 48.57 |
| 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-matchups?hero_id=1" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"source_url": "https://api.opendota.com/api/hero-matchups",
"fetched_at": "2026-10-28T10:00:00Z",
"hero_id": 1,
"count": 1,
"matchups": [
{
"hero_id": 17,
"localized_name": "Storm Spirit",
"games": 82,
"wins": 41,
"win_rate_percent": 50
}
]
}
}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.HeroMatchupsResponse | No | ||||
| data.count | integer | No | 126 | |||
| data.fetched_at | string | No | 2026-10-27T10:00:00Z | |||
| data.hero_id | integer | No | 1 | |||
| data.matchups | array | No | HeroRecord record, 5 fields: games, hero_id, localized_name, win_rate_percent, wins. Described under OpenDota team hero pool API. | |||
| 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-matchups?hero_id=1" \
-H "x-api-key: $CRAWLORA_API_KEY"