Coverage per venue and sport
Changed onOne document per region, in two views. Keyless (no Authorization and no x-api-key header): per product, each (venue, sport) live or interrupted_24h, no counts and no times, then markets: per product, the market keys it carries, each one a value its markets filter takes now; the per-address shield only; Cache-Control: public, max-age=60 and Vary: Authorization, X-Api-Key, Accept-Encoding on a 200; Access-Control-Allow-Origin: * on every reply, refusals and errors included. Keyed (either header present, even empty: an invalid key is 401): your key's products the region serves, venues with rows now, their events and last_seen; on an account with a scope, only its products and, per product, the venues and sports it admits (markets are not applied: the document has no market grain; a scope that cannot be applied is 503 temporarily_unavailable); free; the flood cap applies. Both: region missing means uk, gzip over 1 kB unless refused, 503 until the first document is built.
Request
- Base URLhttps://api.oddsrelay.io
- Auth
- none
- or 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).
Response
The keyless summary, or the keyed document.
The keyless view.
The keyed view: your key's products the region serves.
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
exchange_history_unavailableenum value to theallOf[subschema #2]/error/coderesponse property for the response status - warning
added the new
files_need_whole_scopeenum value to theallOf[subschema #2]/error/coderesponse property for the response status
16 more changes in this revision
- warning