OpenDota API endpoint
Returns one league's name, tier (`amateur`, `excluded`, `premium`, `professional` or `unrated` when blank), ticket and banner, plus the teams that played in it with rating and record. An unknown league id returns not found.
/opendota/leagueReturns one Dota 2 league with its participating teams.
Header: x-api-key required.
Parameters:
league_id: required positive league id from opendota-leagues.Notable response behavior:
league.tier has these values: amateur, excluded, premium, professional, unrated.teams list. An unknown league returns 404. The response is cached for up to six hours.| Field | Filled in, of 10 checked | Values in the sample |
|---|---|---|
| id | 10 | |
| name | 10 | “GamerLegion” and 9 other values |
| tag | 10 | “GL” and 9 other values |
| logo_url | 9 | cdn.steamusercontent.com and 1 other host |
| rating | 10 | 1,067.89 to 1,589.46, median 1,318.76 |
| delta | 10 | -21.94 to 24.38, median -2.66 |
| wins | 10 | 5 to 1,887, median 123 |
| losses | 10 | 11 to 1,289, median 123 |
| last_match_time | 10 | 2026-10-25 to 2026-10-29 |
| last_match_id | 10 |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| x-api-key (header) | string | Yes | API key required | ||
| league_id | integer | Yes | Positive OpenDota league ID from opendota-leagues | 20395 |
curl -X GET "https://api.crawlora.net/api/v1/opendota/league?league_id=20395" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"source_url": "https://api.opendota.com/api/league",
"fetched_at": "2026-10-28T10:00:00Z",
"league": {
"id": 20395,
"name": "PARI UNIVERSE by FISSURE",
"tier": "professional"
},
"teams": [
{
"id": 9964962,
"name": "GamerLegion",
"tag": "GL",
"rating": 1324,
"wins": 121,
"losses": 122
}
]
}
}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.LeagueDetailResponse | No | ||||
| data.fetched_at | string | No | 2026-10-27T10:00:00Z | |||
| data.league | opendota.League | No | ||||
| data.league.banner | string | No | https://cdn.opendota.com/leagues/20395.png | |||
| data.league.id | integer | No | 20395 | |||
| data.league.name | string | No | PARI UNIVERSE by FISSURE | |||
| data.league.ticket | string | No | DPC2023 | |||
| data.league.tier | string | No | professional | |||
| data.source_url | string | No | ||||
| data.teams | array | No | Team record, 10 fields: delta, id, last_match_id, last_match_time, logo_url, losses, name, rating, tag, wins. Described under OpenDota team details API. | |||
| 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/league?league_id=20395" \
-H "x-api-key: $CRAWLORA_API_KEY"