# OddsRelay Historical API

**Canonical:** https://apis.io/apis/oddsrelay/oddsrelay-historical-api/  
**Provider:** OddsRelay — https://apis.io/providers/oddsrelay/  
**Base URL:** https://api.oddsrelay.io  
**Documentation:** https://oddsrelay.io/docs

OddsRelay Historical API is one of 5 APIs that [OddsRelay](https://apis.io/providers/oddsrelay/) publishes on the [APIs.io](https://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 an API reference.

Historical odds, bookmakers and exchanges (`bookmakersOnly=true`: bookmakers alone): the board as of any instant since 2026-10-17 (nothing before 2026-10-15 is ever served), event histories, closing lines, bulk files. Released a UTC day at a time, the night after it (a later instant is 400 `date_out_of_range` with `latest`). Priced in tokens by /v2/pricing `regions.uk.historical` (an international region: its own `regions.<code>.historical` block). Each of the 20 international codes is its own archive of its own venues: bookmakers, and in `ca` also STX (`stx_ca`, Ontario's betting exchange, as /v2/odds/raw serves it there: its back prices under each market's key, its lay prices under `<key>_lay`; `bookmakersOnly=true` leaves it out, and a file's `bookmakers_only` says whether the file holds its rows), recorded from 2026-11-16T05:50Z, the lane's first checkpoint (its first day 2026-11-16: an instant before that day is 400 `date_out_of_range` with `earliest` 2026-11-16T00:00:00.000Z, one inside it before the first checkpoint 404 `no_history`), `gr` from its switch-on at 2026-11-16T18:19Z (a `gr` page asked for before it is empty, and free), with uk's tiers, release lag and rules. Exchanges (Betfair Exchange, Smarkets and Matchbook) are recorded from 2026-10-17 (the first whole day is 2026-10-18): each outcome's best back price, best lay price and `available` (the stake at the best lay) — no ladder, no traded volume; snapshots of an instant from 2026-11-06 17:53 UTC on also carry `back_available` (the stake at the best back), change rows do not. BETDAQ, which closed on 2026-10-21, is in no answer. The bulk files and the closing lines hold exchanges too (a file's `bookmakers_only` says whether it holds bookmakers alone). The event `id` is the only safe join between a bulk file, a history reply and the live routes: a file row's `sport_key` is the league recorded when the row was cut, a reply's the league the id is served with, and the two can differ.

## Operations (5)

| Method | Path | Summary |
|---|---|---|
| GET | `/v2/historical/odds/raw` | The raw board as of an instant |
| GET | `/v2/historical/events/{id}/odds` | One event's price changes |
| GET | `/v2/historical/closing` | Closing lines of a day's events |
| GET | `/v2/historical/files` | The bulk files |
| GET | `/v2/historical/files/{tier}/{sport}/{file}` | Download one bulk file |

## Machine-readable artifacts (3)

- **OpenAPI** — https://artifacts.apis.io/oddsrelay/openapi/oddsrelay-historical-api-openapi.yml
- **Documentation** — https://oddsrelay.io/docs
- **APIReference** — https://oddsrelay.io/docs/reference

## Other OddsRelay APIs (4)

- [OddsRelay Odds API](https://apis.io/apis/oddsrelay/oddsrelay-odds-api/)
- [OddsRelay Service API](https://apis.io/apis/oddsrelay/oddsrelay-service-api/)
- [OddsRelay Account API](https://apis.io/apis/oddsrelay/oddsrelay-account-api/)
- [OddsRelay Discovery API](https://apis.io/apis/oddsrelay/oddsrelay-discovery-api/)

## Tags

Historical

## Use this from code or an agent

- **REST, no key:** `GET https://apis.io/api/v1/providers/oddsrelay` returns the provider's full profile as JSON.
- **MCP:** `https://apis.io/mcp` (Streamable HTTP) — search the catalog, read any provider, compare providers, check agent readiness.
- **Free API key** for catalog-wide search, ratings and comparisons: sign in with GitHub, Google or LinkedIn at https://apis.io/developer/account/ (plans: https://apis.io/developer/plans/).

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/oddsrelay/oddsrelay-historical-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/oddsrelay/.
