← Back to marketplace

DraftKings

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.

other
by Mark822 endpoints100% uptime90ms avg

Includes 100 free calls per month

After the free quota, standard per-request pricing applies via x402 (USDC on Base).

Endpoints

GET/v1/general/leagues
$0.0010/req

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_idstring

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"
      }
    }
  }
}
GET/v1/general/live-sports
$0.0010/req

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"
      }
    }
  }
}
GET/v1/general/search
$0.0010/req

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

querystringrequired

Search text, between 2 and 100 characters (e.g. lakers)

Response schema

querystring
matchesarray
teamsarray
playersarray
GET/v1/general/search/suggestions
$0.0010/req

Returns the search terms suggested for the typed text: team, player and league names that complete it.

Request schema

querystringrequired

Typed text, between 2 and 100 characters (e.g. lak)

Response schema

querystring
suggestionsarray
GET/v1/general/search/trending
$0.0010/req

Returns the search terms that are trending on the sportsbook right now.

Request schema

{
  "type": "object",
  "properties": {}
}

Response schema

{
  "type": "array",
  "items": {
    "type": "string"
  }
}
GET/v1/general/sports
$0.0010/req

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"
      }
    }
  }
}

Quick start

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)

Pricing calculator

Estimate your monthly cost for DraftKings.

GET /v1/general/leagues$0.0010/req
-
GET /v1/general/live-sports$0.0010/req
-
GET /v1/general/search$0.0010/req
-
GET /v1/general/search/suggestions$0.0010/req
-
GET /v1/general/search/trending$0.0010/req
-
GET /v1/general/sports$0.0010/req
-
GET /v1/league/details$0.0010/req
-
GET /v1/league/matches$0.0010/req
-
GET /v1/league/standings$0.0010/req
-
GET /v1/league/teams$0.0010/req
-
GET /v1/match/details$0.0010/req
-
GET /v1/match/live$0.0010/req
-
GET /v1/match/markets$0.0010/req
-
GET /v1/match/odds-history$0.0010/req
-
GET /v1/match/parlays$0.0010/req
-
GET /v1/player/details$0.0010/req
-
GET /v1/player/markets$0.0010/req
-
GET /v1/team/details$0.0010/req
-
GET /v1/team/injuries$0.0010/req
-
GET /v1/team/roster$0.0010/req
-
GET /v1/team/schedule$0.0010/req
-
GET /v1/team/statistics$0.0010/req
-