Sports and competitions
Changed onEvery 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.
Request
- Base URLhttps://api.oddsrelay.io
- Auth
- HTTP bearer
- or API key in header x-api-key
Query parameters
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).
envelope (default): {meta, data}. bare: the data array alone, meta moved to X-* headers.
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.
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).
Changes
- breaking
added
subschema #1subschema #2to the response bodyoneOflist for the response status - info
removed
subschema #1subschema #2from the response bodyoneOflist for the response status
- breaking
- breaking
added
subschema #1subschema #2to the response bodyoneOflist for the response status
1 more change in this revision
- breaking