---
title: "A matched board"
method: GET
path: "/v2/odds/{type}"
tags: ["Odds"]
---

# A matched board

`GET /v2/odds/{type}`

## Request

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

The six matched boards: each event's bookmaker back prices beside the exchanges' lay prices (`dutching`: back legs that cover every outcome, grouped by `dutch_id`; `each-way` and `extra-place`: each-way terms against win and place lays).

**Checks, in this order** (each refusal is free): the per-address shield, the key, the account's flood cap, a suspended account, a browser key's website, the API version; then `type` (404 `unknown_type`), `region`, the region in the key (403 `region_not_in_scope`), the product in the key (403 `not_in_key_scope`), the product in the region (403 `product_not_in_region`: a region serves the products its `coverage_model` on `/v2/regions` names — every international code `raw` alone, so all six matched types answer this 403 there; a region with no exchange serves only dutching and raw); then the parameters: each one this route reads, once; `format`, `oddsFormat` and `dateFormat` values; on `standard` and `dutching` decimal ISO only and gzip accepted (400 `add Accept-Encoding: gzip; with curl use --compressed`); then the filters (400 unknown values, 403 `bookmaker_not_in_region`, then your account's scope: 403 `sport_not_in_plan`, `market_not_in_plan`, `bookmaker_not_in_plan`, `exchange_not_in_plan`; and your plan's bookmaker list), then `quote=true`, the price (402), and the board (503 while it is not ready).

**Filters** cut the whole board's events in order: sport and kick-off, then markets, then back offers by bookmaker and lay offers by exchange; an outcome left with no back or no lay goes, then empty markets and events. On `dutching`, naming venues returns each market's best set made only from the named venues, bookmakers and exchanges alike: a set whose every leg is named comes back unchanged, any other is replaced by the best set the named venues make by the same rules (one leg per outcome, each at a different bookmaker or exchange, sites that share one price feed counting as one; rated 100 / Σ(1 / price) inside the board's bounds), or left out when they make none. Naming none returns the best set across every venue. A filtered reply is priced on its filters (`/v2/pricing`); the kick-off window is never priced.

**Freshness**: `meta.processed_at` and `X-Processed-At` are the board time; `meta.last_seen` is each venue and sport's last read. The API drops no row for age; a venue not read within its own window (at most 150 seconds, bet365 300) is off the board until its next read.

**Conditional requests**: send the `ETag` back as `If-None-Match`; an unchanged body is a 304 with no body, free. A reply with no events is free.

## Path parameters

- `type` 'standard' | '2up' | 'dutching' | 'each-way' | 'extra-place' | 'bog' | 'two-up' | 'each_way' | 'extra_place', required

## Query parameters

- `region` string
- `format` 'envelope' | 'bare'
- `oddsFormat` 'decimal' | 'american'
- `dateFormat` 'iso' | 'unix'
- `quote` string
- `sports` string
- `bookmakers` string
- `exchanges` string
- `markets` string
- `commenceTimeFrom` string
- `commenceTimeTo` string
- `inPlay` 'exclude' | 'only'

## Headers

- `Accept-Encoding` string, required

## Response `200`

The board (envelope, or the `data` array under `format=bare`), or under `quote=true` the price. Gzip unless refused.

- union
  - MatchedEnvelope
    - `meta` MatchedMeta, required
      - `feed_type` string, required
      - `region` string, required
      - `odds_format` 'decimal' | 'american', required
      - `processed_at` union, required: The board time (`X-Processed-At`).
        - string
        - integer
      - `last_seen` object: `{bookmaker key: {sport key base: ISO-8601 Z}}`: the last instant each venue and sport was read, the oldest observation behind the board, so `now - last_seen` is an upper bound on that venue's price age. The region's venues only, cut to a filtered body's venues and sports; always ISO; absent until the board carries the table; never on `format=bare`.
      - `count` integer, required: Events in `data`.
      - `version` 'v2', required
      - `next_cursor` unknown, required
    - `data` MatchedEvent[], required
      - `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, on this board or on `/v2/odds/raw` (the same list raw serves). 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. Since 2026-11-14.
      - `commence_time` union, required
        - string
        - integer
      - `home_team` string, nullable: Team sports.
      - `away_team` string, nullable: Team sports.
      - `event_name` string: An event with no two teams that is not a horse race (a golf tournament, an outright): its name, and an ante-post race market: its category (`Ante-Post Cheltenham Festival`) — the same string every route serves for this id. A greyhound race keeps, on the matched boards that list one (`standard`), the name it was first served with — its UK off time and course (`21:04 Central Park`) — beside `venue`; `/v2/odds/raw`, the event route and `/v2/events` serve a greyhound race's `venue` alone, as for every race.
      - `venue` string, nullable: Racing (horse and greyhound): the course, the same string every route serves for this id. 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`.
      - `in_play` boolean: `inPlay=only` only: `true` when the event's venues show it in play.
      - `markets` object[], required
        - `key` string, required
        - `outcomes` MatchedOutcome[], required
          - `name` string, required
          - `point` number: The line, on line markets.
          - `back` object[], required: Best price first.
            - `bookmaker` string, nullable, required: Venue key (`/v2/bookmakers`).
            - `price` union, required
              - …
            - `link` string, nullable, required: The venue's page for this event.
            - `places` integer, nullable: `each-way`, `extra-place`: places paid.
            - `place_fraction` number, nullable: `each-way`, `extra-place`: the place terms as a fraction.
            - `dutch_id` string: `dutching` only: 8 hex naming the dutch this leg belongs to. Group one market's offers by it and rate a dutch as 100 / sum(1/price).
          - `lay` union: Lowest price first. An array of exchange offers; on `each-way` and `extra-place` an object `{win, place}` of two such arrays; absent on `dutching`.
            - object[]
              - …
            - object
              - …
  - MatchedEvent[]
    - `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, on this board or on `/v2/odds/raw` (the same list raw serves). 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. Since 2026-11-14.
    - `commence_time` union, required
      - string
      - integer
    - `home_team` string, nullable: Team sports.
    - `away_team` string, nullable: Team sports.
    - `event_name` string: An event with no two teams that is not a horse race (a golf tournament, an outright): its name, and an ante-post race market: its category (`Ante-Post Cheltenham Festival`) — the same string every route serves for this id. A greyhound race keeps, on the matched boards that list one (`standard`), the name it was first served with — its UK off time and course (`21:04 Central Park`) — beside `venue`; `/v2/odds/raw`, the event route and `/v2/events` serve a greyhound race's `venue` alone, as for every race.
    - `venue` string, nullable: Racing (horse and greyhound): the course, the same string every route serves for this id. 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`.
    - `in_play` boolean: `inPlay=only` only: `true` when the event's venues show it in play.
    - `markets` object[], required
      - `key` string, required
      - `outcomes` MatchedOutcome[], required
        - `name` string, required
        - `point` number: The line, on line markets.
        - `back` object[], required: Best price first.
          - `bookmaker` string, nullable, required: Venue key (`/v2/bookmakers`).
          - `price` union, required
            - number
            - integer
          - `link` string, nullable, required: The venue's page for this event.
          - `places` integer, nullable: `each-way`, `extra-place`: places paid.
          - `place_fraction` number, nullable: `each-way`, `extra-place`: the place terms as a fraction.
          - `dutch_id` string: `dutching` only: 8 hex naming the dutch this leg belongs to. Group one market's offers by it and rate a dutch as 100 / sum(1/price).
        - `lay` union: Lowest price first. An array of exchange offers; on `each-way` and `extra-place` an object `{win, place}` of two such arrays; absent on `dutching`.
          - object[]
            - `exchange` string, required
            - `price` union, required
              - …
            - `available` number, nullable, required: Money available at that lay price.
            - `places` integer, nullable: `lay.place` only: the place market's places.
            - `link` string, nullable, required
          - object
            - `win` object[], required
              - …
            - `place` object[], required
              - …
  - 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.
- `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** `0341c5efcc55`: 2 info
  - added the optional property `oneOf[#/components/schemas/MatchedEnvelope]/data/items/previous_ids` to the response with the `200` status
  - added the optional property `oneOf[subschema #2]/items/previous_ids` to the response with the `200` status
- **2026-11-02** `5e2ba4137664`: 3 info
  - added the new optional `query` request parameter `inPlay`
  - added the optional property `oneOf[#/components/schemas/MatchedEnvelope]/data/items/in_play` to the response with the `200` status
  - added the optional property `oneOf[subschema #2]/items/in_play` to the response with the `200` status
- **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/odds/:type/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)
