OpenDota API endpoint
Returns match IDs for one league, including amateur leagues omitted from opendota_league_matches. An empty array is valid for a league with no matches. Copy an ID into opendota_match for match details.
/opendota/league-match-idsReturns match IDs for one OpenDota league, including amateur leagues that are not covered by the detailed league match list.
Header: Crawlora x-api-key required; no OpenDota API key is needed upstream.
Query parameters:
league_id: required positive OpenDota league ID from opendota-leagues.Notable response behavior:
match_ids array is valid when the league has no matches. The live check for amateur league 2031 returned HTTP 200 with [].The sample array is abbreviated; count reports all IDs returned by OpenDota.
| 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-match-ids?league_id=20395" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"source_url": "https://api.opendota.com/api/leagues/20395/matchIds",
"fetched_at": "2026-10-27T12:00:00Z",
"league_id": 20395,
"count": 45,
"match_ids": [
9063495955,
9063430462
]
}
}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.LeagueMatchIDsResponse | No | ||||
| data.count | integer | No | 45 | |||
| data.fetched_at | string | No | 2026-10-27T10:00:00Z | |||
| data.league_id | integer | No | 20395 | |||
| data.match_ids | array | No | ||||
| 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/league-match-ids?league_id=20395" \
-H "x-api-key: $CRAWLORA_API_KEY"