Sports
DraftKings Scraper
draftkings.com
DraftKings is one of the largest US sportsbooks, and its site reads its lines from a content API that returns flat lists of events, markets and selections joined by id, with leagues behind opaque numbers. ScrapeUnblocker serves it through one plugin endpoint that returns the lines already joined up, so an odds scraper is one API call instead of a client to maintain. draftkings-odds takes a league by name, such as nba, nfl, mlb, nhl, ncaab, ufc, epl or ucl, or by its numeric id, and returns the league's events: teams, start time, status and link, each with its markets and selections. By default those are the game lines. Every league also lists its market groups in availableCategories, and passing one as category and subcategory fetches it instead, such as player points, quarters, game props or futures. A selection has its name, side, points, player and milestone where they apply, and its price as a number in American, decimal and fractional form with the implied probability; two-way and three-way markets also carry the book's margin. state picks the US state whose lines are read. It reads the public odds any visitor sees, and no account or login is involved.
What you can extract
- Events for any league: teams, start time, status and event link
- Moneyline, spread and total lines, or any market group the league offers
- Every price as a number in American, decimal and fractional form, with the implied probability
- Points, players and milestones on props
- The book's margin on two-way and three-way markets
- The league's market groups and sub-groups, usable as inputs
- League names instead of opaque ids, with raw ids also accepted, per US state
Dedicated endpoints
/sports/draftkings-odds Lines of a league
A league by name or id (league: nba, nfl, mlb, nhl, ncaab, ufc, epl, ucl, or a numeric DraftKings league id). Returns league (id, name, sport), state, events and totalEvents, plus availableCategories (id, name, subcategories); each event has id, name, home, away, startTime, status, live, url and markets (id, name, type, subcategory, main, margin, selections with name, side, points, milestone, player, american, decimal, fractional, impliedProbability and mainLine). category and subcategory (a name or id from availableCategories) fetch that market group instead of the game lines. state is a US state code, default nj. proxy_country is optional. A league with no current events is a 200 with empty events and a message; an unknown league or category is a 404.
How to scrape it
curl -X POST \
-H "X-ScrapeUnblocker-Key: $SU_API_KEY" \
"https://api.scrapeunblocker.com/sports/draftkings-odds?league=nba"import requests
resp = requests.post(
"https://api.scrapeunblocker.com/sports/draftkings-odds",
headers={"X-ScrapeUnblocker-Key": SU_API_KEY},
params={"league": "nba"},
)
print(resp.text)import { ScrapeUnblockerClient } from 'scrapeunblocker';
const su = new ScrapeUnblockerClient({ apiKey: process.env.SU_API_KEY });
const lines = await su.draftkingsOdds({ league: 'nba' });
const props = await su.draftkingsOdds({ league: 'nba', category: 'Player Points' });
console.log(lines);
console.log(props); Requests are POST and take their parameters in the query string. Browser rendering always happens - there is no flag to enable.
Example response
{
"league": { "id": "42648", "name": "NBA", "sport": "Basketball" },
"state": "nj",
"events": [
{
"id": "34978842",
"name": "LA Lakers @ ATL Hawks",
"home": "ATL Hawks",
"away": "LA Lakers",
"startTime": "2026-11-10T00:10:00Z",
"status": "NOT_STARTED",
"live": false,
"url": "https://sportsbook.draftkings.com/event/la-lakers-%40-atl-hawks/34978842",
"markets": [
{
"id": "1_87138320",
"name": "Moneyline",
"type": "Moneyline",
"subcategory": "Game",
"main": true,
"margin": 0.0431,
"selections": [
{ "name": "LA Lakers", "side": "Away", "american": 101, "decimal": 2.01, "fractional": "101/100", "impliedProbability": 0.4975 },
{ "name": "ATL Hawks", "side": "Home", "american": -120, "decimal": 1.833, "fractional": "5/6", "impliedProbability": 0.5456 }
]
}
]
}
],
"totalEvents": 9,
"availableCategories": [
{ "id": 487, "name": "Game Lines", "subcategories": [{ "id": 4511, "name": "Game" }] }
]
} Frequently asked questions
Is it legal to scrape DraftKings?
Collecting publicly available odds is lawful in many jurisdictions, but the rules depend on your country, the data you collect and how you use it, and betting itself is restricted in many places. ScrapeUnblocker returns the public odds the site shows without an account; what you collect and how you use it is your responsibility.
How do I scrape DraftKings without getting blocked?
The plugin reads the sportsbook's content API through ScrapeUnblocker's fetch chain and retries a refused read on a fresh exit. Some exit countries are refused, so leave proxy_country blank unless you need one. In ScrapeUnblocker's benchmark it returned data on 99.23% of 1,683 calls across different leagues and market groups, averaging 2.73 seconds per call.
Which leagues and markets are covered?
Any league DraftKings lists: NBA, NFL, MLB, NHL, college sports, UFC, soccer leagues, tennis, golf and more, by name or by id. The default is the game lines; availableCategories lists the rest, such as player props, quarters, game props, team props and futures.
Can I get player props?
Yes. Pass the group as category, for example Player Points, and optionally a subcategory. Each selection then carries the player and the milestone or points, with the price in American and decimal form.
How much does it cost to scrape DraftKings?
Each call is one request, whatever it returns: a league's game lines or one market group. 1 request = 1 credit, EUR 1.00 per 1,000 on pay as you go, down to about EUR 0.55 per 1,000 on the Ultimate plan. Blocks and timeouts are not billed, and the free trial includes 500 requests with no card.
Related scrapers
DraftKings and other names and marks of draftkings.com belong to their owner and are used here only to identify the website this API works with. ScrapeUnblocker is an independent service, not affiliated with, endorsed by or sponsored by the owner of draftkings.com.
Start scraping this site today
Free tier included. No credit card required to test it.