Service

Product status, keyless

Changed on

Per 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).

get/v2/status

Request

  • Base URL
    https://api.oddsrelay.io
  • Auth
    none required

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).

Response

The status.

Status required
region, string required
generated_at, string required

ISO-8601 UTC, whole seconds.

products, object required

The products served in the region, in canonical order.

Changes

    • warning

      added the new date_out_of_range enum value to the allOf[subschema #2]/error/code response property for the response status

    • warning

      added the new no_history enum value to the allOf[subschema #2]/error/code response property for the response status

    • warning

      added the new too_many_downloads enum value to the allOf[subschema #2]/error/code response property for the response status

    10 more changes in this revision