Discover/DraftKings API
live

DraftKings 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.

This API takes change requests — .
Endpoint health
verified 3d ago
get_league_navigation
get_sports_categories
get_league_odds
3/3 passing latest checkself-healing
Endpoints
3
Verified account required
Updated
4d ago

What is the DraftKings 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.

This call costs10 credits / call— charged only on success
Try it

No input parameters required.

api.parse.bot/scraper/b2637ca3-608c-4477-9259-6da2d63b8f49/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/b2637ca3-608c-4477-9259-6da2d63b8f49/get_sports_categories' \
  -H 'X-API-Key: $PARSE_API_KEY'
Python SDK · recommended

Typed, relational, agent-ready

A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.

  • Fully typed · autocompletes
  • Objects link to objects
  • Typed errors & pagination

Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:

uv add parse-sdk
uv run parse init
uv run parse add --marketplace draftkings-com-api

uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.

"""Walkthrough: DraftKings Sportsbook SDK — bounded, re-runnable; every call capped."""
from parse_apis.DraftKings_Sportsbook_API import DraftKingsSportsbookAPI, LeagueId, ParseError

client = DraftKingsSportsbookAPI()

# List available sports/leagues to discover IDs
for league in client.sport_leagues.list(limit=3):
    print(league.sport_name, league.league_name, league.league_id)

# Get navigation for a golf league (PGA Tour)
nav = client.league_navigations.get(league_id=LeagueId._189706)
print(nav.league_id)
for cat in nav.categories[:2]:
    print(cat.title, cat.seo_id)

# Get golf odds (tournament winner futures, top finishers)
try:
    odds = client.league_oddses.get(league_id=LeagueId._189706)
    print(odds.sport.name, odds.league.name, odds.total_games)
    for game in odds.games[:1]:
        print(game.name, game.start_date)
        for market in game.odds[:2]:
            print(market.market_name, market.market_type)
            for sel in market.selections[:3]:
                print(sel.label, sel.odds_american, sel.odds_decimal)
except ParseError as e:
    print("error:", e)

print("exercised: sport_leagues.list, league_navigations.get, league_oddses.get")
All endpoints · 3 totalmissing one? ·

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.

Input

No input parameters required.

Response
{
  "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 API

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.

Reliability & maintenanceVerified

The DraftKings API is a managed, monitored endpoint for Draftkings.com — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when Draftkings.com changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official Draftkings.com API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
3d ago
Latest check
3/3 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • 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_categories for 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
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 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.

Frequently asked questions
Does DraftKings have an official public API for odds data?+
No. DraftKings does not offer a public developer API or documented data feed for sportsbook odds. This Parse API provides structured access to the odds data available on the DraftKings Sportsbook.
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?+
The 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?+
The API returns current odds and scheduled game data as available on the DraftKings Sportsbook — there is no historical odds archive exposed by the existing endpoints. You can fork this API on Parse and revise it to add a data-logging or historical storage layer if your use case requires tracking odds over time.
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.
Page content last updated . Spec covers 3 endpoints from Draftkings.com.
Related APIs in SportsSee all →
oddsportal.com API
Track sports betting odds, matches, and results across multiple sports and leagues in real-time, while viewing team standings and match details to stay informed on upcoming games. Access comprehensive betting data and historical results from OddsPortal to compare odds and analyze sports outcomes.
unibet.com API
Access live betting odds, browse sports categories and upcoming matches, and search for specific events across multiple leagues in real-time. Get detailed event information including current odds for thousands of sports matchups to inform your betting decisions.
oddschecker.com API
Compare betting odds across multiple bookmakers for a wide range of sports, markets, and events on Oddschecker. Retrieve match details, race cards, market outcomes, and bookmaker-by-bookmaker odds to identify the best available prices.
oddspedia.com API
Find profitable betting opportunities and compare real-time odds across dozens of bookmakers to identify sure bets, value bets, and dropping odds for various sports. Filter matches by sport, league, and region to make informed betting decisions with comprehensive odds comparisons and match information.
pinnacle.com API
Access real-time and pre-event sports betting odds, matchups, and markets from Pinnacle. Retrieve data across all available sports and leagues, monitor live events with scores and live odds, and explore political and entertainment betting markets. Covers full market depth including spreads, totals, moneylines, props, and alternate lines.
sportsbookreview.com API
Compare sportsbooks and their ratings, view real-time betting odds across sports and specific matchups, monitor how lines move over time, and discover expert picks and promotions all in one place. Make more informed betting decisions by accessing comprehensive sportsbook reviews, odds comparisons, and professional analysis.
stake.com API
Get live and detailed betting odds across popular sports fixtures from Stake.com, with the ability to search current odds by sport or dive into specific fixture market data. Monitor real-time odds movements to stay updated on the latest betting lines for your favorite sports events.
bet365.com.au API
Browse available sports on bet365 Australia and retrieve current in-play markets with selections and odds across sports.