Skip to main content
The Odds API logo
  • Category: gaming
  • Auth: API_KEY
  • Composio-managed OAuth available? N/A
  • Tools: 9
  • Triggers: 0
  • Slug: THE_ODDS_API
  • Version: 20261101_00

Tools

Slug: THE_ODDS_API_GET_EVENT_MARKETSTool to retrieve available market keys for each bookmaker for a specific event. Returns only recently seen markets - not a comprehensive list. More markets become available as the event’s commence time approaches.

Input Parameters

string
required
Sport key for which to return market data. Obtained from the /sports endpoint.
string
required
Event ID from the /events endpoint. Returns HTTP 404 if the event has expired (completed or cancelled).
string
required
Determines which bookmakers appear in the response. Multiple regions can be specified as comma-separated values (e.g., ‘us,uk’). Each region counts as 1 request per market. Available: uk, us, us2, us_dfs, us_ex, eu, au.
string
Comma-separated list of bookmaker keys to return. If both bookmakers and regions are specified, bookmakers takes precedence. Every group of 10 bookmakers counts as 1 request.
string ("iso" | "unix")
Date format for timestamps.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: THE_ODDS_API_GET_EVENT_ODDSRetrieve bookmaker odds for a specific upcoming or live event, optionally filtered by market, region, or bookmaker. Outcome descriptions, including player names for player props, are not retained in the response.

Input Parameters

string
required
Sport key (e.g., ‘soccer_epl’)
string
required
Event ID to look up odds for
string
Comma-separated market keys to include. Before calling this action, call THE_ODDS_API_GET_EVENT_MARKETS with the same sport, eventId, and regions/bookmakers, then use only keys returned for that event. Market availability is sport-, event-, and bookmaker-specific and changes over time; do not infer player market keys.
string
Regions to filter bookies by (comma-separated, e.g., ‘us,uk,eu,au’)
string
Bookmakers to include (comma-separated names)
string ("iso" | "unix")
Date format for timestamps
string ("decimal" | "american")
Format of odds

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: THE_ODDS_API_GET_EVENTSList live and upcoming events for a specified sport, including event IDs, teams, and start times. The event listing does not include odds.

Input Parameters

string
required
Sport key (e.g., ‘upcoming’, ‘soccer_epl’) Retrieve valid sport keys dynamically from GET_SPORTS rather than hard-coding; mismatched keys return empty odds responses silently.
array
Filter by market types. Comma delimited (h2h, spreads, totals).
array
Filter markets by region. Comma delimited (us, uk, eu, au).
array
Filter by bookmaker keys. Comma delimited.
string ("iso" | "unix")
Date format to return: ‘iso’ or ‘unix’.
string ("decimal" | "american")
Odds format to return: ‘decimal’ or ‘american’.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: THE_ODDS_API_GET_HISTORICAL_EVENTSList events for a sport as they appeared in the closest historical snapshot at or before a specified timestamp. Requires a paid usage plan.

Input Parameters

string
required
ISO 8601 snapshot timestamp. The closest snapshot at or before this time is returned.
string
required
Sport key from THE_ODDS_API_GET_SPORTS.
array
Event IDs to include.
string ("iso" | "unix")
Timestamp format in the response.
string
Inclusive ISO 8601 upper bound for event start time.
string
Inclusive ISO 8601 lower bound for event start time.
boolean
Include available home and away rotation numbers.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: THE_ODDS_API_GET_ODDSTool to fetch live and upcoming event odds for a specified sport, including bookmakers, regions, and markets. Use after retrieving sports via GET_SPORTS; filter by region, market, or event IDs. Response is nested bookmakers → markets → outcomes; not all bookmakers expose every market for every event, so handle missing keys and empty arrays defensively. Combining multiple regions, markets, and eventIds produces large payloads — narrow to one region or specific eventIds where possible.

Input Parameters

string
required
Sport key (e.g., ‘soccer_epl’)
array
Filter by market types. Comma delimited list: h2h, spreads, totals.
array
required
Filter by region. Comma delimited list of regions: us, uk, eu, au.
array
Filter by event IDs. Comma delimited.
array
Filter by bookmaker keys. Comma delimited.
string ("iso" | "unix")
Format of date to return.
string ("decimal" | "american" | "fractional")
Format of odds to return.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: THE_ODDS_API_GET_PARTICIPANTSList participants for a specified sport: teams for team sports or individuals for individual sports. The list may include inactive participants and does not include players on a team.

Input Parameters

string
required
The key identifying the sport (path parameter). Examples include ‘soccer_epl’, ‘upcoming’, etc. Must exactly match a key returned by THE_ODDS_API_GET_SPORTS; mismatched keys return empty payloads rather than an error.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: THE_ODDS_API_GET_SCORESTool to return live and recently completed event scores for a sport. Use after selecting a sport key to inspect current and recent game scores. Missing results may indicate unsupported competitions, not absent events. When identifying specific fixtures, match by both team names and date to avoid confusion with multi-leg ties or similarly named teams.

Input Parameters

string
required
Sport key (e.g., ‘soccer_epl’, ‘upcoming’)
integer
Restrict to games starting within X days (1-3, default 1)
string ("iso" | "unix")
Date/time format: ‘iso’ for RFC3339 strings or ‘unix’ timestamps

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: THE_ODDS_API_GET_SPORTSTool to retrieve a list of in-season sports. Use when you need sports data; set ‘all’ to true to include out-of-season sports. Sport keys returned here must be passed to downstream tools like THE_ODDS_API_GET_EVENTS and THE_ODDS_API_GET_EVENT_ODDS — mismatched or guessed keys return empty payloads. Similarly named leagues and qualifier competitions appear as distinct entries with unique keys; verify the exact key before use.

Input Parameters

boolean
Whether to include all sports (in and out of season)

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: THE_ODDS_API_GET_V3_ODDSTool to fetch odds using the legacy V3 API endpoint. Returns upcoming and live games with odds for a given sport, region, and market. Use for legacy integrations; V4 API is recommended for new implementations.

Input Parameters

string ("h2h" | "spreads" | "totals" | "outrights")
Market type: h2h (default), spreads, totals, or outrights.
string
required
Sport key from /sports endpoint. Use ‘upcoming’ to get live and next 8 games across all sports.
string ("au" | "uk" | "eu" | "us")
required
Bookmaker region: au, uk, eu, or us.
string ("iso" | "unix")
Timestamp format: unix (default) or iso.
string ("decimal" | "american")
Odds format: decimal (default) or american.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not