Draftkings.com APIDraftkings.com ↗
Access DraftKings sportsbook odds via API. Get sports categories, league navigation, and live moneyline, spread, and totals for NFL, NBA, MLB, NHL, and more.
No input parameters required.
curl -X GET 'https://api.parse.bot/scraper/b2637ca3-608c-4477-9259-6da2d63b8f49/get_sports_categories' \ -H 'X-API-Key: $PARSE_API_KEY'
Lists all available sports and leagues from the DraftKings sportsbook manifest. Returns sport IDs, league IDs, sport names, league names, and template IDs. Use the league_id from results to query odds or navigation for a specific league.
No input parameters required.
{
"type": "object",
"fields": {
"sports_leagues": "array of sport/league objects with sport_id, sport_name, league_id, league_name, template_id"
},
"sample": {
"sports_leagues": [
{
"sport_id": "7",
"league_id": "84240",
"sport_name": "baseball",
"league_name": "mlb",
"template_id": "a2f7806b-4d02-4c3a-96c4-c19ef71423e3"
},
{
"sport_id": "2",
"league_id": "94682",
"sport_name": "basketball",
"league_name": "wnba",
"template_id": "f0613a94-e73b-4ae6-bf2c-2abafc297015"
},
{
"sport_id": "3",
"league_id": "88808",
"sport_name": "football",
"league_name": "nfl",
"template_id": "02d63505-bc8a-47d7-9ab4-eae634706188"
}
]
}
}About the Draftkings.com API
The DraftKings API provides 3 endpoints covering sports categories, league navigation, and current game odds across major US sports leagues. Starting with get_sports_categories, you can retrieve every sport and league available on DraftKings — including their IDs — then drill into game lines, player props, and futures using get_league_navigation and get_league_odds. Each game record includes participants, start time, status, and odds in American, decimal, and fractional formats.
What the API Covers
The DraftKings API exposes three endpoints that map to the core navigation and odds surfaces of the DraftKings Sportsbook. get_sports_categories returns a flat array of sport/league objects — each with a sport_id, sport_name, league_id, league_name, and template_id. These IDs are the entry point for all downstream queries. Common leagues like NFL (88808), NBA (42648), MLB (84240), NHL (42133), and WNBA (94682) are directly referenceable.
League Navigation and Bet Categories
get_league_navigation accepts a league_id and optional template_id and returns the full category tree for that league. The response includes an array of category objects, each with a title, seo_id, parameters, and nested children. The subcategoryId found inside parameters is what you pass to get_league_odds to target a specific bet type — game lines, player props, or futures. If template_id is omitted, the API applies a default for supported leagues.
Game Odds Structure
get_league_odds accepts a league_id and optional subcategory_id and returns a games array alongside sport and league metadata and a total_games count. Each game object includes an event_id, name, start_date, status, participants, and a full odds breakdown covering moneyline, spread/run line, and over/under totals. Odds are returned in American, decimal, and fractional formats simultaneously, making it straightforward to display or compare across formats.
Official DraftKings Developer API
DraftKings does not publish a public developer API or official data feed for sportsbook odds. This Parse API provides structured access to the same odds data available on the DraftKings Sportsbook site.
- Display live NFL, NBA, or MLB moneyline and spread odds in a sports betting comparison tool
- Track opening and current lines across multiple leagues to detect line movement
- Build a futures odds aggregator using the subcategory navigation from
get_league_navigation - Power a sports betting analytics dashboard with American and decimal odds side by side
- Enumerate all available leagues and their IDs via
get_sports_categoriesfor dynamic league selection in an app - Monitor over/under totals for scheduled games to feed a statistical modeling pipeline
- Aggregate DraftKings odds alongside other sportsbooks for arbitrage or expected-value screening
| Tier | Price | Credits/month | Rate limit |
|---|---|---|---|
| Free | $0/mo | 100 | 5 req/min |
| Hobby | $30/mo | 1,000 | 20 req/min |
| Developer | $100/mo | 5,000 | 250 req/min |
One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.
Does DraftKings have an official public API for odds data?+
What does `get_league_odds` return, and how do I filter by bet type?+
get_league_odds returns a games array with event_id, name, start_date, status, participants, and full odds (moneyline, spread, totals) in American, decimal, and fractional formats. To filter by bet type — for example, player props or futures instead of game lines — pass the subcategory_id obtained from the parameters field of get_league_navigation results.Does the API cover player props or futures odds?+
get_league_navigation endpoint returns subcategory entries for player props and futures (among others), and the corresponding subcategoryId values can be passed to get_league_odds. However, the depth of market coverage depends on what DraftKings makes available for a given league at query time. You can fork this API on Parse and revise it to handle additional subcategory types if you need custom filtering or dedicated endpoints for props and futures.Does the API include historical odds or only current lines?+
Are all sports and leagues supported, or only the major US ones?+
get_sports_categories returns every sport and league currently listed in the DraftKings sportsbook manifest, not just major US leagues. Coverage varies by season and availability on DraftKings. Pre-built league_id examples in the docs cover NFL, NBA, MLB, NHL, and WNBA; all others can be discovered dynamically by calling get_sports_categories first.