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 Historical API

Historical odds and event snapshots.

The Odds API Historical 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 Historical. 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 9 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 9 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 Historical 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.

Historical 3

Historical odds and event snapshots.

GET
/v4/historical/sports/{sport}/odds
Get Historical Sport Odds
getHistoricalOdds 8 params → 200401429
GET
/v4/historical/sports/{sport}/events
Get Historical Sport Events
getHistoricalEvents 6 params → 200401429
GET
/v4/historical/sports/{sport}/events/{eventId}/odds
Get Historical Event Odds
getHistoricalEventOdds 8 params → 200401404429

Schemas 9

The contract defines 9 schemas that model the data the API accepts and returns. The most detailed are Event (7 properties), EventMeta (6 properties), HistoricalOddsResponse (4 properties), HistoricalEventOddsResponse (4 properties). Each schema is shown below with its type and property counts.

HistoricalOddsResponse
object
Historical odds snapshot with timestamp navigation.
4 properties
Market
object
A betting market with outcomes from a bookmaker.
3 properties
HistoricalEventOddsResponse
object
Historical odds snapshot for a single event with timestamp navigation.
4 properties
Event
object
A sporting event with odds from bookmakers.
7 properties
HistoricalEventsResponse
object
Historical events with timestamp navigation.
4 properties
Outcome
object
A betting outcome (team/player) with price.
4 properties
EventMeta
object
Event metadata without odds.
6 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-historical-api-openapi.yml Raw ↑

Other APIs The Odds API publishes across the network.

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