Discovery

Sports and competitions

Changed on

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.

get/v2/sports

Request

  • Base URL
    https://api.oddsrelay.io
  • Auth
    • HTTP bearer
    • or API key in header x-api-key

Query parameters

region, string

ONE lowercase region code (/v2/regions lists yours). Missing means uk: on a data route only when your key covers uk, else 400 region_required naming your account's home region or another code your key reads; on discovery and keyless routes always. A comma list is 400 bad_request on every route but /v2/odds/raw (which reads a list of international codes as one board: see its region); the parameter sent twice or an uppercase code is 400 bad_request on every route; an unknown code, or one with no live bookmaker here, is 404 unknown_region; on a data route, a known code that does not serve the route's product is 403 product_not_in_region instead (standard?region=au).

format, 'envelope' | 'bare'

envelope (default): {meta, data}. bare: the data array alone, meta moved to X-* headers.

dateFormat, 'iso' | 'unix'

iso (default, ISO-8601 UTC) or unix (integer epoch seconds) for commence_time, processed_at, last_update, and raw's meta.removed_since and meta.removed[].at. standard and dutching serve iso only: anything else is 400.

cursor, string

The previous page's meta.next_cursor (or X-Next-Cursor). A cursor is bound to no account and expires 300 s after it was issued: 400 cursor expired: start again from the first page; any other shape 400 cursor not recognised: start again from the first page.

Response

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

union required
object required
OR
Sport[] required

Changes

    • breaking

      added subschema #1 subschema #2 to the response body oneOf list for the response status

    • info

      removed subschema #1 subschema #2 from the response body oneOf list for the response status

    • breaking

      added subschema #1 subschema #2 to the response body oneOf list for the response status

    1 more change in this revision