curl --request POST \
--url https://api.scrapeunblocker.com/sports/draftkings-odds \
--header 'x-scrapeunblocker-key: <api-key>'import requests
url = "https://api.scrapeunblocker.com/sports/draftkings-odds"
headers = {"x-scrapeunblocker-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-scrapeunblocker-key': '<api-key>'}};
fetch('https://api.scrapeunblocker.com/sports/draftkings-odds', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}DraftKings sportsbook odds for a league
Reads a DraftKings sportsbook league and returns league, events (home, away, startTime, status, live, url) with their markets (name, type, subcategory, margin on two-way and three-way markets) and each market’s selections (name, side, points, milestone, player, american, decimal, fractional, impliedProbability). Prices are numbers. league is a name such as nba, nfl, mlb, nhl, ncaab, ufc, epl, ucl, or a numeric DraftKings league id. By default the league’s game lines come back; availableCategories lists the market groups, and category and subcategory (a name or id from that list) fetch one, such as player props or futures. state selects the US state whose lines are read (default nj). Some exit countries are refused; proxy_country chooses where the request is sent from. A league with no current events returns empty events and a message.
curl --request POST \
--url https://api.scrapeunblocker.com/sports/draftkings-odds \
--header 'x-scrapeunblocker-key: <api-key>'import requests
url = "https://api.scrapeunblocker.com/sports/draftkings-odds"
headers = {"x-scrapeunblocker-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-scrapeunblocker-key': '<api-key>'}};
fetch('https://api.scrapeunblocker.com/sports/draftkings-odds', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Query Parameters
Response
JSON with league and events (empty with a message when nothing is on offer).

