Overview
The Odds-API.io provides several endpoints for fetching odds data from multiple bookmakers. This guide covers best practices and common patterns for working with odds data.For an up-to-date list of all supported bookmakers, see the sportsbook API bookmaker list.
Which endpoint should I use?
Basic Workflow
- Get available sports - Fetch the list of supported sports
- Get leagues - Retrieve leagues for your chosen sport
- Get events - Find upcoming or live events
- Get odds - Fetch odds from selected bookmakers
- Stay up to date - Open the WebSocket feed to keep those odds current
Recommended pattern: snapshot, then stream
Fetch your initial odds with/v3/odds/multi, then open a WebSocket connection to keep them current. Every updated message carries the full current market set for that event and bookmaker, so overwrite what you have stored. Never merge, or suspended markets will never disappear from your data.
Use Python’s
websockets library, not websocket-client. Only websockets negotiates the permessage-deflate compression the feed requires. See Compression (Required).Fetching Odds for a Single Event
Use the/v3/odds endpoint to get odds for a specific event. Add markets to keep only the market names you need; it’s optional and defaults to every market:
Fetching Odds for Multiple Events
For better efficiency, use the/v3/odds/multi endpoint to fetch odds for up to 10 events in a single request. Add markets to keep only the market names you need and cut payload size; it’s optional and defaults to every market.
Events come back in the order you requested them. An event none of your bookmakers currently offers is still returned, with an empty bookmakers object. With markets set, an event with no matching market is left out. A 503 means the server is briefly busy: wait for the Retry-After header (seconds), then retry that same request.
Query Parameters
/v3/odds and /v3/odds/multi take the same parameters, except for how you name the events:
Bookmaker names in
bookmakers must match /v3/bookmakers exactly, including case: Bet365 works, bet365 returns 400. Selecting bookmakers with PUT /v3/bookmakers/selected/select ignores case and stores the exact name.
Understanding the Odds Response
The odds response includes multiple markets for each bookmaker:Event Status
status says whether the match is under way: pending, live, settled or cancelled. It can read live before the listed start time, or while /v3/events still lists the event as pending, so use the odds response’s own status when you split pre-match from in-play prices. While an event is pending its odds are pre-match only: a bookmaker that has already taken the match in play is left out of bookmakers until the event reads live. The same applies to /odds/multi, /odds/updated and /odds/summary.
Market Types
Pass these exact names to themarkets parameter. Matching is case-insensitive.
- ML - Match result (Home, Draw, Away). In handball it is always the full-time three-way result, and a two-way handball winner price is listed as Draw No Bet
- Spread - Handicap betting with fractional lines, including Asian lines
- Totals - Total goals/points over or under a line
- Both Teams To Score - Yes/No markets
- Correct Score - Exact score predictions
- Double Chance, Draw No Bet, European Handicap, Half Time / Full Time
- Team Total Home / Team Total Away - Totals for one side only
- Corners, Alternative Corners, 1st Half Corners - Three-way corner totals at a whole line, for example
{ "hdp": 9, "over": "2.200", "under": "2.000", "exactly": "7.500" }. Corners lines can includeexactly; when present, Over and Under both lose on that number. - First Team To Score, Last Team To Score, First Team To Score 1st Period, First Team To Score Touchdown, First Team To Score Field Goal, First Team To Punt and Team To Score 2nd Goal to Team To Score 5th Goal - Each row has
home,awayandnone(no team scores), for example{ "home": "3.200", "away": "2.630", "none": "2.490" }.noneis only there when the bookmaker prices it. - Corners Race - Race to the number of corners in
hdp. Each line hashome,awayandneither(no team reaches the target), for example{ "hdp": 7, "home": "3.250", "away": "4.000", "neither": "1.833" }.neitheris only there when the bookmaker prices it. - Half-time and period variants use a suffix: ML HT, Totals HT, Spread HT, Totals 2H
- Baseball’s first five innings are named in full rather than with the HT suffix: First 5 Innings ML, First 5 Innings Spread, First 5 Innings Totals, First 5 Innings Team Total Home / First 5 Innings Team Total Away
- In ice hockey, basketball, baseball and American football, ML, Spread, Totals and the team totals include overtime, extra innings and the shootout. Lines settled at the end of regulation time are Totals Regulation, Spread Regulation, Team Total Home Regulation / Team Total Away Regulation, and the regulation result with a draw is 3-Way Result
- And many more. The betting markets list has every market name per sport, with its shape and pre-match and in-play flags
markets filter.
Match the full market name. There is no market called “Match Winner” (use ML), and no bare “Over/Under” or “Asian Handicap”, though longer names such as Goals Over/Under do exist. Call
GET /v3/markets?sport=<sport> to see the exact names served for a sport.Finding the Best Odds
Here’s an example of comparing odds across bookmakers to find the best value:Keeping Odds Fresh
For real-time applications, open a WebSocket connection instead of polling. It pushes odds changes the moment they happen, negotiates compression, and replays anything you missed on reconnect.WebSocket Odds API
Full connection details, filters, message shapes, and reconnection with replay.
Polling with /v3/odds/updated
If you can’t hold a persistent connection, /v3/odds/updated is the fallback. It returns a delta: each event carries only the market groups whose updatedAt is at or after your since, and an event with no changed market is left out of the response entirely. When the bookmaker’s odds have just been added to an event, that event carries all of its current markets, including ones last updated before your since, so you also get the opening prices.
From 19 October 2026 a call without
markets returns 400, and so does a list where none of the names exist. If only some names are wrong, the call succeeds and the X-Unknown-Markets header lists the ones to fix.
Responses include these headers:
Make your first call with
since set to 20 seconds ago, then use X-Next-Since for every call after that:
Merging responses
Each response carries only the markets that changed sincesince, not every market of a changed event. The exception is an event that has just gained the bookmaker’s odds: it arrives with all of its current markets, opening prices included, which may be older than since.
- Merge, don’t replace. Update the markets in each response into what you store for that event and bookmaker, keyed by market name. Overwriting an event’s market list with a response drops every market that did not change in that call. Because
X-Next-Sinceoverlaps the previous call by 10 seconds, a market can arrive twice; merging makes that harmless. - A missing market means unchanged, not removed.
/v3/odds/updatedhas no removal signal. Re-read the event with/v3/oddsevery few minutes, or use the WebSocket feed, where everyupdatedmessage carries the full market set anddeleted/no_marketstell you when odds go away. - An event appears only when at least one of its markets changed, or when the bookmaker’s odds have just been added to it.
Bookmaker Status
GET /v3/bookmakers reports the current status of every bookmaker. Each entry carries status and reason:
While a bookmaker is
down, its odds are left out of /v3/odds, /v3/odds/multi, /v3/odds/updated, value bets and arbitrage, and the WebSocket sends a deleted message for each of its matches. When it recovers it is served again automatically. A bookmaker with fewer than 100 active matches is never marked down, so a naturally quiet book is not hidden. The status refreshes about once a minute.
reason is null when ok. For a degraded or down bookmaker it is one of:
Caching Strategies
To optimize performance and reduce API calls:- Cache event lists for 5-10 minutes
- Cache pre-match odds for 30-60 seconds
- For live odds, stream instead of caching - a WebSocket connection is cheaper than any poll interval
Best Practices
Stream, Don't Poll
Stream, Don't Poll
For anything live, open a WebSocket connection instead of polling. It’s real-time, compressed, replays missed messages on reconnect, and doesn’t count against your hourly request limit.
Select Only Needed Bookmakers
Select Only Needed Bookmakers
Select only the most relevant bookmakers for your users. See the full list of supported bookmakers.
Use Multi-Odds for the Initial Snapshot
Use Multi-Odds for the Initial Snapshot
Batch requests using
/v3/odds/multi to load your initial snapshot (up to 10 events, counts as 1 request), then stream changes over WebSocket instead of polling.Implement Proper Caching
Implement Proper Caching
Cache odds data appropriately based on match status (pre-match vs live).
Handle Missing Data Gracefully
Handle Missing Data Gracefully
Not all bookmakers offer all markets. Always check if data exists before accessing it.
Next Steps
WebSockets
Get real-time odds updates via WebSocket connections
Value Bets
Learn how prices above a fair-odds estimate are detected