---
title: "Event states (snapshot)"
method: GET
path: "/v2/events/state"
tags: ["Discovery"]
---

# Event states (snapshot)

`GET /v2/events/state`

## Request

- Base URL: `https://api.oddsrelay.io`
- URL: `https://api.oddsrelay.io/v2/events/state`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-api-key`

The event-state register's snapshot: each event's FATE in one region's lane, judged across every venue we read, not only your bookmakers — `scheduled` (not known to be over or withdrawn), `started` (pre-match is over), `gone` (withdrawn, confirmed; not issued yet: the changelog dates its start) or `merged` (a duplicate of `merged_into`). Free, like `/v2/events`; it counts against your flood and in-flight caps. Rows are ordered by id and paged with `cursor` (300 s); each page is read in one transaction with the log position in `meta.since`: keep the FIRST page's and follow `/v2/events/changes` from it with the same `region` and filters. List your events from raw (`/v2/odds/raw`), and use these routes for each event's fate: keep an event listed while its state is `scheduled`, even when raw has no prices for it right now; hide it, but keep its row, while it is `started`, `gone` or `merged`. The register covers the ids raw serves in the lane; an id served only on the matched boards answers in `meta.unknown_ids`. Your account's scope is a ceiling: rows outside its sports are never returned. The client recipe and the windows table (K, G and C per sport) are in the docs.

## Query parameters

- `region` string
- `sports` string
- `leagues` string
- `eventIds` string
- `states` string
- `commenceTimeFrom` string
- `commenceTimeTo` string
- `limit` integer
- `cursor` string
- `dateFormat` 'iso' | 'unix'

## Response `200`

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

- object
  - `meta` EventStateMeta, required
    - `feed_type` 'events_state', required
    - `region` string, required
    - `odds_format` 'decimal', required: Always `decimal`: no odds here.
    - `processed_at` string, required: `as_of` as millisecond-precision ISO-8601 UTC, whatever `dateFormat` says.
    - `count` integer, required: Rows on this page.
    - `version` string, required
    - `next_cursor` string, nullable, required: The next page's `cursor`; null on the last page and on every `eventIds` call.
    - `since` string, required: The log position this page was read at. Keep the FIRST page's: follow `/v2/events/changes` from it with the same `region` and filters.
    - `as_of` union, required: The publish instant of the last raw board version the register has applied (its `X-OddsRelay-Version` in ms): second-precision ISO-8601 UTC, or epoch seconds under `dateFormat=unix`.
      - string
      - integer
    - `stale` boolean, required: True when the register is more than 120 s behind the raw board or has not reported for 120 s. Keep applying changes, and infer nothing from an event's absence, while it is true.
    - `lag_s` integer, required: Whole seconds between the newest raw board version seen and `as_of`.
    - `verdicts_held` boolean, required: True while new verdicts are held: keep applying changes, and infer nothing from an event's absence.
    - `unknown_ids` string[], required: `eventIds` calls: the ids asked for that the register has no row for here, or that are outside your account's scope (and a merged id's survivor outside it); [] otherwise.
  - `data` EventState[], required
    - `id` string, required: The event id, the same as on every route.
    - `state` 'scheduled' | 'started' | 'gone' | 'merged', required: `scheduled`: not known to be over or withdrawn (it may have no prices right now: raw answers that). `started`: pre-match is over (in play seen, or its kick-off plus K reached with no venue listing it pre-match); not a claim it was played, and it returns to `scheduled` (`returned`) if venues list it pre-match again. `gone`: withdrawn before kick-off by every venue that listed it, confirmed; not issued yet (the changelog dates its start). `merged`: a duplicate of `merged_into`, always the final survivor; it can be undone (`unmerged`).
    - `reason` string, nullable, required: Null on every row for now. Values may follow, such as `rescheduled`, `cancelled`, `abandoned`, `unconfirmed`, `duplicate` and `replaced`: ignore a value you do not know.
    - `state_since` union, required: When the evidence for the current state happened (`listed`/`returned`: the sighting; `started`: the in-play sighting or the kick-off plus K; `gone`: the last pre-match sighting; `merged`: the identity build that merged it). Second-precision ISO-8601 UTC, or epoch seconds under `dateFormat=unix`.
      - string
      - integer
    - `merged_into` string, nullable, required: `merged` only: the final surviving id (never itself merged); else null.
    - `sport_key` string, nullable, required: As on raw for this id.
    - `sport_title` string, nullable, required: As on raw for this id.
    - `competition_key` string, nullable, required: As on raw for this id; null on races and where no competition is identified.
    - `home_team` string, nullable, required: Null for races and teamless events.
    - `away_team` string, nullable, required: Null for races and teamless events.
    - `venue` string, nullable, required: The course, races only; else null.
    - `event_name` string, nullable, required: Teamless non-race events only (an outright's name); else null.
    - `commence_time` union, required: Raw's served kick-off for the id (races included): second-precision ISO-8601 UTC, or epoch seconds under `dateFormat=unix`.
      - string
      - integer
    - `previous_ids` string[], required: Every id ever merged into this one, directly or through a chain, sorted; never its own id.
    - `regions` string[], required: The region codes whose venues listed it in the last 30 minutes, sorted; in region `uk` it is always `["uk"]` once the event is listed (the 30 minutes apply to the other codes). Never hide an event because a code left this list: an event belongs, for its whole life, to every region whose reply lists it.
    - `first_seen` union, required: When the register first saw the id: second-precision ISO-8601 UTC, or epoch seconds under `dateFormat=unix`.
      - string
      - integer
    - `seq` integer, required: The seq of the last change written for this id in its lane (0 for a row recorded without one). Keep it: a change with a higher seq replaces the row.

## Other responses

- `304`: Not modified: no body.
- `400`: 400: a parameter this route does not read or sent twice, a malformed value, gzip refused on standard, dutching or raw, or a filter value the catalogue does not know.
- `401`: 401: no key, or a key that is not accepted. Carries `WWW-Authenticate`; no token or flood-cap headers.
- `403`: 403: the account, the key's scope, the region, the plan or the account's scope refuses this call.
- `404`: 404.
- `429`: 429 with `Retry-After`. `too_many_requests`: the account's flood cap or its in-flight cap (with `X-RateLimit-*`). `too_many_from_address`: the per-address shield, before authentication (no token or flood-cap headers). The front door's own per-address cap also answers 429 with `Retry-After`, but with an EMPTY body and no `code`. Both per-address caps sit well above an account's flood cap.
- `500`: 500 `internal_error`. If it came after a spend, `X-Tokens-Cost` reads 0 and the spend stands.
- `502`: 502 from the front door when the API behind it does not answer: an empty body, no `code`. Retry with backoff.
- `503`: 503 with `Retry-After`: `temporarily_unavailable` (a board, the key registry or a connection is not ready; retry) or `raw_not_enabled` (the key may use raw but the raw board is not held here).

## Changes

- **2026-11-14** `c6bd6297bc9d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/oddsrelay/apis/oddsrelay-api/changes/v2/events/state/get.md)

---

[API](https://skmtc.dev/oddsrelay/apis/oddsrelay-api.md) - [All operations](https://skmtc.dev/oddsrelay/apis/oddsrelay-api/llms.txt) - [OpenAPI document](https://skmtc.dev/oddsrelay/apis/oddsrelay-api/revisions/c9a116d43241?raw)
