Odds API
Our odds API gives you programmatic access to odds data that isn't available through any official API. Get data on sportsbook odds data, betting lines from BetMGM, Caesars, DraftKings, FanDuel, Bet365, NFL, NBA, NHL, CFB, CBB, UCL, UFC leagues, moneylines, point spreads, over/under totals, and more. And the best part? You can try the odds API entirely for free, no credit card required.

Trusted by industry leaders all over the world
Integrate our odds API
Access the odds API using Python, JavaScript, CLI, cURL, OpenAPI, or MCP. Choose your preferred option and start extracting odds data in minutes.
Python
JavaScript
HTTP
MCP
1from apify_client import ApifyClient2
3# Initialize the ApifyClient with your Apify API token4# Replace '<YOUR_API_TOKEN>' with your token.5client = ApifyClient("<YOUR_API_TOKEN>")6
7# Prepare the Actor input8run_input = {9 "league": "NHL",10 "sportsbook": "Consensus",11}12
13# Run the Actor and wait for it to finish14run = client.actor("harvest/sportsbook-odds-scraper").call(run_input=run_input)15
16# Fetch and print Actor results from the run's dataset (if there are any)17print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])18for item in client.dataset(run["defaultDatasetId"]).iterate_items():19 print(item)20
21# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start
Get data with odds API
Extract comprehensive sportsbook odds by providing league selection, optional date filters, team abbreviations, and sportsbook preferences. The sportsbook odds API returns structured JSON data with team details, scheduled game times, moneylines, point spreads, over/under totals, current and opening odds, and best line indicators across multiple sportsbooks.
Input
{ "date": "2024-11-28", "team": "MIA", "league": "NFL", "sportsbook": "DraftKings"}
Output
[ { "odds": [ { "moneyLine": { "isBestAwayLine": true, "isBestHomeLine": false, "currentAwayOdds": "+145", "currentHomeOdds": "-175", "openingAwayOdds": "+130", "openingHomeOdds": "-155" }, "overUnder": { "currentTotal": "47", "openingTotal": "48.5", "currentOverOdd": "-108", "isBestOverLine": true, "openingOverOdd": "-110", "currentUnderOdd": "-112", "isBestUnderLine": false, "openingUnderOdd": "-110" }, "sportsbook": "draftkings", "pointSpread": { "isBestAwayLine": true, "isBestHomeLine": false, "currentAwayOdds": "-115", "currentHomeOdds": "-105", "openingAwayOdds": "-110", "openingHomeOdds": "-110", "currentAwayHandicap": "+3.5", "currentHomeHandicap": "-3.5", "openingAwayHandicap": "+3", "openingHomeHandicap": "-3" } } ], "awayTeam": { "abbr": "MIA", "location": "Miami", "nickName": "Dolphins", "shortName": "MIA", "mediumName": "Miami" }, "homeTeam": { "abbr": "GB", "location": "Green Bay", "nickName": "Packers", "shortName": "GB", "mediumName": "Green Bay" }, "scheduledTime": "2024-11-29T01:20:00Z" }]
Sign up for Apify account01
Creating an account is quick and free — no credit card required. Your account gives you access to more than 5,000 scrapers and APIs.
Get your Apify API token02
Go to settings in the Apify console and navigate to the “API & Integrations” tab. There, create a new token and save it for later.
Integrate odds API03
Navigate to the odds API page and click on the API dropdown menu in the top right corner. In the dropdown menu, you can see API clients, API endpoints, and more.
Get your odds data via API04
Now, you can use the API and get the data you need from odds.

Why use Apify?
Never get blocked
Every plan (free included) comes with Apify Proxy, which is great for avoiding blocking and giving you access to geo-specific content.
Customers love us
We truly care about the satisfaction of our users and thanks to that we're one of the best-rated data extraction platforms on both G2 and Capterra.
Monitor your runs
With our latest monitoring features, you always have immediate access to valuable insights on the status of your web scraping tasks.
Export to various formats
Your datasets can be exported to any format that suits your data workflow, including Excel, CSV, JSON, XML, HTML table, JSONL, and RSS.
Integrate Apify to your workflow
You can integrate your Apify runs with platforms such as Zapier, Make, Keboola, Google Drive, or GitHub. Connect with practically any cloud service or web app.
Large developer community
Apify is built by developers, so you'll be in good hands if you have any technical questions. Our Discord server is always here to help!
Get AI-ready odds data via API
Connect to hundreds of apps right away using ready-made integrations, or set up your own with webhooks and our API.
No, there is no official sportsbook odds API from the major betting platforms. This Apify Actor serves as an unofficial solution that scrapes odds data from BetMGM, Caesars, DraftKings, FanDuel, and Bet365 to provide comprehensive betting information in a structured format. The scraper operates within the terms of use of the sportsbooks' websites while respecting all applicable legal requirements.
Yes, you can try the sportsbook odds API for free! Apify offers a free tier that allows you to test the scraper with limited usage. The Actor has a base pricing of $25.00/month plus usage costs, but you can start with the free trial to explore the data extraction capabilities and see if it meets your betting analysis or research needs before committing to a paid plan.
The sportsbook odds API provides comprehensive betting data including team information (names, abbreviations, locations), scheduled game times, moneylines with current and opening odds, point spreads with handicaps and odds, over/under totals with current and opening lines, and best line indicators. Data covers popular leagues like NFL, CFB, NBA, CBB, NHL, UCL, and UFC from major sportsbooks including BetMGM, Caesars, DraftKings, FanDuel, and Bet365.
Yes, it is legal to scrape publicly available sportsbook odds data for personal use, research, and analysis purposes. This scraper operates within the terms of use of the sportsbooks' websites and respects all applicable legal requirements. However, users should always ensure they comply with local laws and regulations regarding data usage, and consider the intended use of the scraped data, especially for commercial purposes.
Getting started with the sportsbook odds API is simple: first, add the Actor to your Apify account, then configure the required input parameter 'league' (choose from NFL, College-Football, NBA, College-Basketball, NHL, UCL, or UFC). Optionally, add filters like specific dates, team abbreviations, or sportsbook preferences. Run the scraper and export your data in JSON, CSV, or your preferred format for betting analysis and research.