Skip to content

Repository files navigation

🚀 DraftKings Scraper

DraftKings Scraper is a free and open-source scraper that gets you unlimited detailed DraftKings data for free.

✨ What Can I Get?

  • 🏈 Odds for 247 leagues across 24 sports — moneyline, spread and total for every NFL, NBA, MLB, NHL and college game, in American, decimal and fractional odds
  • 📊 Betting splits on every game's main lines — the share of bets and the share of money on each side of the moneyline, spread and total
  • 🎯 162 markets on a single NBA game — player props, quarters, halves, alternate lines, plus live odds, score and clock for every game in play
  • 📈 A full year of line movement — daily prices for the past year, every 5 minutes over the last day, plus DraftKings' ready-made parlays with their bet counts

🏀 Example: A Full DraftKings Game

{
  "league": { "id": "42648", "name": "NBA", "slug": "nba", "link": "https://sportsbook.draftkings.com/leagues/basketball/nba" },
  "category": { "id": "487", "name": "Game Lines" },
  "subcategory": { "id": "4511", "name": "Game" },
  "events": [
    {
      "id": "35102241",
      "name": "PHI 76ers @ ATL Hawks",
      "link": "https://sportsbook.draftkings.com/event/phi-76ers-%40-atl-hawks/35102241",
      "start_time": "2026-12-05T00:10:00Z",
      "status": "not_started",
      "teams": [
        { "id": "32947", "name": "PHI 76ers", "short_name": "PHI", "role": "away" },
        { "id": "32892", "name": "ATL Hawks", "short_name": "ATL", "role": "home" }
      ],
      "markets": [
        { "name": "Moneyline", "selections": [
          { "label": "PHI 76ers", "odds": { "american": -117, "decimal": 1.85, "implied_probability": 53 }, "bet_percent": 81, "handle_percent": 82 },
          { "label": "ATL Hawks", "odds": { "american": -101, "decimal": 1.99, "implied_probability": 50 }, "bet_percent": 19, "handle_percent": 18 }
        ] },
        { "name": "Spread", "selections": [
          { "label": "PHI 76ers", "odds": { "american": -110, "decimal": 1.9 }, "line": -1.5, "bet_percent": 73, "handle_percent": 42 },
          { "label": "ATL Hawks", "odds": { "american": -110, "decimal": 1.9 }, "line": 1.5, "bet_percent": 27, "handle_percent": 58 }
        ] },
        { "name": "Total", "selections": [
          { "label": "Over", "odds": { "american": -115, "decimal": 1.86 }, "line": 226.5, "bet_percent": 55, "handle_percent": 40 },
          { "label": "Under", "odds": { "american": -105, "decimal": 1.95 }, "line": 226.5, "bet_percent": 45, "handle_percent": 60 }
        ] }
      ]
    }
  ]
}

Trimmed for readability.

🚀 Unlimited Free DraftKings Data — Get It in 60 Seconds

1️⃣ Clone and install:

git clone https://github.com/omkarcloud/draftkings-scraper
cd draftkings-scraper
python -m pip install -r requirements.txt

2️⃣ Start the API:

python run.py

DraftKings answers your own connection in the US, Canada and the UK. Anywhere else, set DRAFTKINGS_PROXY=http://user:pass@host:port to a US residential proxy and keep going.

3️⃣ Get your first data:

curl "http://localhost:8000/events/list?league=nba"
{
  "league": { "id": "42648", "name": "NBA", "slug": "nba", "link": "https://sportsbook.draftkings.com/leagues/basketball/nba" },
  "subcategory": { "id": "4511", "name": "Game" },
  "events": [
    {
      "id": "35102241",
      "name": "PHI 76ers @ ATL Hawks",
      "start_time": "2026-12-05T00:10:00Z",
      "status": "not_started",
      "markets": [
        { "name": "Moneyline", "selections": [
          { "label": "PHI 76ers", "odds": { "american": -117, "decimal": 1.85 } },
          { "label": "ATL Hawks", "odds": { "american": -101, "decimal": 1.99 } }
        ] },
        { "name": "Total", "selections": [
          { "label": "Over", "odds": { "american": -115 }, "line": 226.5 },
          { "label": "Under", "odds": { "american": -105 }, "line": 226.5 }
        ] }
      ]
    }
  ]
}

All 13 endpoints are now live at http://localhost:8000.

📚 Endpoints

13 endpoints cover everything you need.

Endpoint Path Returns
League Odds /events/list A league's games with every main line and its betting splits
Search Suggestions / Search Events /search/suggestions, /events/search Autocomplete, then games, futures, teams and players with odds
Event Details / Event Markets /events/details, /events/markets One event's score and menu, and every one of its markets
Bulk Event Odds /events/odds Main lines and splits of up to 50 events in one call
Live Events /events/live Every game in play with score, clock and live odds
Parlays /events/parlays DraftKings' ready-made parlays with legs, odds and bet counts
Odds History /markets/history Line movement for every selection, every 5 minutes to daily
Sports / Leagues / League Details /sports/list, /leagues/list, /leagues/details 24 sports, 247 leagues and each league's bet menu
Trending Searches /search/trending What bettors search for on DraftKings right now

🔍 Exploring Parameters

The same API is published on RapidAPI, and its playground is the easiest place to try parameters and see raw responses. Once a request looks right, run it locally for unlimited free data.

  1. Subscribe to the free plan — 1,000 calls/month, no credit card.
  2. Try the endpoints in the playground — every param is pre-filled, so you see real data in one click.
  3. Copy the generated code and replace https://best-draftkings-scraper-free-1000-calls.p.rapidapi.com with http://localhost:8000. It will now run against your local API.
import requests

# generated by the playground, host swapped for the local API
response = requests.get(
    "http://localhost:8000/events/list",
    params={"league": "nba"},
)
print(response.json())

💬 Have Questions? We Have Answers.

You're a developer — we know how hard completing a project can be. So we offer full support: just message us and we'll reply ✅ with a solution within 1 working day.

Message Us on WhatsApp about DraftKings Scraper

Ask Us by Email about DraftKings Scraper

⚡ Popular Scrapers by Omkar Cloud

⭐ Love It? Star It ⭐!

Star the repo ⭐ and become my star hero!

It's just 1 click, but it means the world to me.

Star us on GitHub