Fast JSON API for the DraftKings sportsbook - sports and leagues, live and upcoming matches with odds, every market with American, decimal and fractional odds and implied probabilities, outrights, same game parlays, odds movement, search, standings, rosters, schedules, injuries and player props.
Includes 100 free calls per month
After the free quota, standard per-request pricing applies via x402 (USDC on Base).
Returns the leagues open for betting with their id, name, slug, sport and region. With "sport_id" the list covers that sport only; without it, it covers the whole sportsbook.
Request schema
Sport id as returned by the sports list (e.g. 3 for football, 2 for basketball)
Response schema
{
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"slug": {
"type": "string"
},
"sportId": {
"type": "string"
},
"sportName": {
"type": "string"
},
"region": {
"type": "string"
},
"regionCode": {
"type": "string"
},
"isFeatured": {
"type": "boolean"
},
"hasSameGameParlay": {
"type": "boolean"
}
}
}
}Returns the sports that have matches in play right now. Use their ids with the live matches endpoint.
Request schema
{
"type": "object",
"properties": {}
}Response schema
{
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"slug": {
"type": "string"
}
}
}
}Searches the sportsbook by team, player, league or match name. Returns the matching matches and outrights with their leading markets and odds, plus the matching teams and players.
Request schema
Search text, between 2 and 100 characters (e.g. lakers)
Response schema
Returns the search terms suggested for the typed text: team, player and league names that complete it.
Request schema
Typed text, between 2 and 100 characters (e.g. lak)
Response schema
Returns the search terms that are trending on the sportsbook right now.
Request schema
{
"type": "object",
"properties": {}
}Response schema
{
"type": "array",
"items": {
"type": "string"
}
}Returns every sport of the sportsbook with its id, name, slug and the number of leagues open for betting.
Request schema
{
"type": "object",
"properties": {}
}Response schema
{
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"slug": {
"type": "string"
},
"leagueCount": {
"type": "integer"
}
}
}
}Easiest way: the APIHub CLI. Credits cover x402, no wallet needed.
# install and set up once
npx @apihubio/cli register
npx @apihubio/cli topup 10
# call this service
npx @apihubio/cli call -X GET "https://proxy.apihub.io/draftkings/v1/general/leagues" \
-d '{"sport_id":"3"}'Or call the proxy directly (curl / any HTTP client):
curl https://proxy.apihub.io/draftkings/v1/general/leagues \
-H "Authorization: Bearer ahk_your_key"
# If credits available: charged automatically, returns 200
# Otherwise: returns 402 (pay via @x402/fetch or top up credits)Estimate your monthly cost for DraftKings.