DraftKings Sportsbook API endpoint
Returns public sport, league, and event navigation identifiers for a numeric DraftKings event id. Use it to associate an event with DraftKings Sportsbook's public sport and league navigation.
/draftkings/sportsbook/event-contextQuery parameters:
event_id: required. Numeric DraftKings event identifier.Notable response behavior:
404 when DraftKings has no public context for the event.| Field | In the sample |
|---|---|
| event_id | Has a value |
| sport_id | Has a value |
| league_id | Has a value |
| sport_seo_id | Has a value |
| league_seo_id | Has a value |
| event_seo_id | Has a value |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| event_id | string | Yes | Numeric DraftKings event id | 34522271 | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/draftkings/sportsbook/event-context?event_id=34522271" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"event_id": "34522271",
"sport_id": "7",
"league_id": "84240",
"sport_seo_id": "baseball",
"league_seo_id": "mlb",
"event_seo_id": "chi-white-sox-@-det-tigers"
}
}Request schema
No body schema
Response schema
#/definitions/sportsbook.eventContextResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | sportsbook.EventContextResponse | No | ||||
| data.event_id | string | No | 34522271 | |||
| data.event_seo_id | string | No | chi-white-sox-@-det-tigers | |||
| data.fetched_at | string | No | ||||
| data.league_id | string | No | 84240 | |||
| data.league_seo_id | string | No | mlb | |||
| data.source_url | string | No | ||||
| data.sport_id | string | No | 7 | |||
| data.sport_seo_id | string | No | baseball | |||
| msg | string | No | OK |
| 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/draftkings/sportsbook/event-context?event_id=34522271" \
-H "x-api-key: $CRAWLORA_API_KEY"