---
title: "Sports and competitions"
method: GET
path: "/v2/sports"
tags: ["Discovery"]
---

# Sports and competitions

`GET /v2/sports`

## Request

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

Every competition on the matched boards, grouped, with the market keys seen under each, and every sport only `/v2/odds/raw` serves (greyhound racing, its markets empty). Free. Paged 250 rows at a time in (group, key) order; a cursor expires 300 s after it was issued. `region` missing means `uk`; discovery is not scoped to your key's regions. For a region that serves raw only (`/v2/regions` coverage_model `raw`), a row listed is that region's own, never another region's row of the same key, its `markets` empty.

## Query parameters

- `region` string
- `format` 'envelope' | 'bare'
- `dateFormat` 'iso' | 'unix'
- `cursor` 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` Sport[], required
      - `key` string, required
      - `group` string, required
      - `title` string, required
      - `description` string, required
      - `active` boolean, required
      - `has_outrights` boolean, required
      - `regions` string[], required: The region codes this row is listed for. A raw-only region's row is its own: a call returns one row per key.
      - `markets` string[], required: Market keys seen under it on the matched boards; empty for a sport only `/v2/odds/raw` serves (greyhound racing: raw lists each event's markets).
      - `competition_key` string, nullable: The competition this row's `key` belongs to: the row's own key for a competition's row, the competition an older key wholly belongs to, else null (a key several competitions share). Every competition on a board has a row whose `key` equals its `competition_key`. Null on a row says its key's spelling is used by more than one competition (bare `Premier League`): filter by an event's own `competition_key` instead.
  - Sport[]
    - `key` string, required
    - `group` string, required
    - `title` string, required
    - `description` string, required
    - `active` boolean, required
    - `has_outrights` boolean, required
    - `regions` string[], required: The region codes this row is listed for. A raw-only region's row is its own: a call returns one row per key.
    - `markets` string[], required: Market keys seen under it on the matched boards; empty for a sport only `/v2/odds/raw` serves (greyhound racing: raw lists each event's markets).
    - `competition_key` string, nullable: The competition this row's `key` belongs to: the row's own key for a competition's row, the competition an older key wholly belongs to, else null (a key several competitions share). Every competition on a board has a row whose `key` equals its `competition_key`. Null on a row says its key's spelling is used by more than one competition (bare `Premier League`): filter by an event's own `competition_key` instead.

## 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-19** `71da37b00309`: 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-16** `ea73e35edf6e`: 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** `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-10-26** `9db71e3e29bb`: 5 warning, 14 info
  - added the new `date_out_of_range` enum value to the `allOf[subschema #2]/error/code` response property for the response status `400`
  - added the new `exchange_history_unavailable` enum value to the `allOf[subschema #2]/error/code` response property for the response status `403`
  - added the new `files_need_whole_scope` enum value to the `allOf[subschema #2]/error/code` response property for the response status `403`
  - added the new `no_history` enum value to the `allOf[subschema #2]/error/code` response property for the response status `404`
  - …15 more

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