---
title: "Events of a sport"
method: GET
path: "/v2/events"
tags: ["Discovery"]
---

# Events of a sport

`GET /v2/events`

## Request

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

Every event the API serves under one sport key or prefix — the matched boards' and the raw board's — with what identifies it (teams, a race's `venue`, an outright's `event_name`, `competition_key`) and the matched boards carrying each, so any served event id can be looked up here (merged ids answer in `eventIds`). Free. Paged 250 at a time in (kick-off, id) order; a cursor resumes strictly after the last event it saw, so an event whose kick-off moves across the cursor during a walk can appear twice or be missed: dedupe by `id` and take a missed event on the next walk. A cursor expires 300 s after it was issued. `region` missing means `uk`. An event listed for a region that serves raw only is that region's own entry: its raw tree's values, `has_coverage` empty.

## Query parameters

- `region` string
- `format` 'envelope' | 'bare'
- `dateFormat` 'iso' | 'unix'
- `cursor` string
- `sport` string, required
- `eventIds` string
- `commenceTimeFrom` string
- `commenceTimeTo` string

## Response `200`

A page. Gzip unless refused (over 1 kB).

- union
  - object
    - `meta` PageMeta, required
      - `feed_type` string, required
      - `region` string, required
      - `odds_format` string, required
      - `processed_at` union, required: ISO-8601 UTC, or epoch seconds under `dateFormat=unix`.
        - string
        - integer
      - `count` integer, required: Rows on this page.
      - `version` string, required
      - `next_cursor` string, nullable, required
    - `data` Event[], required
      - `id` string, required: The event's id: opaque, one per fixture, the same on every route, and never changed once served, whatever its exchanges, spellings or kick-off do next. An id found to name the same fixture as one served earlier is merged into it and listed in that event's `previous_ids`.
      - `sport_key` string, required: The sport, and the league its venues file the event under (`soccer_premier_league`; a horse race `horse_racing`). An event keeps the `sport_key` and `sport_title` it was first served with for as long as it is served (one that had no league may gain one once); filter a competition by `competition_key`. An event whose venues name no competition is served under its sport's catch-all key, the sport's name twice (`golf_golf`, `tennis_tennis`, `greyhound_racing_greyhound_racing`); horse racing is `horse_racing`.
      - `sport_title` string, required
      - `competition_key` string, nullable: The event's COMPETITION: one key per competition, the same on every route that serves the event, built from what its venues call it (`sports=<this key>` returns the competition whole). Shaped `<sport>_<name>`, so a sport base still prefixes it. Null when no venue's name for it identifies one competition, and on every racing event. An event keeps the `competition_key` it was first served with for as long as it is served (a null may become a key once; a key never changes for the event), and a key is never renamed or reused.
      - `previous_ids` string[]: The ids merged into this event: ids served for its fixture before they were found to be one fixture with it. Often several for an event many bookmakers list; empty when none were; never this event's own id. Each answers on `/v2/odds/event/{id}` and in `eventIds` as this event while this event is on the board, and again if its fixture is listed again within 60 days.
      - `commence_time` union, required: The kick-off (UTC). It moves when the fixture is rescheduled: it follows the exchange where one lists the event, else most bookmakers.
        - string
        - integer
      - `home_team` string, nullable, required: Team sports: the side, kept under the id while any bookmaker still lists it that way (home and away never swap while one lists them in that order). Null on a race (see `venue`) and on an event with no two teams (see `event_name`).
      - `away_team` string, nullable, required: Team sports: the side, kept under the id while any bookmaker still lists it that way (home and away never swap while one lists them in that order). Null on a race (see `venue`) and on an event with no two teams (see `event_name`).
      - `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 our course table holds tagged even when no bookmaker tags it (`Fukushima (JPN)`, `Woodbine (CAN)`; one it does not hold yet keeps the bookmakers' spelling), a UK or Irish course plain, and a greyhound track and a racecourse of one name two courses (`The Meadows (AUS)` greyhounds, `The Meadows (US)` harness); 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`; and an ante-post race market: its category (`Ante-Post Cheltenham Festival`), beside its festival's course as `venue` when it names one. Present only on such an event; the same string on every route that serves this id. Any other race (horse or greyhound) carries `venue` alone, except that a greyhound race a matched board lists (`standard`) keeps there the name it was first served with (`21:04 Central Park`) beside `venue`.
      - `status` 'upcoming' | 'started', required
      - `has_coverage` string[], required: The matched boards carrying it. Empty when only `/v2/odds/raw` serves it: every event raw serves is listed.
  - Event[]
    - `id` string, required: The event's id: opaque, one per fixture, the same on every route, and never changed once served, whatever its exchanges, spellings or kick-off do next. An id found to name the same fixture as one served earlier is merged into it and listed in that event's `previous_ids`.
    - `sport_key` string, required: The sport, and the league its venues file the event under (`soccer_premier_league`; a horse race `horse_racing`). An event keeps the `sport_key` and `sport_title` it was first served with for as long as it is served (one that had no league may gain one once); filter a competition by `competition_key`. An event whose venues name no competition is served under its sport's catch-all key, the sport's name twice (`golf_golf`, `tennis_tennis`, `greyhound_racing_greyhound_racing`); horse racing is `horse_racing`.
    - `sport_title` string, required
    - `competition_key` string, nullable: The event's COMPETITION: one key per competition, the same on every route that serves the event, built from what its venues call it (`sports=<this key>` returns the competition whole). Shaped `<sport>_<name>`, so a sport base still prefixes it. Null when no venue's name for it identifies one competition, and on every racing event. An event keeps the `competition_key` it was first served with for as long as it is served (a null may become a key once; a key never changes for the event), and a key is never renamed or reused.
    - `previous_ids` string[]: The ids merged into this event: ids served for its fixture before they were found to be one fixture with it. Often several for an event many bookmakers list; empty when none were; never this event's own id. Each answers on `/v2/odds/event/{id}` and in `eventIds` as this event while this event is on the board, and again if its fixture is listed again within 60 days.
    - `commence_time` union, required: The kick-off (UTC). It moves when the fixture is rescheduled: it follows the exchange where one lists the event, else most bookmakers.
      - string
      - integer
    - `home_team` string, nullable, required: Team sports: the side, kept under the id while any bookmaker still lists it that way (home and away never swap while one lists them in that order). Null on a race (see `venue`) and on an event with no two teams (see `event_name`).
    - `away_team` string, nullable, required: Team sports: the side, kept under the id while any bookmaker still lists it that way (home and away never swap while one lists them in that order). Null on a race (see `venue`) and on an event with no two teams (see `event_name`).
    - `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 our course table holds tagged even when no bookmaker tags it (`Fukushima (JPN)`, `Woodbine (CAN)`; one it does not hold yet keeps the bookmakers' spelling), a UK or Irish course plain, and a greyhound track and a racecourse of one name two courses (`The Meadows (AUS)` greyhounds, `The Meadows (US)` harness); 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`; and an ante-post race market: its category (`Ante-Post Cheltenham Festival`), beside its festival's course as `venue` when it names one. Present only on such an event; the same string on every route that serves this id. Any other race (horse or greyhound) carries `venue` alone, except that a greyhound race a matched board lists (`standard`) keeps there the name it was first served with (`21:04 Central Park`) beside `venue`.
    - `status` 'upcoming' | 'started', required
    - `has_coverage` string[], required: The matched boards carrying it. Empty when only `/v2/odds/raw` serves it: every event raw serves is listed.

## Other responses

- `304`: Not modified: no body.
- `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.
- `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.
- `502`: 502 from the front door when the API behind it does not answer: an empty body, no `code`. Retry with backoff.
- `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-11-14** `f33eca1092f9`: 1 breaking, 1 info
  - added `subschema #1, subschema #2` to the response body `oneOf` list for the response status `200`
  - removed `subschema #1, subschema #2` from the response body `oneOf` list for the response status `200`
- **2026-11-14** `69737bda8c1a`: 1 breaking, 1 info
  - added `subschema #1, subschema #2` to the response body `oneOf` list for the response status `200`
  - removed `subschema #1, subschema #2` from the response body `oneOf` list for the response status `200`
- **2026-11-14** `0341c5efcc55`: 1 breaking, 1 info
  - added `subschema #1, subschema #2` to the response body `oneOf` list for the response status `200`
  - removed `subschema #1, subschema #2` from the response body `oneOf` list for the response status `200`
- **2026-11-13** `391dae9911bf`: 1 breaking, 1 info
  - added `subschema #1, subschema #2` to the response body `oneOf` list for the response status `200`
  - removed `subschema #1, subschema #2` from the response body `oneOf` list for the response status `200`
- …earlier changes not shown

[Operation history](https://skmtc.dev/oddsrelay/apis/oddsrelay-api/changes/v2/events/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)
