theoddsapi_odds
Get odds for a competition across many bookmakers, filtered by sport, market, and region.
Instructions
Odds for a competition across many bookmakers. QUOTA COSTS markets × regions per call — keep both narrow.
Returns: [{id, sport_key, sport_title, commence_time, home_team, away_team, bookmakers:[{key, title, last_update, markets:[{key:'h2h', last_update, outcomes:[{name, price, point}]}]}]}] — outcome name is a TEAM NAME, not home/away; point appears on spreads/totals only
NOTE: this shape is from the vendor's documentation and has NOT been verified against a live response (we hold no key for this provider). Treat it as approximate — inspect the actual payload before relying on a field name.
Example: EPL head-to-head across AU books {"sport": "soccer_epl", "regions": ["au"], "markets": ["h2h"]}
Auth: needs your own key in THE_ODDS_API_KEY.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sport | Yes | sport_key from theoddsapi_sports, e.g. soccer_epl, americanfootball_nfl. Required — part of the URL path. | |
| markets | No | h2h, spreads, totals, outrights. EACH market multiplies the quota cost. | |
| regions | No | Bookmaker regions: us, us2, uk, eu, au. EACH region multiplies the quota cost. | |
| eventIds | No | Restrict to specific event ids. | |
| bookmakers | No | Specific bookmaker keys instead of whole regions (does not reduce quota cost). | |
| dateFormat | No | Timestamp format. One of: iso, unix. | iso |
| oddsFormat | No | Price format. One of: decimal, american. | decimal |