Product status, keyless
Changed onPer product the region serves: ok, slow or stale, judged on each board's odds age (not servable or not held is stale). While boards warm every product reads stale in a 200. KEYLESS: the per-address shield only, a key header is ignored, no token is spent. Cache-Control: public, max-age=10 on a 200; Access-Control-Allow-Origin: * on every reply, refusals and errors included. Plain JSON (never gzip).
Request
- Base URLhttps://api.oddsrelay.io
- Authnone required
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).
Response
The status.
ISO-8601 UTC, whole seconds.
The products served in the region, in canonical order.
Changes
- warning
added the new
date_out_of_rangeenum value to theallOf[subschema #2]/error/coderesponse property for the response status - warning
added the new
no_historyenum value to theallOf[subschema #2]/error/coderesponse property for the response status - warning
added the new
too_many_downloadsenum value to theallOf[subschema #2]/error/coderesponse property for the response status
10 more changes in this revision
- warning