---
title: "One event's price changes"
method: GET
path: "/v2/historical/events/{id}/odds"
tags: ["Historical"]
---

# One event's price changes

`GET /v2/historical/events/{id}/odds`

## Request

- Base URL: `https://api.oddsrelay.io`
- URL: `https://api.oddsrelay.io/v2/historical/events/{id}/odds`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-api-key`

Every price change of one event from `from` to `to` (at most 24 hours), bookmakers and exchanges (`bookmakersOnly=true`: bookmakers alone; BETDAQ never), as rows: first the event's prices at `from`, then one row per outcome per board version it changed in, in time order. Ids merged with the event are followed too (`meta.ids`). A recording gap is listed in `meta.gaps`. Fold the rows in order to hold the event's prices at any instant of the window. Pages by `cursor`, at most 5,000 rows a page (a page never splits a board version, so it can hold a few more). THE RELEASE LAG: history is released a UTC day at a time, cut the night after the day; the newest instant served is the archive's newest checkpoint's board version plus one hour, and a later one is 400 `date_out_of_range` with `latest`.

**Checks, in this order** (the live feed's own): the per-address shield, the key, the flood cap, a suspended account, a browser key's website, the API version; `region` (uk or one international code; outside the regions your key reads 403 `region_not_in_scope`), `historical` in the key; the parameters (each one this route reads, once) and their values; the instant(s); the venues (400 unknown, 403 outside your plan, 403 `exchange_history_unavailable` for any exchange while exchange history is switched off; `bookmakersOnly=true` beside an exchange filter is 400); your account's scope (403 with `valid`; a sport, market or venue left out is the scope's list); `quote=true`; the price (402); the event's sport inside your account's scope (403 `sport_not_in_plan`).

**Price**: /v2/pricing `regions.uk.historical.event` (an international `region`: its own `regions.<code>.historical.event`) tokens a page with rows; a page with none, a 304 and `quote=true` are free.

## Path parameters

- `id` string, required

## Query parameters

- `from` string, date-time, required
- `to` string, date-time
- `region` 'uk' | 'za' | 'ng' | 'us' | 'tz' | 'ke' | 'gh' | 'au' | 'ca' | 'zm' | 'ug' | 'cm' | 'ci' | 'sn' | 'cd' | 'mz' | 'mw' | 'nz' | 'rw' | 'global' | 'gr' | 'cz'
- `oddsFormat` 'decimal' | 'american'
- `bookmakers` string
- `exchanges` string
- `markets` string
- `exchangesOnly` 'true' | 'false'
- `bookmakersOnly` 'true' | 'false'
- `limit` integer
- `cursor` string
- `quote` string

## Response `200`

The rows, or under `quote=true` the price.

- union
  - HistoricalEventEnvelope
    - `meta` object, required
      - `feed_type` 'historical_event', required
      - `region` string
      - `odds_format` string
      - `event_id` string, required
      - `ids` string[], required: The event and every id merged with it.
      - `sport_key` string, nullable
      - `sport_title` string, nullable
      - `commence_time` string, nullable
      - `home_team` string, nullable
      - `away_team` string, nullable
      - `venue` string: Racing (horse and greyhound): the course, e.g. `Cheltenham`, `Doomben (AUS)`. Present only on a race. The same string on every route that serves this id (`/v2/odds/raw`, `/v2/odds/event/{id}`, the matched boards, `/v2/events`, `/v2/historical`), kept under the id while any bookmaker still lists the race under that spelling. One string per course (since 2026-11-14): its country tag in one spelling — `(AUS)`, `(US)`, `(NZL)`, `(HK)`, `(JPN)`… — an overseas course tagged even when no bookmaker tags it (`Fukushima (JPN)`, `Woodbine (CAN)`), a UK or Irish course plain; a greyhound meeting's words dropped (`Hove`, not `Hove Bags`). An ante-post market carries its festival's course (`Cheltenham`), or none, and its category as `event_name`.
      - `event_name` string: An event with no two teams that is not a race (a golf tournament, an outright, a special): its name, e.g. `Austin Championship 2026`. Present only on such an event; the same string on every route that serves this id. A race (horse or greyhound) carries `venue` instead; the matched boards alone keep a greyhound race's served `event_name` (`21:04 Central Park`).
      - `from` string, required
      - `to` string, required
      - `count` integer, required
      - `version` string
      - `next_cursor` string, nullable, required
      - `historical` boolean, required
      - `gaps` object[], required: Recording gaps read on this page: prices are unknown from a gap until the event's next row.
        - `timestamp` string
        - `why` string, nullable
    - `data` ChangeRow[], required
      - `timestamp` string, required: The board version it took effect.
      - `event_id` string, required: The id it was recorded under (an id merged into the event keeps its own until the merge).
      - `bookmaker` string, required
      - `market` string, required
      - `outcome` string, nullable, required
      - `index` integer: Only on the second (1) and later outcome of one name in one market.
      - `price` union
        - number
        - integer
      - `back_price` union
        - number
        - integer
      - `lay_price` union
        - number
        - integer
      - `available` union
        - number
        - integer
      - `removed` true
      - `last_update` string, nullable, required: When the venue last moved that market.
  - Quote: `quote=true`: this request's price. Free.
    - `cost` integer, required
    - `remaining` union, required: Tokens left, `unlimited`, or null when unknown.
      - integer
      - string
    - `rate_card` string, required

## Other responses

- `304`: Not modified: no body, free.
- `400`: 400: a parameter this route does not read or sent twice, a malformed value, gzip refused on standard, dutching or raw, or a filter value the catalogue does not know.
- `401`: 401: no key, or a key that is not accepted. Carries `WWW-Authenticate`; no token or flood-cap headers.
- `402`: 402 `insufficient_tokens`: the price is above the balance. Price it first with `quote=true`.
- `403`: 403: the account, the key's scope, the region, the plan or the account's scope refuses this call.
- `404`: 404.
- `429`: 429 with `Retry-After`. `too_many_requests`: the account's flood cap or its in-flight cap (with `X-RateLimit-*`). `too_many_from_address`: the per-address shield, before authentication (no token or flood-cap headers). The front door's own per-address cap also answers 429 with `Retry-After`, but with an EMPTY body and no `code`. Both per-address caps sit well above an account's flood cap.
- `500`: 500 `internal_error`. If it came after a spend, `X-Tokens-Cost` reads 0 and the spend stands.
- `503`: 503 with `Retry-After`: `temporarily_unavailable` (a board, the key registry or a connection is not ready; retry) or `raw_not_enabled` (the key may use raw but the raw board is not held here).

## Changes

- **2026-12-03** `c9a116d43241`: 1 info
  - added the new enum value `cz` to the `query` request parameter `region`
- **2026-11-18** `e28e311eeb1e`: 20 info
  - added the new enum value `au` to the `query` request parameter `region`
  - added the new enum value `ca` to the `query` request parameter `region`
  - added the new enum value `cd` to the `query` request parameter `region`
  - added the new enum value `ci` to the `query` request parameter `region`
  - …16 more
- **2026-11-13** `391dae9911bf`: 2 info
  - added the optional property `oneOf[#/components/schemas/HistoricalEventEnvelope]/meta/event_name` to the response with the `200` status
  - added the optional property `oneOf[#/components/schemas/HistoricalEventEnvelope]/meta/venue` to the response with the `200` status
- **2026-11-02** `d74a579e00e5`: 1 info
  - added the new optional `query` request parameter `bookmakersOnly`
- **2026-10-26** `9db71e3e29bb`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/oddsrelay/apis/oddsrelay-api/changes/v2/historical/events/:id/odds/get.md)

---

[API](https://skmtc.dev/oddsrelay/apis/oddsrelay-api.md) - [All operations](https://skmtc.dev/oddsrelay/apis/oddsrelay-api/llms.txt) - [OpenAPI document](https://skmtc.dev/oddsrelay/apis/oddsrelay-api/revisions/c9a116d43241?raw)
