The odds intelligence platform for serious operators.
Real-time, normalized betting lines with multi-book aggregation. Built for developers and data teams that demand precision, uptime, and scale.
Intelligence layer live β fair odds, arbitrage detection, and consensus pricing.
About TheOddsAPI
TheOddsAPI is a sports odds API. Raw market data from 50 bookmakers across 24 sports, served through a single normalized REST endpoint, with Pinnacle anchored on every request. An optional intelligence layer β fair odds, consensus pricing, edge detection β is available for systems that want precomputed signals instead of building those models in-house.
Raw market data
Multi-book odds, normalized into one response. Build your own models on top.
Derived signals Β· Optional
Pre-computed signals for systems that want to skip the modeling work.
Use raw data when you need full control. Use derived signals when you need speed.
Most odds APIs surface raw bookmaker data and stop there. TheOddsAPI adds a thin computation layer β vig removal, market consensus, and Pinnacle-anchored edge detection β so common modeling primitives don't have to be rebuilt from scratch. The raw data is still there. The signals are optional.
Sportsbooks tracked
50+
β Expanding quarterly
Avg. response latency
<500ms
Typical response time
Platform uptime target
99.9%
Pro tier target
Market types
4
h2h Β· spreads Β· totals Β· player props
Quick start
Request access, add one header, and you're pulling normalized odds data from supported sportsbooks in a single call.
Request access
Request access and we'll send your API key directly. Request yours β
Authenticate via header
Every request needs the
x-api-key
header. Works with any HTTP client or language.
Parse normalized JSON
Every response follows the same schema across all bookmakers. No custom parsing per book required.
Base URL
https://api.theoddsapi.com
# Fetch live NBA odds curl -X GET "https://api.theoddsapi.com/odds?sport_key=basketball_nba" \ -H "x-api-key: YOUR_API_KEY"
With optional query parameters
# NBA moneylines + spreads, American format curl -X GET \ "https://api.theoddsapi.com/odds?sport_key=basketball_nba&markets=h2h,spreads&oddsFormat=american®ions=us" \ -H "x-api-key: YOUR_API_KEY" # MLB moneylines curl -X GET \ "https://api.theoddsapi.com/odds?sport_key=baseball_mlb&markets=h2h" \ -H "x-api-key: YOUR_API_KEY" # NBA player props (Business tier) curl -X GET \ "https://api.theoddsapi.com/props?sport_key=basketball_nba" \ -H "x-api-key: YOUR_API_KEY" # Historical odds for backtesting (Business) curl -X GET \ "https://api.theoddsapi.com/historical/odds?sport_key=baseball_mlb&date=2026-04-20" \ -H "x-api-key: YOUR_API_KEY" # EPL odds with international books curl -X GET \ "https://api.theoddsapi.com/odds?sport_key=soccer_epl&markets=h2h,spreads,totals" \ -H "x-api-key: YOUR_API_KEY"
{ "success": true, "source": "cache", "data": [ { "event_id": "a1b2c3d4", "sport": "basketball", "league": "NBA", "home_team": "Los Angeles Lakers", "away_team": "Boston Celtics", "start_time": "2026-03-28T01:00:00Z", "books": [ { "book": "draftkings", "market": "h2h", "updated_at": "2026-03-27T14:38:01Z", "outcomes": [ { "name": "Lakers", "price": -110 }, { "name": "Celtics", "price": -110 } ] } ] } ] }
For developers new to the space
A sports odds API is a developer service that returns real-time betting lines from sportsbooks — programmatically, in a single normalized format. Instead of scraping DraftKings, FanDuel, BetMGM, Pinnacle, and 50 other books one by one, you make one HTTP request and get clean JSON covering every market for every game.
Developers use TheOddsAPI to power arbitrage detection, odds comparison apps, betting models, and analytics dashboards. Supported markets include h2h (moneyline), spreads, totals, and player props for NBA, WNBA, NHL, and MLB. Sports coverage spans 25 sports β NBA, NFL, MLB, NHL, NCAAB, NCAAF, WNBA, MLS, soccer (EPL, Champions League, Europa League, La Liga, Bundesliga, Serie A, Ligue 1, Liga MX, Eredivisie, EFL Championship), tennis, cricket, boxing, UFC, Euroleague, plus AFL and NRL as live odds only.
Why normalized multi-book data matters: every sportsbook publishes odds in its own format, schema, and update cadence. A single normalized response object lets you compare lines across books in milliseconds — the foundation of every modern sharp tool. TheOddsAPI normalizes that noise so your code stays focused on the part that ships value: signal detection, model training, and user experience.
A typical call looks like GET /odds/?sport_key=basketball_nba®ions=us&markets=h2h,spreads,totals. The response returns every NBA game with every book's lines, structured identically. The interactive docs show every endpoint and response shape.
Platform capabilities
Engineered for teams that treat data quality as a competitive moat β not an afterthought.
Lines reflect current sportsbook prices within seconds. Intelligent caching preserves quota without sacrificing freshness.
LIVE DATAIdentical schema regardless of source. Compare DraftKings and Pinnacle in the same loop β no translation layer needed.
DATA QUALITYPass your key via the x-api-key header. Per-environment keys with instant revocation and clear rate-limit headers.
Access prior odds snapshots for backtesting quantitative models and tracking line movement over time.
ANALYTICSFull Swagger UI at api.theoddsapi.com/docs. Generate typed clients in any language from the spec.
Async Python FastAPI with an intelligent caching layer. Consistent, predictable performance under high request volume.
PERFORMANCEIntelligence layer
Now liveRaw odds are just the starting point. We run the analytical layer on top β fair odds pricing, cross-book edge detection, and consensus modeling.
Business tier subscribers get full access to the intelligence endpoints, included in the plan.
No-vig fair prices derived from multi-book consensus. Benchmark any sportsbook against the true market and spot mispriced lines at a glance.
GET /intelligence/fair-odds
Automated identification of pricing inefficiencies across books. Surface the signals your models are missing β the edges that close fast.
GET /intelligence/edges
Aggregated fair market price from multi-book data. Know what the line should be β not just what it is at any single book.
GET /intelligence/consensus
Business tier Β· Live now
Intelligence endpoints included with every Business tier subscription.
Technical specification
Every response is schema-validated and structured identically regardless of source book. Your integration stays stable even when bookmakers update their own formats.
{ "success": true, "source": "cache", "data": [ { "event_id": "a1b2c3d4e5f6", "sport": "basketball", "league": "NBA", "home_team": "Los Angeles Lakers", "away_team": "Boston Celtics", "start_time": "2026-03-28T01:00:00Z", "books": [ { "book": "draftkings", "market": "h2h", "updated_at": "2026-03-27T14:38:01Z", "outcomes": [ { "name": "Lakers", "price": -110 }, { "name": "Celtics", "price": -110 } ] } ] } ] }
Built for developers, data teams & trading desks
24
SPORTS
50
SPORTSBOOKS
30s
REFRESH
1
API CALL
Arbitrage detection
Compare DraftKings, FanDuel, BetMGM, Pinnacle & 50 books in a single normalized response. Spot cross-book edges in real time.
Model training
Historical odds archive + 30-second snapshots on top-tier sports. Build backtested models on months of multi-book data.
Odds comparison apps
One API call returns h2h, spreads, and totals from every tracked book. No scraping, no rate limits, no data normalization headaches.
Subscription tiers
Designed to grow with your product. All plans are provisioned directly β reach out and we'll get you set up. Volume and annual pricing available on request.
Free
$0/mo
Explore the API with limited access. Perfect for evaluating the platform before committing.
Get Started - FreeLimited access
Professional
$29/mo
For bot builders, model runners, and automation devs. API key delivered instantly.
Subscribe - $29/moLive now
Business
$99/mo
For trading desks and sharp operations. First access to edges, consensus, and line movement.
Subscribe - $99/moLive now
Intelligence layer (live)
Coming soon
Annual billing available at a discount Β· Custom volume pricing on request Β· Talk to us β
Frequently asked
Built for developers, model builders, and trading desks. Here's what most people ask before they ship.
Get started
Join the developers and data teams building smarter sports products on TheOddsAPI. Request access and we'll send your API key directly.
Request access
Tell us what you're building. We'll send your API key from hello@theoddsapi.com within one business day.