Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

The Odds API Odds API

Current odds from bookmakers.

The Odds API Odds API is one of 6 APIs that The Odds API publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Odds. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and a getting-started guide.

This API exposes 3 operations across 3 paths, and defines 5 schemas. It is described by OpenAPI 3.0.3, at version 4.0.0.

Requests are made against 2 base URLs: https://api.the-odds-api.com, https://ipv6-api.the-odds-api.com.

3 operations 3 paths 5 schemas 3 GET

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.3
API Version
4.0.0
Base URL
https://api.the-odds-api.com/v4
Authentication
API Key
Terms of Service
Resource Areas
1

Authentication & Security 1

The Odds API Odds API declares 1 security scheme for authenticating requests. An API key is passed in the query as apiKey (apiKey). By default, every request must be authenticated.

Paths & Operations 3

Across 3 paths, the API surfaces 3 operations — 3 GET. Each is listed below with its method, path, parameters, and response codes.

Odds 3

Current odds from bookmakers.

GET
/v4/sports/{sport}/odds
Get Sport Odds
getSportOdds 12 params → 200401422429
GET
/v4/sports/{sport}/events/{eventId}/odds
Get Event Odds
getEventOdds 8 params → 200401404429
GET
/v4/sports/{sport}/events/{eventId}/markets
Get Event Markets
getEventMarkets 6 params → 200401404429

Schemas 5

The contract defines 5 schemas that model the data the API accepts and returns. The most detailed are Event (7 properties), Bookmaker (4 properties), Outcome (4 properties), Market (3 properties). Each schema is shown below with its type and property counts.

Market
object
A betting market with outcomes from a bookmaker.
3 properties
Event
object
A sporting event with odds from bookmakers.
7 properties
Outcome
object
A betting outcome (team/player) with price.
4 properties
Error
object
1 property
Bookmaker
object
A bookmaker providing odds for an event.
4 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

the-odds-api-odds-api-openapi.yml Raw ↑

Other APIs The Odds API publishes across the network.

The Odds API Events API
The Odds API Historical API
The Odds API Participants API
The Odds API Scores API
The Odds API Sports API