# Betwatch Docs > Product and developer documentation for Betwatch — Australian racing odds comparison. Index: https://beta.betwatch.com/docs/llms.txt # API overview > The Betwatch Racing API — base URL, authentication, conventions, and the bootstrap-then-follow workflow. Source: https://beta.betwatch.com/docs/api/ · Markdown: https://beta.betwatch.com/docs/api/index.md Australian, New Zealand, and international racing, as JSON over HTTP: every race, every runner, and every bookmaker, tote, and exchange price we track, live. Manage keys and plans in the app at [Account → API](https://beta.betwatch.com/account/api). For pricing and product context, see [Odds API](https://beta.betwatch.com/odds-api). ## Base URL ``` https://api-beta.betwatch.com/v2 ``` Every path in these docs is relative to that. > **Looking for every parameter and field?** > > These pages explain how the API works and how to use it well. The [interactive API reference](https://beta.betwatch.com/api/docs) lists every endpoint, parameter, response field, and error, generated from the contract the server actually serves — with a request builder to try calls. The raw OpenAPI document is at [`/openapi.json`](https://api-beta.betwatch.com/openapi.json) on the API host. ## For AI agents To let your assistant query races and prices directly, connect the [Betwatch MCP server](/docs/api/mcp) using your API key. Give your coding agent these machine-readable docs. No sign-in is required to read them: - [API index (llms.txt)](/docs/api/llms.txt): Start here for API guides and the contract. - [Full documentation (llms-full.txt)](/docs/llms-full.txt): All public documentation in one file. - [OpenAPI schema (JSON)](https://api-beta.betwatch.com/openapi.json): Endpoints, parameters, and response schemas. ## Your first request Send your key in the `X-API-Key` header. Nothing else is required. ```bash curl 'https://api-beta.betwatch.com/v2/events?limit=5' \ --header 'X-API-Key: YOUR_API_KEY' ``` ```json { "items": [ { "id": "evt_7Kd2mQx4TnPbW9sVfHjLcR", "meetingId": "mtg_3Nb8xKpQ2mVfTdRcHjW5Ls", "venueId": "ven_9Rq4TmXkPb2NdVfHcJsW7L", "sport": "thoroughbred", "status": "scheduled", "name": "Randwick R1", "startAt": "2026-08-17T04:15:00Z", "racing": { "number": 1 } } ], "next": "lst_eyJjb2xsZWN0aW9uIjoiZXZlbnRzIiwicG9zaXRpb24iOiJldnRfN0tkMm1..." } ``` `next` pages this collection; it is not a stream cursor. Use a snapshot endpoint for the `stream` continuation, including its ready-to-connect `stream.url`. ## Snapshot, then follow The API is built around one workflow, and following it is the difference between a fast integration and a slow one. 1. **Snapshot the races you want** `GET /events/snapshot?sport=thoroughbred&country=au` returns current state for a page of races — field, every source's price, and coverage — plus the `cursor` to follow them. Page until `next` is absent. For one race, `GET /events/{id}/snapshot` does the same thing. 2. **Follow the changes instead of polling** Connect to `GET /stream` with `snapshot=none`, that `cursor`, and the filters the snapshot named. You receive changes from exactly the instant the snapshot was taken, with no gap and no missed price. Frames are not metered. See [Streaming](/docs/api/streaming). 3. **Query when you need to, not on a loop** `GET /events` for discovery and `GET /odds` for prices are there when you need a specific answer — a search, a page load, a backfill. They are not how you stay current; the stream is. Polling is the expensive way to stay current and the slowest to see a move. Snapshot once, then follow. This recommendation applies to live prices and the core changes the stream carries, not every REST enrichment field. Keep form, silks, breeding and dividends fresh with separate [racing enrichment reads](/docs/api/races#includeracing) when your application needs them. Periodic snapshots are also valid when periodic observations are sufficient; budget their quota cost. Using Python? The [Python SDK on GitHub](https://github.com/betwatch/betwatch-sdk-python/tree/beta) provides installation instructions, snapshot and streaming usage, and runnable examples. ## Conventions - **JSON** — request and response bodies are JSON. Send `Accept: application/json`. - **Identifiers are opaque.** `evt_`, `ent_`, `cmp_`, `ven_`, `mtg_`, and `odd_` prefixes tell you what kind of thing an id names. Everything after the prefix is ours: do not parse, split, validate, or construct one. Pass back exactly what we gave you. - **Timestamps** are RFC 3339 in UTC, for example `2026-08-17T04:15:00Z`. - **Errors** are RFC 9457 problem documents with a stable `code` to branch on. See [Errors](/docs/api/errors). - **Collections** are cursor-paginated. Follow `next` rather than building page parameters. See [Pagination](/docs/api/pagination). - **Empty collections are `[]`, never `null`.** Every array in every response is present and initialised, so you never have to model absent-versus-empty-versus-null. The contract declares this, so a generated client can rely on it. - **Unknown fields** may appear at any time. Ignore the ones you do not recognise. ## Guides - **API reference** — Every endpoint, parameter, and field. [API reference →](https://beta.betwatch.com/api/docs) - **Authentication** — Keys, plans, and scopes. [Authentication →](/docs/api/authentication) - **Errors** — The problem document and every error code. [Errors →](/docs/api/errors) - **Rate limits and quota** — What you can ask for, how fast, and how to back off. [Limits →](/docs/api/limits) - **Pagination** — Cursors, ordering, and page size. [Pagination →](/docs/api/pagination) - **Races and runners** — Events, entrants, and competitors. [Races →](/docs/api/races) - **Prices** — Odds, coverage, and price history. [Prices →](/docs/api/prices) - **Catalogue** — Meetings, venues, and sources. [Catalogue →](/docs/api/catalogue) - **Streaming** — Live changes over Server-Sent Events. [Streaming →](/docs/api/streaming) - **Stability** — What we promise not to change. [Stability →](/docs/api/stability) - **Changelog** — Every contract change and what to do about it. [Changelog →](/docs/api/changelog) # Authentication > Authenticate to the Betwatch Racing API with an API key in the X-API-Key header. Source: https://beta.betwatch.com/docs/api/authentication/ · Markdown: https://beta.betwatch.com/docs/api/authentication/index.md Every request carries an API key in the `X-API-Key` header. There is nothing to negotiate, no token to refresh, and no handshake — a key works from a one-line script. ```bash curl 'https://api-beta.betwatch.com/v2/events?limit=5' \ --header 'X-API-Key: YOUR_API_KEY' ``` ## Getting a key 1. **Create an account** Sign in at [Account → API](https://beta.betwatch.com/account/api). Any signed-in account can mint a key. 2. **Generate a key** Choose **Generate API key**. The full value is shown once — copy it and store it somewhere safe. We cannot show it again. 3. **Send it on every request** Set the `X-API-Key` header. That is the whole integration. > **Treat a key like a password** > > A key is displayed only at creation. If you lose one, or it leaks, revoke it at **Account → API** and generate another. Never commit a key to source control. ## Keys never travel in the URL The header is the only way to authenticate. A request with a credential-shaped query parameter — `apikey`, `api_key`, `key`, `token`, `access_token` — is refused with `401` and [`authentication_required`](/docs/api/errors#authentication_required), even if the header is also present. That is deliberate rather than pedantic. By the time a URL reaches us, it has been through your logs, your proxy, our edge, and our access logs, and a key in the path is now in all of them. Refusing the request is the only response that gets the key rotated instead of quietly leaked. > **Streaming from a browser** > > Browser `EventSource` cannot set request headers, so it cannot authenticate to this API. Stream from your server — where your key belongs anyway — and relay to the browser over your own connection. Any HTTP client that sets headers works: `fetch` with a `ReadableStream`, `curl -N`, `httpx`, `requests` with `stream=True`, or an SSE library that accepts headers. ## Scopes A key's plan grants scopes, and the API tells you when one is missing rather than pretending the data does not exist. | Scope | Grants | Without it | |---|---|---| | `rest` | Every `/v2` read | `403` [`scope_required`](/docs/api/errors#scope_required) | | `stream` | `GET /v2/stream` | `403` [`scope_required`](/docs/api/errors#scope_required) | `stream` always includes `rest`: a stream client must be able to bootstrap over REST after a `resync` or an expired cursor. REST-only plans can read and page through snapshots without streaming access. If the plan has no replay window, snapshot cursors last 15 minutes; they do not grant access to `/v2/stream`. ## What your plan can see Beyond scopes, your plan defines the data in view: which sports, which countries, and how far back history goes. Races outside that scope are not in your responses at all — not as empty rows, not as partial records. If your plan grants no sports or countries, reads fail with `403` [`entitlement_empty`](/docs/api/errors#entitlement_empty) rather than returning an empty page. An empty page would be indistinguishable from a quiet Tuesday, and would send you debugging your filters instead of your subscription. ## Revoking and rotating Revoke a key at [Account → API](https://beta.betwatch.com/account/api); it stops working immediately. To rotate without downtime, generate the new key, deploy it, then revoke the old one — keys are independent, so both work during the overlap. # Catalogue > Reference data for the Betwatch Racing API — meetings, venues, and the bookmakers, totes, and exchanges you can filter on. Source: https://beta.betwatch.com/docs/api/catalogue/ · Markdown: https://beta.betwatch.com/docs/api/catalogue/index.md Three reference collections: the meetings and venues with racing in your window, and the full list of sources we price. Fetch them when your integration starts, cache them, and refresh occasionally. > **These are reference tables, not feeds** > > `/v2/venues` and `/v2/meetings` summarise your entire window to return a short page, which makes them the most expensive reads on the API relative to what comes back. They are limited to 30 requests per minute and charged for the window they scan. Polling them is the one pattern guaranteed to burn quota for nothing. ## Meetings ```bash curl 'https://api-beta.betwatch.com/v2/meetings?startFrom=2026-08-17T00:00:00Z&startTo=2026-08-17T23:59:59Z' \ --header 'X-API-Key: YOUR_API_KEY' ``` ```json { "items": [ { "id": "mtg_3Nb8xKpQ2mVfTdRcHjW5Ls", "venueId": "ven_9Rq4TmXkPb2NdVfHcJsW7L", "sport": "thoroughbred", "localDate": "2026-08-17", "name": "Randwick" } ] } ``` A meeting is one card at one track on one local date. `localDate` is the track's date, not UTC — a late New Zealand meeting and its Australian equivalent are on the local day punters call them, which is what you want on a race calendar. Meetings page by date then venue name. Narrow with `sport`, `country`, `venue`, or a start window; use `GET /v2/events?meeting=mtg_...` for a card's races. Rows include `raceCount`, `firstStartAt`, `lastStartAt`, `statuses` (counts by status), and distinct `trackConditions`. These describe races visible in your requested window and entitlement, not an assertion that you can see the complete meeting. `GET /v2/meetings/{id}?include=events` attaches its visible races directly. Every parameter and response field: [`/meetings` in the API reference →](https://beta.betwatch.com/api/docs#tag/catalogue/GET/meetings) ## Venues ```bash curl 'https://api-beta.betwatch.com/v2/venues?country=au' --header 'X-API-Key: YOUR_API_KEY' ``` ```json { "items": [ { "id": "ven_9Rq4TmXkPb2NdVfHcJsW7L", "sport": "thoroughbred", "name": "Randwick", "country": "AU", "subdivision": "NSW", "timezone": "Australia/Sydney" } ] } ``` Venues page by name. `timezone` is the track's own zone, which is what you need to render a local start time correctly. A venue appears only if it has racing inside your window and entitlement. This is deliberate: the list answers "where is there racing I can see", not "every track that has ever existed". A track with nothing in your window is a `404` on `GET /v2/venues/{id}` for the same reason. Every parameter and response field: [`/venues` in the API reference →](https://beta.betwatch.com/api/docs#tag/catalogue/GET/venues) ## Sources ```bash curl 'https://api-beta.betwatch.com/v2/sources' --header 'X-API-Key: YOUR_API_KEY' ``` ```json { "items": [ { "id": "sportsbet", "name": "Sportsbet", "kind": "bookmaker", "region": "au" }, { "id": "ladbrokes", "name": "Ladbrokes", "kind": "bookmaker", "region": "au" }, { "id": "ladbrokes-gb", "name": "Ladbrokes", "kind": "bookmaker", "region": "gb" }, { "id": "betfair", "name": "Betfair", "kind": "exchange" }, { "id": "tab-nsw", "name": "TAB NSW", "kind": "tote", "pool": { "country": "au", "jurisdiction": "au-nsw" } } ] } ``` Every bookmaker, tote, and exchange this API can price, with the exact ids the `source` filter accepts. The catalogue is static and does not depend on the racing window, so this endpoint is cheap. | `kind` | What it is | |---|---| | `bookmaker` | Fixed odds from a corporate bookmaker. | | `tote` | Parimutuel pool. `pool` names the country and jurisdiction. | | `exchange` | Back and lay prices; rows carry an `exchange` block. See [Prices](/docs/api/prices#exchange-prices). | `region` is where a bookmaker is licensed, as a lower-case ISO 3166-1 alpha-2 code: `au`, `nz`, or `gb` today, with more as we add markets. Totes carry their country in `pool` instead, and the exchange has no region. Every bookmaker has a `region`, wherever its source appears: here, on the `source` of every odds row, and in a compact summary's `bestSources`. Coverage and dividend rows name only `sourceId`; join it to this list. `name` never carries a region suffix, so two books of the same brand share a name: `Ladbrokes` is both the Australian and the UK book. Always show or check `region` alongside `name`, for example "Ladbrokes (AU)" for a UK audience, and filter and group by it. Source ids are stable and are part of the contract — `sportsbet` stays `sportsbet`. A brand's first book has the bare brand id; a later book of the same brand in another market takes a suffix (`ladbrokes-gb`, `tab-nz`). The suffix only keeps ids unique: do not parse it, read `region`. If a brand renames, we keep the id and change `name`, so your filters, dashboards, and stored rows keep working. New sources are added as we onboard them, so treat the list as growing and read it rather than hardcoding it. Add `?event=evt_...` to see each source's coverage and `activity` for a particular race: `observed` means a source-product observation exists, `not_observed` means none exists for that race, and `unknown` is the unscoped catalogue default. An observation may be unpriced or old: inspect coverage state and time. No observation does not prove the source never covers that sport or country. This endpoint does not claim global provider health or contractual coverage promises. Use `kind`, not a brand-name substring, to distinguish fixed odds from a tote: fixed-odds `tab-nz` and `tabtouch` are bookmakers; jurisdiction-specific tote IDs are separate products. Filter comparisons by `sourceKind` when you do not want to mix them. Every parameter and response field: [`/sources` in the API reference →](https://beta.betwatch.com/api/docs#tag/catalogue/GET/sources) # Changelog > Every change to the Betwatch Racing API contract, newest first, with what you need to do about it. Source: https://beta.betwatch.com/docs/api/changelog/ · Markdown: https://beta.betwatch.com/docs/api/changelog/index.md Each entry is a version of the public contract, the `info.version` in [`/openapi.json`](https://api-beta.betwatch.com/openapi.json). While the API is in beta, a version can remove or rename fields in place under `/v2`; those changes are listed under **Breaking**. See [Stability](/docs/api/stability). ## 2.5.0 — 31 October 2026 Bookmakers from more than one country, told apart by a field rather than by their id. **Breaking in beta** - **Three source ids are renamed.** `tabnz` is now `tab-nz`, `ladbrokesuk` is now `ladbrokes-gb`, and `unibetuk` is now `unibet-gb`. A brand's first book keeps the bare brand id (`ladbrokes`, `unibet`); a later book of the same brand in another market takes a suffix. The old ids are no longer accepted by the `source` filter and no longer appear in odds, coverage, or stream frames. Every other source id is unchanged. - **UK books are named without a region suffix.** `ladbrokes-gb` is named `Ladbrokes`, the same as `ladbrokes`; read `region` to tell them apart. **Added** - **UK bookmakers.** `coral`, `ladbrokes-gb`, `paddypower`, `skybet`, `unibet-gb` and `williamhill` are listed in `/sources` with `region` `gb` and quote like any other bookmaker. More markets will follow under the same id scheme. - **`region` on bookmaker sources.** [`/sources`](/docs/api/catalogue#sources), MCP `list_sources`, the `source` on every odds row and compact-summary `bestSources` give each bookmaker its licensing country as a lower-case ISO 3166-1 alpha-2 code: `au`, `nz`, or `gb`. Every bookmaker source carries it, so a client can always tell `ladbrokes` (`au`) from `ladbrokes-gb` (`gb`). Coverage and dividend rows name only `sourceId`; join it to `/sources`. Totes keep their country in `pool`; the exchange has no region. **What to do** - Replace stored or hardcoded `tabnz`, `ladbrokesuk` and `unibetuk` with `tab-nz`, `ladbrokes-gb` and `unibet-gb`, or re-read `/sources` and match on `name` plus `region`. - Show `region` with `name` wherever two books can share a name, and group or filter by `region`, never by parsing the id. - **Python SDK users should upgrade to `betwatch` 2.0.0b7**, which adds `Source.region`. Earlier 2.x releases ignore the field and keep working. ## 2.4.0 — 30 October 2026 Trustworthy price comparisons and smaller agent reads, shared by REST and MCP. **Changed / breaking in beta** - Unsupported filters and `include` values now return `422` instead of being ignored. In particular, `/events?competitor=...` is unsupported: use the new competitor form endpoint. `get_odds` now honours `include=history`. - List cursors are bound to their collection and filters. Keep the same filters between pages; obtain a new cursor after changing them. Old list cursors must be restarted. Timestamps require an explicit timezone, with actionable errors. - Retained prices are not necessarily current offers. Quotes now expose `confirmation` and `checkedAt`; a newer unpriced source observation makes a retained quote `unknown` and `unconfirmed`. Inactive races no longer advertise current coverage as `priced`. See [Prices](/docs/api/prices). - MCP `get_event_snapshot` defaults to a compact summary, a 120-second freshness limit, and no coverage. MCP exchange reads default to top depth; racing enrichment defaults to win/place dividend pools. Request `view: "full"`, `depth: "full"`, or explicit pools for more detail. REST defaults remain full-detail. - Summary, age-filtered, source-kind-filtered and top-depth snapshots omit `stream`: they are point-in-time comparisons, not valid SSE baselines. Use an ordinary full snapshot to start a stream. **Added** - [Compact snapshots](/docs/api/races#compact-price-comparison): best price with ties, median, source count and check times per runner, separated by win/place, settlement terms and source kind. Filters: `key`, `sourceKind`, `maxAge`, `depth`, and dividend `pool`. - [`/competitors/{id}/form`](/docs/api/races#competitor-form) and MCP `get_competitor_form`: known past starts, newest first, ten by default. Competitor profiles add available breeding and foal-date facts. - Runner names/numbers in odds and results; result `fieldSize`, `positionsReported`, `completeness`, and a trustworthy `changedAt` for newly changed results. Form `distanceMeters` and entrant `barrierRow` use null for unknown data; event distance remains absent when unknown, now explicitly documented. - `scheduledStartAt` and source-backed `actualStartAt`. The schedule passing does not prove a race jumped; status is not inferred from the clock. - `firstRecorded` and `lastRecorded` on fixed-bookmaker history reads, including retained settled prices. First samples survive rolling-history truncation from this version onwards; neither field is an official opening or starting price. - Meeting counts, start bounds, status counts and conditions, plus `get_meeting` / `GET /meetings/{id}?include=events`. `list_sources` / `GET /sources?event=...` adds race-specific observed activity and coverage. **What to do** - Require `state: "available"` and `confirmation: "confirmed"` for current-price comparisons. Prefer `maxAge=120` or the compact summary; old `observedAt` alone does not mean an unchanged quote is stale. - Update clients that require a snapshot continuation before requesting compact views. The accompanying Python SDK changes add `competitors.form()` / `iter_form()`, snapshot filters and typed summaries; `follow()` rejects a snapshot without `stream`. - Treat unknown official starting prices, margins, harness draw rows and missing historical facts as unknown. Form covers only retained, entitled starts, not a complete career record. No historical facts are manufactured or backfilled by this release. ## 2.3.0 — 30 October 2026 Removes the fields 2.2.0 replaced, so each question has one answer. **Breaking** - **`coverage.complete` is removed** from REST, snapshots, and `coverage` stream frames. It only said the source's last scan was a full scan, not that every runner was priced. Use [`book.status`](/docs/api/prices#coverage). - **`openingPrice` and `openingAt` are removed** from `include=history` odds rows. They were the source's own declared opening price, which most sources, Sportsbet included, often left out. For the first card Betwatch saw fully priced, read `book.firstFull`. **What to do** - Stop reading `complete`. Wait for `book.status` `full`, or read `book.firstFull` and `book.fullAt`. - Stop reading `openingPrice` and `openingAt`. Clients that ignore unknown fields need no other change; strict decoders that require them must drop them. - **Python SDK users must upgrade to `betwatch` 2.0.0b6.** Earlier 2.x releases require `complete` and fail to decode coverage rows from 2.3.0. 2.0.0b6 works against both 2.2.0 and 2.3.0, and removes `Coverage.complete`, `Odds.opening_price` and `Odds.opening_at`. ## 2.2.0 — 30 October 2026 Knowing when a source has priced a whole race, from the stream alone. **Added** - **`book` on coverage.** Every [coverage](/docs/api/prices#coverage) row — REST, snapshots, and `coverage` stream frames — says how much of that source's market is priced: `status` (`unpriced`, `partial`, `full`), `active`, `priced`, `fullAt` (when the book first became full), and `firstFull` (every active runner's price at that moment). `fullAt` and `firstFull` never change once set. - **Order within a race.** A price frame always arrives before the coverage frame whose `book` it completed, so a `full` coverage frame means you already hold every price in it. See [Order within a race](/docs/api/streaming#order-within-a-race). - **`stream.url` on snapshots.** The `/v2/stream` request that follows the snapshot, with `cursor` and `snapshot=none` set. **Changed** - **Trainer, rider, and owner merges no longer resync streams.** They arrive as `entrant` frames. Before, a stream could be asked to resync every few seconds while records were deduplicated. - **Each stream gets its own resync token**, so two connections with different filters can both re-snapshot for free after the same merge. **Deprecated** (removed in 2.3.0) - `coverage.complete`: it only means the source's last scan was a full scan, not that every runner is priced. Use `book.status`. - `odds.openingPrice` and `odds.openingAt`: the source's own declared opening price, which most sources often leave out. For the first full card, use `book.firstFull`. **What to do** - If you wait for `complete: true`, wait for `book.status` `full` instead, or read `book.firstFull`. - Follow snapshots with `stream.url` instead of rebuilding the query. ## 2.1.0 - Optional native Betfair `exchange.marketId` and `exchange.selectionId` on exchange odds rows. See [Exchange prices](/docs/api/prices#exchange-prices). # Errors > The RFC 9457 problem document every Betwatch API failure returns, and what each error code means. Source: https://beta.betwatch.com/docs/api/errors/ · Markdown: https://beta.betwatch.com/docs/api/errors/index.md Every failure — a bad filter, a missing race, an exhausted quota, a bug on our side — returns the same shape. Write one error handler and you have handled the whole API. ```http HTTP/1.1 422 Unprocessable Entity Content-Type: application/problem+json ``` ```json { "type": "https://docs.betwatch.com/api/errors#filter_required", "title": "Unprocessable Entity", "status": 422, "code": "filter_required", "detail": "Odds requests need an event, entrant, meeting, or venue filter. Discover events with /v2/events first, then request their prices.", "instance": "/v2/odds", "requestId": "01K3F9QW2H7YB4NPX8VJDT6MRC", "traceId": "4bf92f3577b34da6a3ce929d0e0e4736" } ``` | Member | What it is for | |---|---| | `code` | **Branch on this.** A stable, machine-readable label. | | `status` | The HTTP status, repeated in the body for convenience. | | `title` | Short summary of the problem type. Prose — do not match on it. | | `detail` | What went wrong with *this* request, in a sentence you can show a human. Prose. | | `type` | A URI that resolves to this page, anchored at the code. | | `instance` | The path that failed. | | `requestId`, `traceId` | Quote these when you contact support and we can find your exact request. | | `errors` | Present on validation failures: one entry per field, with `message`, `location`, and the `value` we received. | `code` is part of the contract, and the full list below is in the OpenAPI document as an enum on `PublicProblem.code` — you can generate your error types from it rather than transcribing this page. New codes can appear as the API grows, so still treat one you do not recognise as "an error of this HTTP status class" rather than failing hard. Existing codes will never be removed or repurposed. ## Validation failures name the field ```json { "type": "https://docs.betwatch.com/api/errors#invalid_request", "title": "Unprocessable Entity", "status": 422, "code": "invalid_request", "detail": "validation failed", "errors": [ { "message": "unexpected query parameter", "location": "query.eventId", "value": "evt_7Kd2mQx4TnPbW9sVfHjLcR" } ] } ``` Unknown query parameters are rejected rather than ignored. If you misspell `event` as `eventId`, the honest answer is a `422` — silently answering a question you did not ask would hand you a page of the wrong races and no way to notice. ## Credentials and entitlement ### authentication_required `401` — no `X-API-Key` header, an invalid or revoked key, or a credential in the query string. Check the header name and that the key has not been revoked. See [Authentication](/docs/api/authentication). ### scope_required `403` — your key's plan does not grant the scope this endpoint needs, most often `stream`. See [Scopes](/docs/api/authentication#scopes). ### plan_required `403` — the key is valid but no active API product is attached to the account. Start or renew a plan at [Account → API](https://beta.betwatch.com/account/api). ### entitlement_empty `403` — the plan grants no sports or countries, so there is no data any read could return. This is a subscription problem, not a filter problem; contact support if you expect data access. ### account_disabled `403` — an operator has temporarily suspended API access for this account, usually after traffic that threatened service for everyone. Your keys are intact. Contact support; this is meant to be undone. ### ip_not_allowed `403` — the key is limited to an IP allowlist and the request came from an address outside it. Keys have no allowlist unless one was agreed with support; contact us to change it. ## Budgets ### rate_limited `429` — you exceeded the short-window limit for this class of request. **Retry** after the number of seconds in the `Retry-After` header. See [Rate limits](/docs/api/limits). ### quota_exceeded `429` — the monthly request quota is spent. **Do not retry**: it resets at the boundary in `X-RateLimit-Monthly-Reset`, which may be weeks away. Fail fast, alert, and upgrade the plan. ### quota_unavailable `503` — we could not read the quota counter, so the request was refused rather than served unmetered. Retry with backoff. ## Request shape ### invalid_request `400` or `422` — the request does not satisfy the contract: an unknown query parameter, a malformed value, a bad type. `errors` names the field. ### invalid_filter `422` — a filter value is well-formed JSON but not valid here: an id whose shape does not match its resource, an unknown `sport` or `source`, a `limit` outside 1–200, both `after` and `before` at once, a `startFrom` after its `startTo`, or a cursor belonging to a different collection. ### filter_required `422` — the endpoint refuses an unscoped read. `/v2/odds` needs `event`, `entrant`, `meeting`, or `venue`; `/v2/entrants` needs `event` or `competitor`. `detail` says which. Discover with `/v2/events` first. ### not_found `404` — no such resource, or it is outside what your plan can see. These are deliberately indistinguishable: whether a race exists is not something an unentitled key gets to learn. ### method_not_allowed `405` — the path exists but not with that method. The public API is read-only; everything is `GET`. ### unsupported_media_type `406` or `415` — we cannot produce or accept the media type you asked for. Send `Accept: application/json`. ## Streaming ### stream_unavailable `503` — the stream cannot serve you right now, either because replay state is momentarily unavailable or because concurrency enforcement is down. Retry with backoff. Also returned by `GET /v2/events/{id}/snapshot` when it cannot mint a stream cursor: the snapshot fails rather than hand you a bootstrap that would silently miss changes. ### stream_limit `429` — you are at your plan's concurrent-stream limit. Close a connection before opening another. One filtered stream can cover many races; you rarely need one per race. ### cursor_expired `409` — the cursor is older than your plan's replay window, or is not usable any more. Bootstrap again over REST and reconnect with the `cursor` that response returned. ### cursor_scope_changed `409` — the cursor was minted for a different filter set, entitlement, or account. Cursors are not portable between scopes: reconnect with the same filters you bootstrapped with, or bootstrap again. A snapshot (`GET /events/snapshot` or `GET /events/{id}/snapshot`) can also return it when a race moved in or out of your filters and the change has not reached the stream yet. The API waits about a second for that before answering, so retry the snapshot after a short pause. ## Ours, not yours ### internal_error `500` — a bug on our side. Retry once with backoff; if it persists, send us `requestId` and `traceId`. ### unavailable `503` — a dependency is briefly unavailable. Retry with backoff. ## Retrying, in one table | `code` | Retry? | |---|---| | `rate_limited` | Yes, after `Retry-After`. | | `quota_unavailable`, `stream_unavailable`, `unavailable`, `internal_error` | Yes, with exponential backoff. | | `quota_exceeded` | No. Wait for the monthly reset or upgrade. | | `cursor_expired`, `cursor_scope_changed` | Not as-is. Bootstrap over REST, then reconnect. | | `authentication_required`, `scope_required`, `plan_required`, `entitlement_empty`, `account_disabled`, `ip_not_allowed` | No. Nothing about the request will change the answer. | | `invalid_request`, `invalid_filter`, `filter_required`, `not_found`, `method_not_allowed`, `unsupported_media_type` | No. Fix the request. | # API reference > Every endpoint, parameter, and field, generated from the OpenAPI contract the server serves. Source: https://beta.betwatch.com/docs/api/full-reference/ · Markdown: https://beta.betwatch.com/docs/api/full-reference/index.md # Rate limits and quota > The short-window rate limits and monthly request quota on the Betwatch Racing API, the headers that report them, and how to back off correctly. Source: https://beta.betwatch.com/docs/api/limits/ · Markdown: https://beta.betwatch.com/docs/api/limits/index.md Two budgets apply, and they fail differently. The **rate limit** protects the service from how fast you ask; the **quota** prices how much data you take. Both report themselves on every response, so a well-behaved client never has to guess. ## Rate limits Per account, per class of request, over a rolling minute. Classes are separate budgets: polling event discovery cannot exhaust your allowance for reading prices. | Class | Endpoints | Per minute | Burst | |---|---|---|---| | Discovery | `/v2/events`, `/v2/entrants`, `/v2/competitors/{id}`, `/v2/sources`, item reads, `/v2/stream` connects | 600 | 300 | | Prices | `/v2/odds` | 240 | 120 | | Snapshot | `/v2/events/snapshot`, `/v2/events/{id}/snapshot` | 240 | 120 | | Catalogue | `/v2/venues`, `/v2/meetings` | 60 | 30 | These are the standard rates. Enterprise plans scale every class by a contracted multiple; `RateLimit-Policy` on any response reports the numbers that apply to your key. The catalogue is tightest because those two endpoints summarise your entire window to return a short page — they are the most expensive reads on the API relative to what comes back. Ask for them when your integration starts, cache the result, and refresh occasionally. They are a reference table, not a feed. Every response carries these, and they are declared on every operation in the OpenAPI document, so a generated client can read them without hardcoding names from this page: | Header | Meaning | |---|---| | `X-RateLimit-Limit` | Requests per minute for this class. | | `X-RateLimit-Remaining` | How many you can still send right now. | | `X-RateLimit-Reset` | Seconds until the budget is full again. | | `Retry-After` | On a `429`, how many seconds to wait. | Over the limit is `429` with [`rate_limited`](/docs/api/errors#rate_limited). Wait `Retry-After` seconds and continue — no backoff calculation needed, we have told you the answer. ### Standard `RateLimit` headers Every response also carries the IETF [`RateLimit-Policy` and `RateLimit`](https://datatracker.ietf.org/doc/draft-ietf-httpapi-ratelimit-headers/) fields, so a generic HTTP client or gateway can pace itself without knowing our header names. Each budget the request was checked against is one list member, named after its class (`discovery`, `prices`, `snapshot`, `catalogue`) or `monthly`: ```http RateLimit-Policy: "prices";q=240;w=60, "monthly";q=2000000 RateLimit: "prices";r=239;t=1, "monthly";r=1998412;t=1209600 ``` `q` is the quota, `w` the window in seconds, `r` what remains, and `t` the seconds until it resets. The monthly policy has no `w` because it follows the calendar month. The `X-RateLimit-*` headers stay and report the same numbers. ## Monthly quota Your plan includes a monthly allowance of request units. Open access includes 2,000,000 units a month; the **API** and **API Live** plans state their allowance on the plan, and every response reports it: | Header | Meaning | |---|---| | `X-RateLimit-Monthly-Limit` | Units included this month. | | `X-RateLimit-Monthly-Used` | Units spent. | | `X-RateLimit-Monthly-Remaining` | Units left. | | `X-RateLimit-Monthly-Reset` | RFC 3339 timestamp of the reset. | Exhausting it is `429` with [`quota_exceeded`](/docs/api/errors#quota_exceeded). **Do not retry that one** — it resets at the boundary above, possibly weeks away. Alert on it instead. A refused request is not charged, so a stray retry does not push the counter further over. > **Two different 429s** > > `rate_limited` means "slow down"; `quota_exceeded` means "you are out until the reset". A retry policy that treats them the same will either give up on a momentary burst or spin for a fortnight. Branch on `code`, not on the status. ### What a request costs Requests are charged by the racing data they return. Every request costs at least one unit, and a larger response costs whichever is greater: one unit, or its per-race price rounded up. | Request | Units | |---|---| | `/v2/events` | 1 per 50 events listed (1–4 for a page) | | `/v2/odds`, `/v2/events/snapshot`, `/v2/events/{id}/snapshot` | 1 per 10 races priced; `include=history` doubles it | | `/v2/venues`, `/v2/meetings` | 5, flat | | Item reads, `/v2/entrants`, `/v2/sources` | 1 | | `304 Not Modified` | 1 | | Stream frames | 0 | So a page of 100 events is 2 units, `/v2/odds` for one race is 1, a 100-race snapshot is 10, and the same snapshot with history is 20. - **A `304 Not Modified` costs one unit**, whatever the `200` it replaces would have cost. Successful `GET` responses up to 4 MiB carry a weak `ETag`; send it back in `If-None-Match` and an unchanged response comes back as an empty `304`. Revalidating `/v2/sources`, `/v2/venues`, and `/v2/meetings` this way is the cheapest way to keep a reference table fresh. - **Stream frames are free.** Following `/v2/stream` costs nothing beyond the REST bootstrap that started it. The last point is the one worth designing around. Polling `/v2/odds` every ten seconds is the expensive way to stay current and the slowest to see a move; bootstrapping once and streaming is cheaper and faster. See [Streaming](/docs/api/streaming). The headers on a response reflect the charge at the time it was admitted; the extra units a response earns settle immediately after and appear on your next request. ### Estimating your monthly usage Multiply the cost of each call by how often you make it. The figures below use a 30-day month and the racing volume we carry: about 230 Australian races a day (roughly 7,000 a month) and about 900 a day across every country (roughly 27,000 a month), with about 830 races starting in any 24 hours. | How you use the API | Calls | Units a month, Australia | Units a month, all countries | |---|---|---|---| | **Stream.** Snapshot the next 24 hours once a day, refresh venues and meetings hourly, follow `/v2/stream` | ~50 a day | ~8,000 | ~10,000 | | **Check prices.** `/v2/odds` for each race 5 times in its last half hour | 5 per race | ~35,000 | ~137,000 | | **Discover.** `/v2/events` every minute | 1,440 a day | ~86,000 | ~86,000 | | **Sweep.** `/v2/events/snapshot` of the next 2 hours every 30 seconds | 2,880 a day | ~173,000 | ~605,000 | | **Model, batched.** `/v2/odds` for the next 10 races in one call every 10 seconds | 8,640 a day | ~259,000 | ~259,000 | | **Model, one race at a time.** `/v2/odds` for each race every 10 seconds in its last 10 minutes | 60 per race | ~420,000 | ~1,640,000 | Where each figure comes from: - **Stream:** the 24-hour snapshot is 3 pages for Australia (10 + 10 + 4 units) or 9 for everywhere (about 83 units). The hourly catalogue refresh is 24 × (5 + 5) = 240 units a day. Frames are free, and a snapshot you take with a `resyncToken` after a resync frame costs nothing. - **Check prices:** one race per call is 1 unit, so 230 races × 5 calls × 30 days ≈ 35,000. - **Discover:** a page of up to 50 events costs 1 unit and the default 100 costs 2. 1,440 calls × 2 units × 30 days ≈ 86,000. Narrow the filters (`country=AU`, a `startTo` an hour ahead) and the page shrinks to 1 unit, which halves it. - **Sweep:** the next 2 hours hold about 17 Australian races (2 units) or about 68 everywhere (7 units). - **Model, batched:** up to 10 races in one `/v2/odds` call is still 1 unit (`event=a,b,c`), so one call every 10 seconds is 8,640 units a day whichever races it covers. - **Model, one race at a time:** 60 calls × 230 races × 30 days ≈ 420,000. Batching the same races cuts that by about 40% on Australian racing and by more than 80% across every country; a stream costs nothing. A plan with 200,000 units covers any of the first three patterns on Australian racing, or all three together (about 129,000). A polling loop that runs every few seconds needs 2,000,000, or a stream. Combine rows by adding them: a dashboard that discovers every minute and checks each Australian race 5 times uses about 86,000 + 35,000 ≈ 121,000 units. Check your real number at any time: `X-RateLimit-Monthly-Used` on every response, or the API page in your account. ## Concurrent streams Your plan caps simultaneous `/v2/stream` connections: 10 on open access, and the limit stated on the plan for **API Live**. Over it is `429` with [`stream_limit`](/docs/api/errors#stream_limit). One connection can filter across many races, so this is rarely a real constraint — a stream per race is the pattern to avoid. ## Suspension We reserve the ability to suspend one account's API access temporarily, and we use it when an integration threatens service for everyone else. That returns `403` [`account_disabled`](/docs/api/errors#account_disabled); your keys stay intact and support can lift it. If you are about to run something unusual — a backfill, a load test, a new high-volume feature — tell us first and we will make room for it. ## A client that behaves 1. Send `X-API-Key` and read `code` on every failure. 2. On `rate_limited`, sleep `Retry-After` and continue. 3. On `quota_exceeded`, stop and alert. Retrying cannot help. 4. On `5xx`, `quota_unavailable`, or `unavailable`, retry with exponential backoff and a ceiling. 5. Stream instead of polling; keep the `cursor` you were given. 6. Filter server-side. `GET /v2/events?venue=ven_...&startFrom=...` beats fetching everything and filtering locally, for both budgets. # MCP integration > Connect Claude, Cursor, and other MCP clients to Betwatch racing data using your API key. Source: https://beta.betwatch.com/docs/api/mcp/ · Markdown: https://beta.betwatch.com/docs/api/mcp/index.md Ask your AI assistant about races, runners, bookmaker prices, price movement, and results. Betwatch's **read-only MCP server** gives it tools backed by the same data and access controls as the Racing API. ## What you need - A [Betwatch API key](https://beta.betwatch.com/account/api) with the `rest` scope. MCP inherits the public API's access policy, including current open access for valid key owners without an API plan. It never authenticates with your website session. - An MCP client that supports Streamable HTTP and custom headers, or the local bridge below for stdio-only clients. - For the local bridge only: a supported Node.js LTS release with `npx`. ## Option A: connect directly Use this endpoint, **without** the REST API's `/v2` prefix: `https://api-beta.betwatch.com/mcp` Send your key in the `X-API-Key` header on every request. Bearer tokens, session cookies, and keys in the URL are not supported. MCP does not have a separate subscription or separate API key. ### Claude Code ```bash claude mcp add \ --transport http betwatch \ https://api-beta.betwatch.com/mcp \ --header "X-API-Key: YOUR_API_KEY" ``` Replace the placeholder locally. The key is stored in your client's configuration; keep that file private and never commit it. To avoid a literal key in shell history or project files, prefer Claude Code's environment-variable expansion in `.mcp.json` (set `BETWATCH_API_KEY` privately in the launching environment): ```json { "mcpServers": { "betwatch": { "type": "http", "url": "https://api-beta.betwatch.com/mcp", "headers": { "X-API-Key": "${BETWATCH_API_KEY}" } } } } ``` ### Clients with HTTP configuration For clients that accept an `mcpServers` entry with `url` and `headers`: ```json { "mcpServers": { "betwatch": { "url": "https://api-beta.betwatch.com/mcp", "headers": { "X-API-Key": "YOUR_API_KEY" } } } } ``` Merge the `betwatch` entry into your existing configuration. Do not overwrite other servers. If your client only accepts `command` and `args`, use Option B. OAuth-only connectors that cannot send a custom header are not supported. ## Option B: Claude Desktop / stdio bridge The third-party [`mcp-remote`](https://github.com/geelen/mcp-remote) bridge lets a local-only client connect to the hosted server. No Betwatch server runs locally; the bridge forwards requests over HTTPS. Open Claude Desktop's **Settings → Developer → Edit Config**. The usual paths are: - macOS: `~/Library/Application Support/Claude/claude_desktop_config.json` - Windows: `%APPDATA%\Claude\claude_desktop_config.json` Add this entry, replace the key placeholder locally, and restart the app: ```json { "mcpServers": { "betwatch": { "command": "npx", "args": [ "-y", "mcp-remote@0.15.2", "https://api-beta.betwatch.com/mcp", "--transport", "http-only", "--header", "X-API-Key:${BETWATCH_API_KEY}" ], "env": { "BETWATCH_API_KEY": "YOUR_API_KEY" } } } } ``` The bridge expands the environment variable; the key is not a tool argument. Treat the configuration file as a secret. Your assistant's provider receives the data returned by the tools, so only connect clients you trust. This example pins the bridge version used in interoperability tests. Review updates before changing it; `npx` downloads and executes third-party code on your machine. Do not enable verbose/debug logs when sharing diagnostics: bridge logs can contain resolved headers, including your key. Prefer native HTTP support when your client provides it. ## Verify the connection Open your client's MCP/tools list and check that `betwatch` is connected. In Claude Code, use `/mcp`. Then ask: > List the next five Australian thoroughbred races. Show each race's ID and start > time in Australia/Brisbane. The assistant should call `list_events`, not answer from memory. An empty list can mean that no races match the requested time window and your plan's coverage. ## Available tools | Tool | What it returns | | --- | --- | | `list_events` | Races filtered by sport, country, status, venue, meeting, and start time | | `get_event` | One race; `include: ["racing"]` adds available racing details and results | | `get_event_snapshot` | Compact runner price comparisons by default; `view: "full"` for individual quotes | | `list_entrants` | Runners in a race, or starts for a durable competitor | | `get_entrant` | One runner's entry in one race | | `get_competitor` | The durable runner identity across races | | `get_competitor_form` | Known past starts, newest first; ten by default, with race facts and results | | `list_odds` | Source prices; `include: ["history"]` adds available fluctuations | | `get_odds` | One source's price for one runner and win/place market | | `list_meetings` / `get_meeting` | Race meetings | | `list_venues` / `get_venue` | Racing venues | | `list_sources` | Bookmaker, tote, and exchange names and source IDs | Tools return the public API's JSON, including opaque IDs, pagination cursors, availability states, and timestamps. The client receives both structured JSON and a text representation. Parameters use the same names as the REST API, with arrays for filters such as `sport`, `event`, `source`, and `include`. `tools/list` includes each tool's input and output JSON Schemas. Output schemas are self-contained and cover both the successful API response and its problem response; invalid arguments can instead return text with `isError: true`. For example, `list_odds` needs an `event`, `entrant`, `meeting`, or `venue` filter. History additionally needs an `event` or `entrant` filter. Follow `next` using `after` with the original filters; the server does not fetch extra pages for you. See [Pagination](/docs/api/pagination) and [Prices](/docs/api/prices). ## Example prompts - “Which greyhound races start in Australia in the next hour?” - “Compare available fixed-win prices for the runners in Randwick race 3. Show the best quoted price and when it was observed.” - “Show Sportsbet's win-price movement for this runner today.” - “What are the reported placings for this completed race? Say if results are not available yet.” The assistant can compare returned prices, but there is no separate `find_best_price` or bet-grading tool. Fixed bookmaker odds, tote dividends, exchange back prices, and exchange lay prices are different products; do not rank them as interchangeable quotes. Missing prices are not zero, and a closed race is not necessarily resulted. ## Recipes with explicit tool arguments These examples show `tools/call` parameters, not complete HTTP requests. Replace ID placeholders with values returned by earlier calls; they are not real IDs. ### Discover races in a local day Resolve “today” in the user's timezone first. For 30 October 2026 in Brisbane: ```json { "name": "list_events", "arguments": { "sport": ["thoroughbred"], "country": ["au"], "startFrom": "2026-10-30T00:00:00+10:00", "startTo": "2026-10-30T23:59:59+10:00", "limit": 5 } } ``` Use a current date when running this example. Both bounds are inclusive. `country` uses lowercase two-letter codes; `sport` is `thoroughbred`, `greyhound`, or `harness`. More results are available when `next` is present: repeat the call with the same filters and add `"after": "RETURNED_NEXT_CURSOR"`. Do not use an ID as a cursor or keep fetching pages without a user need. ### Compare one race's prices Discover source IDs with `list_sources`, then fetch the race in one call: ```json { "name": "get_event_snapshot", "arguments": { "id": "RETURNED_EVENT_ID", "sourceKind": ["bookmaker"], "key": ["win", "place"], "maxAge": 120 } } ``` The default `summary` contains one row per runner with best price and sources (including ties), median, source count and latest/oldest check times. Only available, confirmed quotes checked within 120 seconds qualify by default. Win/place, different place terms, bookmakers, totes and exchanges stay separate. No eligible quotes means an empty price group, not zero odds. A higher decimal quote is not a prediction of a better result. Use `source` for exact providers, `view: "full"` for individual rows, and `include: ["coverage"]` for source observations. Coverage is omitted by default. Exchange reads use `depth: "top"`; request `"full"` only for order-book analysis. Racing enrichment defaults to win/place dividends; use `pool` for other pools. See [Prices](/docs/api/prices) for retained versus current quotes and timestamp meanings. A compact snapshot is a read, not a live subscription, and has no stream handoff. ### Last ten runs ```json { "name": "get_competitor_form", "arguments": { "id": "RETURNED_COMPETITOR_ID", "limit": 10 } } ``` Use an entrant's `competitorId`, not its entrant or event ID. This returns known past starts, newest first, with date, venue, distance, class, barrier, finish and field size. Official starting prices and margins remain null when unavailable. It is not a complete career record. `list_events` does not accept `competitor`; unsupported filters and inclusions fail instead of silently widening results. Keep the same filters when passing `next` back as `after`. ### Read price movement or results For price movement, limit the sources and request history explicitly: ```json { "name": "list_odds", "arguments": { "entrant": ["RETURNED_ENTRANT_ID"], "source": ["sportsbet"], "key": ["win"], "include": ["history"], "limit": 20 } } ``` An entrant is one runner in one race; a competitor identifies the runner across races. For reported placings use `get_event` with `{"id":"RETURNED_EVENT_ID","include":["racing"]}`. Missing results must stay unknown, even when betting is closed. History is bounded by API access and data availability; neither a restart nor another MCP client widens that access. ## Access and usage Your normal [API limits and quota](/docs/api/limits) apply. Every data-tool call makes one REST read, charged at that route's normal rate. Initialization and listing tools do not spend monthly units. MCP protocol requests use the account's discovery burst budget; data reads also use the relevant REST route's budget. Repeated calls and extra pages consume quota just like REST requests. Discovery-class tools spend two discovery burst tokens: one for the MCP HTTP request and one for the underlying read. Other tools spend one discovery token plus one token in their REST class. A read is not necessarily one monthly unit: for example, meeting and venue catalogue reads cost five units. The same sport, country, history, IP, and account restrictions apply. A key is checked on every HTTP request. Each data read is limited to 2 MiB before MCP encoding: reduce the page size or narrow the filters if a response is too large. An oversized data read still spends quota. This version supports racing reads only: no bet placement, account changes, alerts, sports props, injuries, or long-running live subscriptions. For continuous updates, use the API's [snapshot-and-stream workflow](/docs/api/streaming). ## Implementing an MCP client Use a maintained MCP SDK where possible. The endpoint is **stateless Streamable HTTP**, not the older HTTP+SSE transport: no session ID, sticky connection, or background event stream is required. There are no prompts, resources, or server-side tool-change subscriptions. All data is requested through tools. For a wire-level check, this initializes the 2025-11-25 protocol. Store the key privately in `BETWATCH_API_KEY` before running; never paste it into an AI chat: ```bash curl --fail-with-body \ 'https://api-beta.betwatch.com/mcp' \ --header "X-API-Key: $BETWATCH_API_KEY" \ --header 'Content-Type: application/json' \ --header 'Accept: application/json, text/event-stream' \ --data @- <<'JSON' { "jsonrpc": "2.0", "id": 1, "method": "initialize", "params": { "protocolVersion": "2025-11-25", "capabilities": {}, "clientInfo": { "name": "betwatch-check", "version": "1.0" } } } JSON ``` For this protocol, send `notifications/initialized` after initialization and use the negotiated `MCP-Protocol-Version` header on subsequent requests. The notification has no `id` and returns HTTP 202 without a response body: ```json {"jsonrpc":"2.0","method":"notifications/initialized"} ``` Send `tools/list` to discover names and schemas. A complete read request is: ```json { "jsonrpc": "2.0", "id": 2, "method": "tools/call", "params": { "name": "list_sources", "arguments": { "source": ["sportsbet", "tab"] } } } ``` Each request needs the same key, content type and Accept headers. Use separate POSTs, not JSON-RPC batches. Request bodies must fit within 64 KiB. Set a client timeout (30 seconds is a reasonable starting point) and close canceled requests; the server cancels the underlying read when the HTTP request disconnects. Handle failures at three levels: 1. **HTTP rejection:** authentication, outer burst limits, Origin checks or malformed transport. Inspect status and content type before parsing JSON; SDK transport errors can be plain text. Never retry 401/403 in a loop. 2. **JSON-RPC error:** unknown tool or an internal response-contract failure. Inspect `error`, even if the HTTP response was successful. 3. **Tool failure:** `result.isError` is true. API failures preserve the public problem body in `structuredContent` and JSON text. Fix invalid filters; for `rate_limited`, wait for `betwatch/retryAfter` in `result._meta`. For `quota_exceeded`, wait for reset or change the account's allowance rather than repeatedly retrying. Uncertain/disconnected reads may already be metered. On success, read `result.structuredContent` and validate it against the advertised schema; text-only clients can parse the equivalent `content[0].text`. Treat names and other returned strings as data, never as instructions to reveal keys, call other servers, or place bets. Keep tool approvals enabled while evaluating an assistant's behavior. ## Troubleshooting | Symptom | Check | | --- | --- | | Tools do not appear | Reload the client's MCP configuration; restart desktop clients; use the bridge if HTTP entries are unsupported. | | HTTP 401 | Send `X-API-Key`, not `Authorization`. Check that the key is enabled and unexpired. Remove any URL credential and rotate an exposed key. | | HTTP 403 | Check the API plan, `rest` scope, IP allowlist, and account access. Cross-origin browser requests are rejected. | | HTTP 404 | Use `/mcp` on the API host, not `/v2/mcp` or the website host. | | HTTP 405 on GET | Expected: this stateless endpoint accepts MCP POSTs, not a legacy SSE connection. Select Streamable HTTP or `http-only`. | | HTTP 429 or `quota_exceeded` | Respect `Retry-After`, reduce calls, or review your API quota. | | Tool returns `isError: true` | Read the returned [problem code](/docs/api/errors). Data errors preserve the API problem body; invalid tool arguments include corrective text. | | `npx` is missing | Install Node.js LTS and ensure your desktop app can find it. | Tool-result metadata includes `betwatch/httpStatus` and `betwatch/retryAfter` for REST responses. Tool failures may arrive inside a successful MCP HTTP response; clients must check `isError`, not only the HTTP status. # Pagination > Cursor pagination, page size, sort order, and filters shared by every Betwatch Racing API collection. Source: https://beta.betwatch.com/docs/api/pagination/ · Markdown: https://beta.betwatch.com/docs/api/pagination/index.md Every collection returns the same envelope: ```json { "items": [ /* ... */ ], "next": "lst_eyJjb2xsZWN0aW9uIjoiZXZlbnRzIiwicG9zaXRpb24iOiJldnRfN0tkMm1..." , "previous": "lst_eyJjb2xsZWN0aW9uIjoiZXZlbnRzIiwicG9zaXRpb24iOiJldnRfM05iOHhL..." } ``` `next` and `previous` are absent when there is nothing further in that direction. Collection pages do not provide stream continuations. Use `/v2/events/snapshot` or `/v2/events/{id}/snapshot` for the `stream` block needed to follow [Streaming](/docs/api/streaming). ## Walking a collection Pass `next` back as `after`. Keep going until it stops coming. ```bash # First page curl 'https://api-beta.betwatch.com/v2/events?limit=100' --header 'X-API-Key: YOUR_API_KEY' # Next page curl 'https://api-beta.betwatch.com/v2/events?limit=100&after=lst_eyJjb2xsZWN0aW9u...' \ --header 'X-API-Key: YOUR_API_KEY' ``` ```python def all_events(client, **filters): cursor = None while True: page = client.get("/v2/events", params={**filters, "limit": 200, **({"after": cursor} if cursor else {})}) yield from page["items"] cursor = page.get("next") if not cursor: return ``` `before` walks backwards from a cursor. `after` and `before` are mutually exclusive; sending both is `422` [`invalid_filter`](/docs/api/errors#invalid_filter). > **A cursor belongs to its collection and filters** > > A `next` from `/v2/venues` is not valid on `/v2/meetings`. Changing filters while reusing a cursor also returns `422` [`invalid_filter`](/docs/api/errors#invalid_filter), rather than a misleading empty page. Keep the original filters on every page; restart pagination when changing them. Cursors encode a position and a filter fingerprint, nothing about you, and are not secret or authorization credentials. Their format is not an API contract: do not decode, build, or edit one. Entitlements are checked independently on every request. List cursors are not cryptographically signed; the fingerprint prevents accidental filter reuse, not malicious forgery. ## Page size `limit` accepts 1–200 and defaults to 100. Outside that range is `422` [`invalid_filter`](/docs/api/errors#invalid_filter). There is no total count. Counting a collection you are about to page through costs as much as the page itself and is stale by the time you read it; page until `next` is absent instead. ## Sort order Each collection has a documented order, and cursors follow it: | Collection | Order | |---|---| | `/v2/events` | Start time, earliest first | | `/v2/entrants` | Saddle-cloth number | | `/v2/venues` | Venue name | | `/v2/meetings` | Local race date, then venue name | | `/v2/sources` | Source name | | `/v2/odds` | Identifier — arbitrary but stable | | `/v2/competitors/{id}/form` | Start time, newest first | Where the order is by identifier it is stable within a request, but it carries no meaning: do not present it to a user as if it did, and do not infer time or importance from it. ## Filters REST collection filters combine as AND across kinds and OR within a kind. Encode array values as comma-separated values: `?sport=thoroughbred&country=au,nz` means thoroughbred racing in Australia or New Zealand. Repeated REST query keys do not combine values. The [SSE endpoint](/docs/api/streaming#filters) uses repeated keys instead. Supported filters depend on the endpoint; snapshot continuation pages accept only their page token. | Filter | Accepts | |---|---| | `sport` | `thoroughbred`, `greyhound`, `harness` | | `country` | ISO 3166-1 alpha-2, any case (`au`, `NZ`) | | `status` | `scheduled`, `open`, `in_progress`, `closed`, `interim`, `final`, `abandoned`, `cancelled`, `postponed`, `unknown` | | `event`, `meeting`, `venue`, `entrant`, `competitor` | The matching opaque id. | | `key` | `win` or `place` | | `source` | A source id from `/v2/sources` | | `startFrom`, `startTo` | RFC 3339 timestamps with `Z` or an explicit offset, inclusive. Omit `startFrom` on a discovery read (with no `startTo`, or a future one) and it starts five minutes ago — see [List races](/docs/api/races#list-races). | | `include` | Endpoint-specific; unsupported values return `422`. See below. | | `limit`, `after`, `before` | Paging, as above | At most 50 values per filter. More is `422` [`invalid_filter`](/docs/api/errors#invalid_filter). Unknown query parameters are rejected, so a typo surfaces immediately instead of quietly widening your results. Add `include` values only for data you use: each one costs a read on our side and quota on yours. Shared parameter names do not imply every endpoint accepts them. For example, `competitor` is supported on `/entrants`, not `/events`. Use competitor form for date-ordered past runs. A date-time without a timezone is rejected, with an example of the required format; URL-encode a positive offset's `+`. | Read | Accepted `include` values | |---|---| | Events list/detail | `coverage`, `racing` | | Entrants list/detail | `racing` | | Odds list | `history`, `coverage` | | Single odds | `history` | | Single-event snapshot | `coverage`, `history`, `racing` (`history` requires full view) | | Single meeting | `events` | ## Some collections require a filter `/v2/odds` and `/v2/entrants` refuse an unscoped read with `422` [`filter_required`](/docs/api/errors#filter_required). They exist to answer questions about races you have already found, and serving them unscoped would mean hydrating everything you can see to return one page. Discover with `/v2/events` first. # Prices > Read bookmaker, tote, and exchange prices with GET /v2/odds, including price history and coverage. Source: https://beta.betwatch.com/docs/api/prices/ · Markdown: https://beta.betwatch.com/docs/api/prices/index.md Once you know which races you want, ask for their prices. One request covers every source we track for those races, paged like any list: a full race card is several hundred rows, so follow `next` (or pass `limit=200`) until it is absent. See [Pagination](/docs/api/pagination). ```bash curl 'https://api-beta.betwatch.com/v2/odds?event=evt_7Kd2mQx4TnPbW9sVfHjLcR' \ --header 'X-API-Key: YOUR_API_KEY' ``` ```json { "items": [ { "id": "odd_7Kd2mQx4TnPbW9sVfHjLcR.4Bg9NpXqTmVdWs2HjFkLcR", "eventId": "evt_7Kd2mQx4TnPbW9sVfHjLcR", "key": "win", "entrantId": "ent_4Nb8xKpQ2mVfTdRcHjW5Ls", "source": { "id": "sportsbet", "name": "Sportsbet", "kind": "bookmaker" }, "state": "available", "price": 3.2, "observedAt": "2026-08-17T04:02:11Z", "updatedAt": "2026-08-17T04:02:12Z" } ], "coverage": [] } ``` ## Odds reads are always scoped `/v2/odds` requires at least one of `event`, `entrant`, `meeting`, or `venue`. Without one it returns `422` [`filter_required`](/docs/api/errors#filter_required). That is not an arbitrary restriction. Pricing every race in view means hydrating every race in view, which would be slow for you and expensive for us, to answer a question nobody actually has. Find races with [`/v2/events`](/docs/api/races), then price them: ```bash # Several races at once ?event=evt_7Kd2mQx4TnPbW9sVfHjLcR,evt_3Nb8xKpQ2mVfTdRcHjW5Ls # A whole meeting ?meeting=mtg_3Nb8xKpQ2mVfTdRcHjW5Ls # One runner's prices, everywhere ?entrant=ent_4Nb8xKpQ2mVfTdRcHjW5Ls # Only the sources you display ?event=evt_7Kd2mQx4TnPbW9sVfHjLcR&source=sportsbet,ladbrokes,betfair ``` Every parameter and response field: [`/odds` in the API reference →](https://beta.betwatch.com/api/docs#tag/prices/GET/odds) ## Reading a price | Field | Meaning | |---|---| | `price` | Retained decimal odds, when known. May remain present on unavailable quotes; it is not by itself a current offer. Exchange rows use `bestBack` / `bestLay`. | | `state` | `available`, `suspended`, `withdrawn`, `settled`, or `unknown`. Check this before showing `price`. | | `source` | Who is offering it, with `kind` of `bookmaker`, `tote`, or `exchange`. | | `key` | `win` or `place`. Place rows also carry `placesPaid`. | | `entrantId`, `entrantName`, `entrantNumber` | The runner's identity and display labels. | | `observedAt` | When Betwatch received the retained price value. An unchanged quote can keep an old value here. | | `updatedAt` | When Betwatch wrote the retained price record, not a provider clock or proof of a price change. | | `checkedAt` | Latest successful source-product observation. Failed fetches do not advance it. | | `confirmation` | `confirmed` when the latest source check supports the quote; `unconfirmed` otherwise. A recent check alone does not make an unpriced observation a usable quote. A new price can be briefly `unconfirmed` (with `state=unknown`) until a source check that covers it is recorded, usually within 15 seconds. It stays `unconfirmed` while a newer check contradicts it. | ### Freshness and retained prices Require both `state=available` and `confirmation=confirmed` before comparing current offers. Betwatch retains the last numeric quote after a source stops pricing it; that retained number is not evidence it can still be taken. A newer unpriced source observation marks it `unknown` / `unconfirmed`. Closed races suspend current offers; settled races omit current quotes. An actual jump is not inferred from the scheduled start time. Use `maxAge=120` on `/odds` or a single-event snapshot to return only available, confirmed quotes checked within 120 seconds. Without `maxAge`, full-detail REST reads retain older quotes and their evidence. [Summary snapshots](/docs/api/races#compact-price-comparison) use 120 seconds by default. An old price that a recent successful source check still confirms is included; a recent retained price contradicted by an unpriced observation is excluded. A multi-race `GET /v2/events/snapshot` can show a confirmation up to about a minute late; `/odds` and the single-event snapshot are current. All these times are Betwatch clocks, not measurements of provider clock skew. SSE republishes changed state, not every poll: `checkedAt` in a stored stream frame is not a polling heartbeat. Re-read REST for a point-in-time freshness comparison rather than expiring a stream quote solely because no new frame arrived. ### Exchange prices Only rows with `source.id` set to `betfair` expose native Betfair join IDs. `exchange.marketId` is a string and `exchange.selectionId` is an integer. Use both values to join the odds row directly to Betfair. They are not Betwatch `evt_`, `ent_`, or `odd_` ids. Win and place rows have distinct Betfair market ids. ```json { "source": { "id": "betfair", "name": "Betfair", "kind": "exchange" }, "state": "available", "exchange": { "marketId": "1.234567890", "selectionId": 12345678, "marketState": "open", "outcomeState": "active", "inPlay": false, "back": [{ "price": 3.25, "size": 42.5 }, { "price": 3.2, "size": 18 }], "lay": [{ "price": 3.3, "size": 12 }], "last": 3.25 } } ``` The IDs are optional. When Betwatch has not stored native identity, the `exchange` block omits them. Existing rows gain them after the next accepted upstream book. Historical rows are not backfilled. When present, the fields are included in `GET /v2/odds`, snapshot `odds`, live SSE `odds` frames, and SSE bootstrap `odds_set.items`. Betfair is the only source with this exception. Other source-native IDs remain private. `back` and `lay` are ordered best first. `size` is the volume available at that price. Rows also expose top-level `bestBack`, `bestLay`, and `last`. Best prices require positive available size; `last` is the last traded price, not an offer. `depth=top` retains only the best liquid level on each side; `depth=full` retains the ladders (REST default, MCP defaults to top). Exchange quotes need not have a bookmaker-style `price`. Summary comparisons use `bestBack`, in a separate exchange group, never mixed with fixed odds or tote estimates. ### Tote prices Tote rows name their pool jurisdiction on the source, so `tab-nsw` and `tab-vic` are distinct sources rather than one "TAB" with a hidden dimension. List them from [`/v2/sources`](/docs/api/catalogue#sources). ## Price history ```bash curl 'https://api-beta.betwatch.com/v2/odds?event=evt_7Kd2mQx4TnPbW9sVfHjLcR&include=history' \ --header 'X-API-Key: YOUR_API_KEY' ``` Each row gains a `history` array of `{ price, observedAt, updatedAt }` fluctuations. `include=history` needs an `event` or `entrant` filter — a meeting or venue is too wide — and costs double quota. Ask for it on the race in view, not across a polling loop. `GET /v2/odds/{id}?include=history` honours the same inclusion. Fixed-bookmaker rows also include `firstRecorded` and `lastRecorded` samples when stored. The first sample is retained independently of the rolling 256-change buffer from contract 2.4 onwards; legacy data may start later. Neither is the bookmaker's official opening price or official starting price. `book.firstFull` remains the separate, immutable first complete card. Explicit history reads can return retained settled quotes, marked `settled` and `unconfirmed`; they must not be used as current offers. An empty current-odds response on a final race does not establish that its history was deleted. Retention is not a guarantee of a complete lifetime price series. ## Coverage Odds responses include a `coverage` array: per source and proposition (`key`, plus `placesPaid` on place), current `state` (`priced` or `unpriced`), `marketState`, and the last source `observedState`. Inactive markets report current `state=unpriced` even when the retained observation was `priced`. This distinguishes market closure from a source never pricing it, without inventing an expiry or deletion time. `maxAge` filters quote rows, not the observation history in coverage; inspect `observedAt` too. ```json { "eventId": "evt_7Kd2mQx4TnPbW9sVfHjLcR", "key": "win", "sourceId": "sportsbet", "state": "priced", "book": { "status": "full", "active": 7, "priced": 7, "fullAt": "2026-10-30T01:02:03Z" }, "observedAt": "2026-10-30T01:04:10Z" } ``` | `book` field | Meaning | |---|---| | `status` | `unpriced`: no active entrant has a price from this source. `partial`: some do. `full`: every active entrant does. | | `active` | Entrants that count: not scratched, not a vacant box, and not a reserve that has not taken a box. | | `priced` | Active entrants with a current price from this source. | | `fullAt` | When the book first became full. Set once; a later scratching or suspension does not move it. | | `firstFull` | Every active entrant's price at `fullAt` — the first full card. Set once, and carried on every coverage row and frame from then on. | To know when a source has priced the whole field, wait for `book.status` to be `full`. A late scratching can turn a `partial` book `full` without any new price, and a new scratching can turn a `full` book back to `partial`; `fullAt` and `firstFull` keep the first moment either way, so a runner scratched after the book filled stays in `firstFull`; drop it by its entrant's `scratched` if you want the card as it will run. `book` is absent until Betwatch has counted the race. This is how you tell "this bookmaker has this race at 3.20" from "this bookmaker has not opened this race yet". A missing row is not a zero price, and coverage is what lets you render that difference honestly. Event reads can attach the same data with `?include=coverage`. The `key` filter is `win` or `place`. Odds identifiers are derived from the race rather than stored, which is why they look different — two segments joined by a dot. They are still entirely opaque: pass them back as given and never split, parse, or build one. ### A complete, confirmed market No single field says a source's market is complete and confirmed. Read three together, per source and `key`: 1. `coverage.book.status` is `full`: every active entrant has a price from this source. 2. `coverage.marketState` is `unsettled`: the market is live. 3. Every active entrant's odds row for that source and `key` has `state=available`, which only a confirmed quote can have. Bookmaker and tote quotes are also suspended once the race is in progress; exchange quotes can stay available in play. The other fields do not answer it on their own. A numeric `price` can be retained or unconfirmed. Coverage `state=priced` needs only one priced runner. `book.status=full` counts prices, not confirmations, so a book can be `full` while some of its quotes are still `unconfirmed`. `fullAt` and `firstFull` record the first full card, not the current one. On the [stream](/docs/api/streaming), a quote that becomes confirmed by a later source check alone, with no price change, is not re-sent as an `odds` frame. The `odds` row you hold stays `unconfirmed` until that runner's next `odds` frame. Re-read REST (`GET /v2/odds?event=…` or the event snapshot) when you need the current confirmation of every runner. ## Get a price `GET /v2/odds/{id}` re-reads one row. It is a point lookup, so it is cheap, but a price you hold is a price from a moment ago: to stay current, follow [the stream](/docs/api/streaming) rather than re-reading ids in a loop. Every parameter and response field: [`/odds/{id}` in the API reference →](https://beta.betwatch.com/api/docs#tag/prices/GET/odds/{id}) # Races and runners > Find races with GET /events, read their fields with /entrants, and follow a runner across starts with /competitors. Source: https://beta.betwatch.com/docs/api/races/ · Markdown: https://beta.betwatch.com/docs/api/races/index.md Everything starts here. `GET /events` is the cheapest read on the API and the one your integration should lean on: find the races you care about, then ask for their prices. ## List races ```bash curl 'https://api-beta.betwatch.com/v2/events?sport=thoroughbred&country=au&limit=20' \ --header 'X-API-Key: YOUR_API_KEY' ``` Races come back in start-time order with their field attached. The scan stops as soon as the page is full, so "the next twenty races" never walks your whole window. **An unscoped read starts five minutes ago**, so the race that is running and the one that just settled stay in view and everything after them is upcoming. The same floor applies when you name only a future `startTo`, so `startTo=` means "from now until tomorrow". To reach further back, say so with `startFrom`; a `startTo` in the past is left alone and reads history up to it. Useful shapes: ```bash # Today's meetings at one track ?venue=ven_9Rq4TmXkPb2NdVfHcJsW7L&startFrom=2026-08-17T00:00:00Z&startTo=2026-08-17T23:59:59Z # Everything still to jump ?startFrom=2026-08-17T04:00:00Z&status=scheduled,open # One meeting's card ?meeting=mtg_3Nb8xKpQ2mVfTdRcHjW5Ls # Greyhounds in New Zealand ?sport=greyhound&country=nz ``` An event carries its `meetingId` and `venueId`, its `status`, `startAt`, and the racing facts you would expect on a race header — distance, track condition, class, prize money — under `racing`. `scheduledStartAt` explicitly names the latest canonical schedule (`startAt` remains its compatibility alias). `actualStartAt` is present only when a source supplied an actual start. A passed schedule, a late price update, or bookmaker suspension does not prove the race jumped or was delayed. An absent `racing.distanceMeters` means no canonical distance is known, not zero metres; form rows express the same unknown as null. ### Status `scheduled` before betting opens, `open` while it is, `in_progress` once running, then `closed` and `interim` before `final`. `abandoned`, `cancelled`, and `postponed` are what they sound like. Treat an unrecognised status as `unknown` rather than failing: the list can grow. Every parameter and response field: [`/events` in the API reference →](https://beta.betwatch.com/api/docs#tag/racing/GET/events) ### include=coverage `?include=coverage` attaches, per source, whether we currently have that race priced. Use it to show which bookmakers are live on a race without asking for the prices themselves — it is one extra batched read rather than a full pricing call. ### include=racing `?include=racing` adds the enrichment tier: race facts, dividends, and per-runner form, silks, and breeding. Use it for one race or a paginated scope snapshot when your application needs those fields. Periodic enriched snapshots are supported; choose their frequency for your freshness needs and [quota budget](/docs/api/limits), rather than using them just to detect price changes. **The stream does not keep the full enrichment tier current.** It carries live odds, coverage, event status/start time and core entrant changes such as scratchings, rider and gear. It does not replay the full REST form, silks, breeding or dividends. Keep that enrichment separately and refresh it over REST on demand or on a schedule appropriate to your application. An entrant frame is not a replacement for an enriched REST entrant: replacing the whole object can discard enrichment, while retaining it does not make it fresh. For live prices, bootstrap once and [follow the stream](/docs/api/streaming); refresh enrichment independently. Add `pool=win,place` to keep only those dividend pools. REST defaults to all pools; MCP racing enrichment defaults to win and place. Pool filtering changes dividends, not the win/place odds filter (`key`). ### Results and missing facts `result.positions` retains `entrantIds` and adds `entrants` with inline `id`, `number`, `name`, and nullable official `startingPrice`. `fieldSize` counts the known non-scratched, non-vacant field; `positionsReported` counts runners with placings. `completeness=partial` means the reported placings do not cover the known field. It does not tell you whether an absent runner failed to finish. `unknown` means there is insufficient field evidence. `result.changedAt` records a change in canonical placing groups, rather than an unrelated event rewrite. Legacy results without that clock omit it. `updatedAt` uses this clock when available, otherwise retains the legacy event-write fallback. Use `changedAt` for result-specific change detection. An entrant's nullable `racing.barrierRow` is unknown unless a source-backed row is retained. Repeated harness barrier numbers do not establish front/back rows; do not infer a row or a starting price from other numbers. ## One race ```bash curl 'https://api-beta.betwatch.com/v2/events/evt_7Kd2mQx4TnPbW9sVfHjLcR' \ --header 'X-API-Key: YOUR_API_KEY' ``` Same shape as a list row, same `include` options. Every parameter and response field: [`/events/{id}` in the API reference →](https://beta.betwatch.com/api/docs#tag/racing/GET/events/{id}) ## The whole race in one request ```bash curl 'https://api-beta.betwatch.com/v2/events/evt_7Kd2mQx4TnPbW9sVfHjLcR/snapshot' \ --header 'X-API-Key: YOUR_API_KEY' ``` ```json { "stream": { "cursor": "cur_8fKq2mXbTnPdW4sVfHjLcR9Nb3xKpQ", "event": ["evt_7Kd2mQx4TnPbW9sVfHjLcR"], "source": [] }, "event": { "id": "evt_7Kd2mQx4TnPbW9sVfHjLcR" }, "entrants": [], "odds": [ { "id": "odd_7Kd2mQx4TnPbW9sVfHjLcR.4Bg9NpXqTmVdWs2HjFkLcR", "key": "win", "entrantId": "ent_4Nb8xKpQ2mVfTdRcHjW5Ls", "source": { "id": "betfair", "name": "Betfair", "kind": "exchange" }, "state": "available", "exchange": { "marketId": "1.234567890", "selectionId": 12345678 } } ], "coverage": [] } ``` This endpoint returns the field, prices, coverage, and a `stream` continuation for one race. Each odds row names `key` (`win` or `place`) and `entrantId`. A Betfair row may also carry its native `exchange.marketId` and `exchange.selectionId`, so you can join that row directly to Betfair. Follow it by connecting to `stream.url`, the `/v2/stream` path and query with `cursor`, its filters, and `snapshot=none` already set. The cursor precedes the snapshot reads, so replay can overlap the baseline. Apply updates idempotently and wait for `sync` before treating that baseline as reconciled. Add `?source=sportsbet,betfair` to narrow it to the sources you display; `stream` returns those same sources for the handoff. If we cannot mint a cursor, the snapshot fails with `503` [`stream_unavailable`](/docs/api/errors#stream_unavailable) instead of returning data you could not safely follow. Every parameter and response field: [`/events/{id}/snapshot` in the API reference →](https://beta.betwatch.com/api/docs#tag/racing/GET/events/{id}/snapshot) ### Compact price comparison ```bash curl --get 'https://api-beta.betwatch.com/v2/events/evt_7Kd2mQx4TnPbW9sVfHjLcR/snapshot' \ --data-urlencode 'view=summary' \ --data-urlencode 'sourceKind=bookmaker' \ --data-urlencode 'key=win,place' \ --data-urlencode 'maxAge=120' \ --header 'X-API-Key: YOUR_API_KEY' ``` `summary` has one row per runner, with `entrantId`, `name`, `number` and `prices`. Each price group gives `best`, `bestSources` (all ties), `median`, `sourceCount`, `latestCheckedAt`, and `oldestCheckedAt`. Groups keep `key`, `placesPaid` and `sourceKind` separate: a three-place quote is not interchangeable with a two-place quote, nor a tote estimate with fixed odds. An empty `prices` array means no eligible comparison, not a zero price. Only available, confirmed quotes checked within `maxAge` seconds qualify (default 120 in summary mode). Add `source=...` to choose specific providers, `sourceKind=bookmaker,tote,exchange` for product types, and `include=coverage` only when needed. Summary returns an empty `odds` array rather than duplicating raw rows. `include=history` requires `view=full`. REST defaults to `view=full`, full exchange depth and coverage; MCP defaults to summary, top depth and no coverage. A summary, `maxAge`, `sourceKind`, or `depth=top` read omits `stream`, since those filters cannot be reproduced by an SSE continuation. Use the ordinary full snapshot above for streaming; compact snapshots do not require a stream cursor service. ## Competitor form ```bash curl 'https://api-beta.betwatch.com/v2/competitors/cmp_RqmLwSCXRVaBYqWrC8PKf8/form?limit=10' \ --header 'X-API-Key: YOUR_API_KEY' ``` Use the `competitorId` returned on an entrant. `/events?competitor=...` is not supported and returns `422`; `/entrants?competitor=...` lists entries, not date-sorted form. Form returns known past starts newest first, ten by default (maximum 200), with `next` pagination and optional `startFrom` / `startTo`. Each row includes date, venue, race number, distance, class, runner number, barrier, finish and field size where available. Scratched runners, future entries and races with neither an actual start nor placings are excluded. Entitlement/history limits still apply; this is not a complete career record. Missing `finish`, `distanceMeters`, `fieldSize`, official `startingPrice` and `winningMargin` are null. A missing finish does not mean unplaced. No official SP or margin is currently retained by this form projection; last bookmaker prices are not substituted. `GET /competitors/{id}` adds available sex, colour, sire, dam, `foalDate` and `foalDatePrecision`. A year-only foal date is not an exact birthday, and an incomplete form history must not be used to claim career totals. ## Snapshot races When you want current state for *many* races — not one — this is the call: ```bash curl 'https://api-beta.betwatch.com/v2/events/snapshot?sport=thoroughbred&country=au' \ --header 'X-API-Key: YOUR_API_KEY' ``` ```json { "stream": { "cursor": "cur_8fKq2mXbTnPdW4sVfHjLcR9Nb3xKpQ", "sport": ["thoroughbred"], "country": ["au"], "event": [], "source": [] }, "events": [], "entrants": [], "odds": [], "coverage": [], "next": "lst_eyJjb2xsZWN0aW9uIjoic25hcHNob3Qi..." } ``` The first page takes the same scope filters as `GET /events` — sport, country, meeting, venue, race, runner, source, and a start window — but not `status` or `competitor`, which cannot define a stream scope. Each page returns the field, prices, and coverage for its races, plus the continuation for the whole scope. The exact parameter list is in the [API reference →](https://beta.betwatch.com/api/docs#tag/racing/GET/events/snapshot). Later pages accept only the returned `after` or `before` token. Do not repeat filters, `include`, or `limit`: the sealed token restores them. Two properties worth relying on: - **Every page returns the same `stream.cursor`.** The boundary is captured before the first page is read and travels inside the page cursor, so you can page to the end and then follow without missing a change to a race you read on page one. You do not have to remember the first cursor yourself. - **`stream.url` is the stream to follow.** It carries the cursor and the exact filters to replay, which `stream` also lists. You never reconstruct a scope by hand, so it cannot drift out of step with the cursor. ```python snapshot = client.get("/v2/events/snapshot", params={"sport": "thoroughbred", "country": "au"}) pages = [snapshot] while snapshot.get("next"): snapshot = client.get("/v2/events/snapshot", params={"after": snapshot["next"]}) pages.append(snapshot) # One stream for the whole bootstrap, from any page. follow(pages[0]["stream"]["url"]) ``` `include=racing` works here too. `include=history` does not — fluctuations are event- or entrant-scoped, so ask `/v2/odds` for them once you know which races you care about. ## Runners in a race ```bash curl 'https://api-beta.betwatch.com/v2/entrants?event=evt_7Kd2mQx4TnPbW9sVfHjLcR' \ --header 'X-API-Key: YOUR_API_KEY' ``` Entrants page in saddle-cloth order. Needs an `event` or `competitor` filter — see [`filter_required`](/docs/api/errors#filter_required). Pass several `event` values to fetch fields for several races at once. An entrant is one runner *in one race*: number, barrier, weight, apprentice claim, gear, blinkers, emergency, rider, trainer, whether it is scratched and when, a deduction summary when one applies, and a `competitorId` pointing at the animal itself. `?include=racing` adds form, best silk, and breeding. Every parameter and response field: [`/entrants` in the API reference →](https://beta.betwatch.com/api/docs#tag/racing/GET/entrants) ## A runner across races A **competitor** is the durable identity — one horse, greyhound, or harness runner — while an **entrant** is that competitor's start in a particular race. ```bash # The animal curl 'https://api-beta.betwatch.com/v2/competitors/cmp_5Vf2HjWkPb8NdRqTmXcJs9' --header 'X-API-Key: YOUR_API_KEY' # Its starts, most recent first, within your history window curl 'https://api-beta.betwatch.com/v2/entrants?competitor=cmp_5Vf2HjWkPb8NdRqTmXcJs9' --header 'X-API-Key: YOUR_API_KEY' ``` One `competitor` filter at a time; combining several is `422` [`filter_required`](/docs/api/errors#filter_required). How far back the starts go is your plan's history window. Every parameter and response field: [`/competitors/{id}` in the API reference →](https://beta.betwatch.com/api/docs#tag/racing/GET/competitors/{id}) ## Next Prices for the races you just found: [Prices](/docs/api/prices). Following them live: [Streaming](/docs/api/streaming). # Stability > What the Betwatch Racing API promises during the beta, what can change, and how breaking changes are announced. Source: https://beta.betwatch.com/docs/api/stability/ · Markdown: https://beta.betwatch.com/docs/api/stability/index.md You are building software on top of this API. That software should not break without warning. ## During the beta The API is in beta. While it is, we fix design mistakes **in place under `/v2`** rather than keep them forever: a field can be removed or renamed. Every such change bumps the contract's minor version and is listed under **Breaking** in the [changelog](/docs/api/changelog), with what to do instead, and we tell API customers before it ships. The Python SDK ships a matching release. Everything else on this page holds during the beta too. ## What will not change Inside `/v2`, apart from changes listed under **Breaking** in the changelog, we will not: - remove a field, or change its type - move a field to a different place in the response - rename an endpoint, a query parameter, or a value in an enum you already receive - change the meaning of an existing error `code` - change a source id, an operation id, or the shape of an identifier prefix ## What can change The contract grows. Any of these can happen without notice, so your client should tolerate them: - **New fields** in existing responses. - **New endpoints**, new query parameters, new `include` values. - **New enum values**: a new event `status`, a new source `kind`, a new error `code`, a new stream frame. - **New sources** as we onboard bookmakers, totes, and exchanges. - **Wording**: `title` and `detail` on a problem document are prose and get clearer over time. `code` is what you branch on. Two rules make all of that safe on your side: 1. **Ignore fields you do not recognise.** Most JSON parsers do this already; some strict typed ones need to be told. 2. **Never exhaustively match an enum without a fallback.** Treat an unknown value as its category — an unfamiliar `status` is "some other status", an unfamiliar `code` is "an error of this HTTP class" — rather than throwing. ## Identifiers are opaque An id tells you its kind through its prefix (`evt_`, `ent_`, `cmp_`, `ven_`, `mtg_`, `odd_`). Everything after that is ours. Do not parse, split, validate the length or character set of, or construct an id. Store it as a string of unbounded length and pass back exactly what we sent. Odds ids currently contain a `.`; that is an implementation detail of how they are derived and is not a promise about their shape. The one guarantee: an id is stable for the thing it names, and passing it back always refers to the same thing. ### When two records turn out to be one Occasionally we discover that two records describe the same thing — the same horse under two spellings, the same race ingested twice — and merge them. When that happens: - **Stored ids resolve.** `evt_`, `ent_`, `cmp_`, `ven_`, and `mtg_` ids for the merged-away record keep working and return the surviving one, with `200`. You never receive a redirect; we follow it for you. - **Derived odds ids do not.** `odd_` ids are derived from the race that owned them, so the surviving race has different ones and the old id returns `404`. That is not data loss — re-read the event and take the new ids. A live stream following a merged race, venue, or competitor receives a `resync` frame and should bootstrap again; see [Resuming](/docs/api/streaming#resuming). Trainer, rider, and owner merges arrive as ordinary `entrant` frames instead. Treat a `404` on an id you were previously given as a signal to re-read rather than as an error. ## After the beta Once the API leaves beta, `/v2` only grows. A breaking change would ship at a new path prefix — `/v3` — alongside `/v2`, and `/v2` would keep running, so you move when it suits you. We will never silently change a response under an unchanged path. ## Versions The contract carries its own version, currently **2.5.0**, in the OpenAPI document's `info.version`. It changes when the public contract changes, independently of platform deployments. During the beta a minor version can carry breaking changes; the changelog says which. Every version is listed in the [changelog](/docs/api/changelog). ## The OpenAPI document The document is at [`/openapi.json`](https://api-beta.betwatch.com/openapi.json) on the API host. Servers is the API origin plus `/v2`; operation paths are `/events` and siblings — browse it through the [interactive reference](https://beta.betwatch.com/api/docs). Endpoints you may see referenced elsewhere and cannot find in it are internal to our own web app: unversioned, undocumented, and liable to change without warning. Please do not build on them — they are not an API, they are our furniture, and we rearrange it. ## Getting help Quote the `requestId` and `traceId` from a problem document and we can find your exact request. If something in this API is awkward to consume, tell us: the cost of fixing it now is far lower than the cost of you working around it forever. # Streaming > Follow live racing changes over Server-Sent Events with GET /v2/stream, including gap-free bootstrap and resumable cursors. Source: https://beta.betwatch.com/docs/api/streaming/ · Markdown: https://beta.betwatch.com/docs/api/streaming/index.md `GET /v2/stream` is a Server-Sent Events connection that delivers every change matching your filters as it happens. Frames are **not metered**, so following the market is cheaper than polling for it — and you see a move the moment it lands rather than on your next tick. ```bash curl -N 'https://api-beta.betwatch.com/v2/stream?snapshot=none&sport=thoroughbred&country=au&cursor=cur_8fKq2mXb...' \ --header 'X-API-Key: YOUR_API_KEY' ``` The `cursor` comes from a REST bootstrap. See [Starting up](#starting-up) before opening the stream. Requires the `stream` scope. See [Authentication](/docs/api/authentication#scopes). > **Not from a browser** > > Browser `EventSource` cannot send the `X-API-Key` header, so it cannot authenticate here. Stream on your server — where your key belongs — and relay to browsers over your own transport. Any client that sets headers works. ## What arrives ``` event: ready id: cur_8fKq2mXbTnPdW4sVfHjLcR9Nb3xKpQ data: {"cursor":"cur_8fKq2mXbTnPdW4sVfHjLcR9Nb3xKpQ"} event: odds id: cur_2Xp5NqTbMvWd8HjRcFkLs9Kd7mQ data: {"id":"odd_7Kd2mQx4...","eventId":"evt_7Kd2mQx4...","key":"win","entrantId":"ent_4Nb8xKpQ...","source":{"id":"betfair","name":"Betfair","kind":"exchange"},"state":"available","exchange":{"marketId":"1.234567890","selectionId":12345678,"marketState":"open","outcomeState":"active","inPlay":false,"back":[{"price":3.15,"size":42.5}],"lay":[{"price":3.2,"size":18}],"last":3.15},"observedAt":"2026-08-17T04:05:44Z","updatedAt":"2026-08-17T04:05:44Z"} ``` | Frame | Payload | Meaning | |---|---|---| | `ready` | cursor | A `snapshot=none` connection opened at this position. Replay is not yet complete. | | `event` | event id, status, start time | A race changed status or start time. | | `entrant` | entrant | A runner changed — scratched, rider swap, gear. | | `odds` | odds row | One source's price changed. The frame you will see most. A `state` of `withdrawn` is a tombstone: remove it from current state. | | `odds_set` | proposition plus rows | Several prices for one `win` or `place` at once, used during bootstrap. | | `coverage` | coverage row | A source's coverage of a race changed: it started or stopped pricing it, or its `book` count moved. | | `sync` | cursor | For `snapshot=none`, replay reached the connection's initial high-water mark and the baseline is reconciled. For `snapshot=full`, this commits the provisional snapshot at its anchor and is the first resumable frame; updates after that anchor follow. | | `ping` | cursor | Resumable keepalive after bootstrap, roughly every 15 seconds. Nothing changed. | | `resync` | reason | Your position is no longer replayable, or a race you follow was merged. Bootstrap again — see below. | | `error` | code, detail | Something went wrong mid-stream. | `odds` and `odds_set` carry the same row shape, so one apply function handles both. For a Betfair row, `exchange.marketId` and `exchange.selectionId` are native IDs that join the row directly to Betfair. They are optional, and they do not replace Betwatch `evt_`, `ent_`, or `odd_` ids. Win and place use distinct market IDs. Treat an unrecognised frame name as a no-op: frames can be added. Every data frame is new or changed. A frame arrives only when something in it differs from what this connection last delivered for the same resource — the odds row, coverage row, race, or runner. A newer `observedAt` or `updatedAt` alone is not a change, so the stream never re-sends state you already hold. A source that keeps confirming the same price sends nothing until the price moves. To see when Betwatch last checked a source, read `observedAt` from [coverage](/docs/api/prices#coverage) over REST. ## Order within a race Frames for one race arrive in the order Betwatch published them. In particular, a price frame arrives **before** the `coverage` frame whose [`book`](/docs/api/prices#coverage) it completed. Take the card from that coverage frame's `book.firstFull`, not from the `odds` frames you hold: it carries every active entrant's price at `fullAt`, so you do not need a REST read to get it. `book.firstFull` is the first moment every active runner had a price from that source. It counts prices, not confirmations, so it records the card Betwatch held, not a certification that each price could be taken at that instant. A coverage frame or odds row's `confirmation` reflects the source checks Betwatch had when it was published; a later check that only confirms an unchanged price does not re-send the `odds` row. To read every runner's current confirmation, use REST (see [A complete, confirmed market](/docs/api/prices#a-complete-confirmed-market)). A live batch of prices for one race and source can arrive as several `odds` frames in a row; apply them in order. Treat `fullAt` as the moment the book filled, not the time the frame reached you. ### Capturing the first full card To keep each race's first fully priced card from a source — say Sportsbet win for a day of greyhounds — snapshot the day with `source=sportsbet&key=win` (about 120 races fit one page at `limit=200`) and record every race whose coverage already has `book.fullAt`. Then connect to `stream.url` and, on each `coverage` frame, record the race the first time `book.fullAt` appears: `book.firstFull` is the card. Use `fullAt` rather than `status`, since a later scratching can turn a full book `partial` again while its first card stays fixed. On `resync`, snapshot again, record anything newly full, and follow the new `stream.url`; nothing already recorded changes. `/v2` coverage has no `complete` field; `book` is the completeness signal. (The 1.x Python SDK's `Coverage.complete` meant the source's last observation was a whole-race image, which a one-runner push update never is, so a fully priced race usually read `complete=false`.) Wait for `book.fullAt`. ## Starting up **Snapshot over REST, then connect with `snapshot=none`.** That is the path to build on: it is fast, it is resumable, and the cursor comes to you rather than being something you assemble. Using Python? Start with the [SDK README](https://github.com/betwatch/betwatch-sdk-python/tree/beta#live-prices) and [runnable examples on GitHub](https://github.com/betwatch/betwatch-sdk-python/tree/beta/examples). The SDK carries the filters and cursor into `follow()` and reconnects dropped connections for you. The protocol details below apply to any client implementing its own transport. This keeps live prices and core event/entrant changes current, not all `include=racing` enrichment. Refresh [form, silks, breeding and dividends over REST](/docs/api/races#includeracing) separately when needed. ```bash # 1. Snapshot the races you want. Page until `next` is absent. curl 'https://api-beta.betwatch.com/v2/events/snapshot?sport=thoroughbred&country=au' \ --header 'X-API-Key: YOUR_API_KEY' # 2. Connect with the cursor it returned, replaying the filters it names. curl -N 'https://api-beta.betwatch.com/v2/stream?snapshot=none&sport=thoroughbred&country=au&cursor=cur_8fKq2mXb...' \ --header 'X-API-Key: YOUR_API_KEY' ``` `GET /v2/events/snapshot` returns current state for a page of races — field, prices, coverage — plus a `stream` block naming the cursor, the exact filters to replay, and `url`: the `/v2/stream` path and query that does it for you, with `cursor` and `snapshot=none` already set. Append `compress` if you want it and connect. Every page returns the **same** cursor, captured before the first page was read, so you can page to the end and then follow without missing a change to a race you read first. See [Snapshot races](/docs/api/races#snapshot-races). For a single race, `GET /v2/events/{id}/snapshot` does the same thing for one race. ### snapshot=full — one connection, narrow scope only `snapshot=full` streams the current state as frames before going live, so a single connection needs no REST call at all: ```bash curl -N 'https://api-beta.betwatch.com/v2/stream?event=evt_7Kd2mQx4TnPbW9sVfHjLcR' \ --header 'X-API-Key: YOUR_API_KEY' ``` It requires an `event`, `meeting`, or `venue` filter. Anything broader is refused with `422` [`filter_required`](/docs/api/errors#filter_required) pointing at `/v2/events/snapshot`. > **Why it is refused rather than offered** > > On a broad scope that bootstrap took minutes, had no resumable position until `sync`, and started from nothing on any dropped connection — so a connection that died at 170 seconds of 180 had achieved nothing, and a client with reconnect enabled would loop forever without converging. > > Rather than leave a mode in place that cannot complete on the obvious input, the API says no and names the path that works. `snapshot=full` remains available for one race or one meeting. > > The server sends SSE keepalive comments throughout a bootstrap, so the connection is not silent. These comments do not carry an id and do not advance `Last-Event-ID`. Do not set a client read timeout shorter than the keepalive cadence. #### Committing a full bootstrap The server anchors the retained stream before reading snapshot data. Snapshot data frames carry no SSE `id`; the `sync` frame commits the complete snapshot and carries its first resumable cursor. Everything published between the internal anchor and `sync` is delivered after `sync`. So if a price moves at +10s while the snapshot hydrated that race at +5s, you receive the snapshot value during the bootstrap and the newer value after `sync`. Apply frames in order and you converge on current state. There is no silent staleness window, however long the bootstrap takes. Two ways that can fail, and both tell you: - If the anchor ages out of the replay window before the bootstrap finishes, you get a `resync` frame or a `409`. Bootstrap again over REST and reconnect with the fresh `cursor`. - If a connection drops mid-bootstrap, discard the incomplete snapshot. Start `snapshot=full` again without a cursor, or bootstrap over REST and connect with `snapshot=none`. There is no pre-`sync` frame id to resume. ### Snapshot and replay overlap The cursor is captured **before** the snapshot reads anything. Reads return current state, so the snapshot may already contain an update that replay delivers again. Replay may also deliver an older value before a newer one already seen in the snapshot. Apply frames in order and idempotently by resource identity; do not count every replay frame as a new price movement. On a REST handoff or cursor resume, `ready` confirms connection opening and `sync` marks completion of the initial replay. Both snapshot endpoints hand you the whole handoff in `stream`: the `cursor` plus the exact filters to replay. Use those values as given rather than reconstructing them — a scope that does not match the one the cursor was minted for is `409` [`cursor_scope_changed`](/docs/api/errors#cursor_scope_changed). ## Resuming Every SSE `id` you receive is a cursor. Full-snapshot data before `sync` intentionally has no id. After `sync`, keep the last id you processed and reconnect with it, either in the standard `Last-Event-ID` header (which SSE clients send automatically) or as `?cursor=`. `Last-Event-ID` wins if both are present. ```bash curl -N 'https://api-beta.betwatch.com/v2/stream?snapshot=none&sport=thoroughbred&country=au' \ --header 'X-API-Key: YOUR_API_KEY' \ --header 'Last-Event-ID: cur_2Xp5NqTbMvWd8HjRcFkLs9Kd7mQ' ``` Keep **all** filters from the returned continuation, including its resolved `startFrom` and `startTo` when present; the abbreviated examples above are not a substitute for that handoff. With `stream.url`, reuse the returned path and query and send your last processed id in `Last-Event-ID`. With the Python SDK, `follow(snapshot)` handles the handoff and transport reconnects. You receive everything published since that position. Replay reaches back as far as your plan's window. Two things end a resume, and both are told to you plainly rather than left to guess: - A **`resync` frame** means your position is too old, the stream moved past what can be replayed, or a race, venue, or competitor you follow was merged with another. Bootstrap over REST again and reconnect with the new snapshot's `stream.url`. A merge `resync` carries a `resyncToken`; pass it as `resyncToken` on that snapshot and it is not charged. Every connection gets its own token. Trainer, rider, and owner merges never resync: they arrive as `entrant` frames. - An **`error` frame** ends the current stream with a public error code and the last valid cursor; it never includes an internal failure. After `sync`, reconnect from that frame id with backoff. Before `sync`, discard the partial snapshot and bootstrap again. A client that reads far more slowly than the feed is published receives one too; its reconnect replays what it missed. - **`409` [`cursor_expired`](/docs/api/errors#cursor_expired)** on connect means the same thing before the stream opens. **`409` [`cursor_scope_changed`](/docs/api/errors#cursor_scope_changed)** means the cursor was minted for different filters, a different entitlement, or a different account — replay the filters you bootstrapped with. After `sync`, keep state on a dropped connection and reconnect with the last cursor. Before `sync`, discard the partial full snapshot and restart its bootstrap. ## Compression The stream is plain text by default. Ask for compression with the `compress` query parameter: `compress=zstd` is smaller, `compress=gzip` works everywhere. Send a matching `Accept-Encoding` header as well, or a proxy along the way may decode the stream before it reaches you. The response says which one you got in `Content-Encoding`. Every frame is flushed through the encoder as it is written, so compression never holds a price back. It typically cuts stream bandwidth by two thirds or more, because each frame repeats the same JSON shape. ```bash curl -N --compressed 'https://api-beta.betwatch.com/v2/stream?compress=gzip&snapshot=none&sport=thoroughbred&cursor=cur_8fKq2mXb...' \ --header 'X-API-Key: YOUR_API_KEY' ``` `Accept-Encoding` alone does not compress the stream, so a client that sends it by default keeps a plain stream until it adds `compress`. Most HTTP clients decode `gzip` for you: Go's `net/http`, Python's `httpx` and `requests`, Node's `fetch`, and `curl --compressed`. For `zstd`, use a client or library that decodes it. `compress` is not part of the cursor scope, so you can add or drop it when you reconnect. Error responses before the stream opens are never compressed, and a server that is at its compression capacity serves the stream uncompressed, so read `Content-Encoding` rather than assuming. ## Filters Use repeated query keys for SSE array filters: `sport`, `country`, `meeting`, `event`, `venue`, `key` (`win` or `place`), `entrant`, and `source`, up to 50 values each. For example, `country=au&country=nz`. `startFrom` and `startTo` each take one RFC 3339 timestamp. REST arrays use comma-separated values instead. A filter outside your entitlement is `422` [`invalid_filter`](/docs/api/errors#invalid_filter). Filters are part of your cursor's identity, so choose them for the whole session. To watch a different set of races, bootstrap and connect again. Every parameter, frame schema, and response code: [`/stream` in the API reference →](https://beta.betwatch.com/api/docs#tag/streaming/GET/stream) One connection can cover many races. `?sport=thoroughbred&country=au` is a normal shape; a connection per race is the pattern to avoid, and your plan's concurrent-stream cap will tell you so with `429` [`stream_limit`](/docs/api/errors#stream_limit). ## A client that behaves 1. Snapshot with `GET /v2/events/snapshot` (or `/v2/events/{id}/snapshot`), page to the end, then connect to its `stream.url`. 2. Store every SSE `id` you finish applying. A full snapshot has no resumable id until `sync`. 3. On disconnect, reconnect with that id. Back off between attempts. 4. On `resync`, bootstrap again (with its `resyncToken`, if it has one) and connect to the new `stream.url`. 5. On `error`, reconnect from its id after `sync`; before `sync`, discard the partial snapshot and bootstrap again. 6. On `409`, treat it as `resync`. 7. Ignore frame names and fields you do not know. 8. Do not open a connection per race. 9. Do not set a read timeout below the keepalive cadence. Snapshot keepalives are SSE comments; live keepalives are `ping` frames. # Getting started > How to find a race, read the odds grid, compare bookmakers, set alerts, and use the blackbook. Source: https://beta.betwatch.com/docs/getting-started/ · Markdown: https://beta.betwatch.com/docs/getting-started/index.md A short path from opening Betwatch to comparing live prices and watching the runners you care about. Start at [Live racing odds](https://beta.betwatch.com/odds/racing). New here? [Create an account](https://beta.betwatch.com/auth/register) or [sign in](https://beta.betwatch.com/auth/login). 1. **Find a race** Open [racing odds](https://beta.betwatch.com/odds/racing) and browse today’s meetings by time, track, or code (thoroughbred, harness, greyhound). Pick a race to open its comparison grid. 2. **Read the odds grid** Each row is a selection (runner). Columns are bookmakers and Betfair. The best available price for that runner is highlighted so you can see it at a glance. Flucs show how a price has moved; overround summarises how sharp each book’s market is. 3. **Compare bookmakers and Betfair** Fixed-odds prices sit next to Betfair back/lay (and SP when available). Use the grid to spot where a book is out of line, or where the exchange is offering a better take than the fixed market. 4. **Set alerts** Create a **price alert** when you want to be notified if a runner reaches a target price (above or below a threshold). Create an **event alert** for time-to-jump, scratchings, results, or when a race is running late. Manage them from the race page or [Account → Alerts](https://beta.betwatch.com/account/alerts). 5. **Use the blackbook** Blackbook a selection to keep it on your watchlist. Add comments, toggle alerts for blackbooked runners, and jump back to their races from the [blackbook](https://beta.betwatch.com/odds/racing/blackbook). > **More detail** > > See [Product overview](/docs/product/overview) for core concepts, [Live odds](/docs/product/live-odds) for the grid and streaming, [Alerts](/docs/product/alerts), and [Blackbook](/docs/product/blackbook). Betting helpers live under [Tools](/docs/product/tools). # Guides > Step-by-step guides to Betwatch, with a picture for every step. Source: https://beta.betwatch.com/docs/guides/ · Markdown: https://beta.betwatch.com/docs/guides/index.md Each guide walks you through one task, one step at a time. Every step has a picture of the screen with numbered boxes showing exactly where to look and what to click. Click any picture to see it bigger. - **Compare odds on a race** — Open a race, see every bookmaker's price side by side, and find the best one. [Start this guide →](/docs/guides/compare-odds) - **Get told when a price hits your number** — Set a price alert on a runner so Betwatch tells you when its price reaches the number you want. [Start this guide →](/docs/guides/price-alert) # Compare odds on a race > Open a race, see every bookmaker's price side by side, and find the best one. Source: https://beta.betwatch.com/docs/guides/compare-odds/ · Markdown: https://beta.betwatch.com/docs/guides/compare-odds/index.md Betwatch puts the price from every bookmaker next to each other, so you can see who is paying the most before you bet. This guide takes about two minutes. **What you'll need:** a computer or tablet with internet. You don't need an account to follow along, but if you aren't signed in, prices are 5 minutes behind and only some bookmakers are shown. ## Step 1: Pick a race Go to [betwatch.com/odds/racing](https://beta.betwatch.com/odds/racing). The list down the left side shows today's races. ## Step 2: Read the odds grid When you open a race, the prices fill the rest of the screen. Runners go down the page and bookmakers go across. Prices change on their own as the market moves, so there's no need to refresh the page. ## Step 3: Place your bet Betwatch doesn't take bets. Once you know which bookmaker has the best price, go to that bookmaker's website or app and place your bet there. > **Check the price before you bet** > > Prices can change quickly in the last few minutes before a race. Check the price on the bookmaker's own site before you confirm your bet. ## Common questions **Why does it say "Odds delayed 5 min"?** You aren't signed in, or you're using the free view. Prices are 5 minutes behind. [Sign in](https://beta.betwatch.com/auth/login) or [see plans](https://beta.betwatch.com/pricing) for live prices. **Why can't I see my bookmaker?** Some bookmakers only show when you're signed in, and some don't cover every race. See [Coverage](/docs/product/coverage) for the full list. **Can I get told when a price reaches a number I want?** Yes, with a price alert. See [Get told when a price hits your number](/docs/guides/price-alert). # Get told when a price hits your number > Set a price alert on a runner so Betwatch tells you when its price reaches the number you want. Source: https://beta.betwatch.com/docs/guides/price-alert/ · Markdown: https://beta.betwatch.com/docs/guides/price-alert/index.md A price alert watches one runner for you. When its price reaches the number you choose, Betwatch lets you know, so you don't have to keep checking the screen. This guide takes about three minutes. **What you'll need:** a Betwatch account with a paid plan. Price alerts aren't part of the free view. [See plans](https://beta.betwatch.com/pricing). ## Step 1: Choose the runner Open the race (see [Compare odds on a race](/docs/guides/compare-odds) if you're not sure how). ## Step 2: Set your price A window called **Create Price Alert** opens. It's already filled in with the runner's current price, so you only need to change what you want. The alert goes off **once**, the first time the price reaches your number. If the price is already at or past your number when you create the alert, it waits for the price to move away and come back before going off. ## Step 3: Choose how you're told Betwatch can play a sound, show a notification on your computer or phone, or send you an email. Turn these on or off in [Account → Alerts](https://beta.betwatch.com/account/alerts). > **Keep Betwatch open for sounds** > > Sounds only play while Betwatch is open in your browser. To be told when Betwatch is closed, turn on browser notifications or email. ## Step 4: See or delete your alerts ## Common questions **I don't see the bell in the runner menu.** Price alerts need a paid plan, and you need to be signed in. [See plans](https://beta.betwatch.com/pricing). **My alert didn't go off.** Check that the price actually reached your number at one of the bookmakers you picked. Also check that sound, notifications or email are turned on in [Account → Alerts](https://beta.betwatch.com/account/alerts). **Can I set an alert for a race starting, rather than a price?** Yes. Click the bell at the top of the race and switch on any of the race alerts, such as **5m before jump**. See [Alerts](/docs/product/alerts) for the full list. # Alert webhooks > The JSON Betwatch posts to your webhook when an alert fires, and how to verify it. Source: https://beta.betwatch.com/docs/product/alert-webhooks/ · Markdown: https://beta.betwatch.com/docs/product/alert-webhooks/index.md When an alert fires, Betwatch can `POST` it to an HTTPS endpoint you own. Set the endpoint under [Account → Alerts](https://beta.betwatch.com/account/alerts) → **Webhook**; saving it generates a signing secret. ## Request ```http POST /your-endpoint HTTP/1.1 Content-Type: application/json X-Betwatch-Alert-Type: price-alert X-Betwatch-Signature: sha256=<64 hex characters> ``` ```json { "version": 2, "id": "673ad1f9c2a1b2c3d4e5f601", "alertId": "6735f0c2a1b2c3d4e5f60799", "kind": "price", "type": "price-alert", "firedAt": "2026-11-18T04:12:33.512Z", "title": "Flemington R4 — Fast Horse $4.20", "body": "TAB Tote Win VIC $4.20 (≥ $4.00)", "url": "https://beta.betwatch.com/odds/racing/6735f0c2a1b2c3d4e5f60718", "race": { "id": "6735f0c2a1b2c3d4e5f60718", "label": "Flemington R4", "name": "Lexus Hotham Stakes", "class": "Group 3", "venue": "Flemington", "venueId": "64a1f0c2a1b2c3d4e5f60001", "state": "VIC", "country": "AUS", "number": 4, "startTime": "2026-11-18T04:40:00Z", "discipline": "thoroughbred", "distance": 2500, "status": "open", "trackCondition": "Good 4", "railPosition": "+3m", "weather": "Fine", "runnerCount": 12 }, "runner": { "id": "6735f0c2a1b2c3d4e5f60720", "name": "Fast Horse", "number": 7, "barrier": 3, "weight": 56.5, "form": "x312", "gear": "Ear muffs (pre-race only)", "blinkers": true, "rider": { "id": "64b2f0c2a1b2c3d4e5f60002", "name": "J Rider" }, "trainer": { "id": "64b3f0c2a1b2c3d4e5f60003", "name": "C Trainer" } }, "price": { "bookmaker": "tab", "bookmakerName": "TAB", "type": "parimutuel-win", "jurisdiction": "VIC", "direction": "above", "threshold": 4, "value": 4.2 } } ``` Every payload has the top-level fields. Betwatch reads the race, venue, runner, and its connections when it sends the webhook, so they reflect the latest data at that moment, such as the track condition or the result. The groups below them (`race`, `runner`, `entity`, `price`, `change`, `insight`) appear only when the alert has that data, and a field inside a group is omitted when it is unknown. Read the structured fields; `title` and `body` are display text and their wording may change. ### Top level | Field | Type | Meaning | | --- | --- | --- | | `version` | number | Payload schema version. Currently `2`. | | `id` | string | Unique id of this fire. Use it to ignore a delivery you have already handled. | | `alertId` | string | The alert that fired. Several fires can share one alert, such as a blackbook alert across races. | | `kind` | string | `price`, `event` (a race alert), or `entity` (a [blackbook](/docs/product/blackbook) alert). | | `type` | string | The trigger; see [Alert types](#alert-types). Also sent as `X-Betwatch-Alert-Type`. | | `firedAt` | string | RFC 3339 UTC time the alert fired. | | `title` | string | Headline, as other channels show it. | | `body` | string | Detail line, as other channels show it. | | `url` | string | The race on Betwatch. Present with `race`. | ### Groups | Group | Field | Type | Meaning | | --- | --- | --- | --- | | `race` | `id` | string | Betwatch race id. | | | `label` | string | Display name, such as `Flemington R4`. | | | `name` | string | The race's published title. | | | `class` | string | Class label, such as `BM78` or `Group 1`. | | | `venue` | string | Venue name. | | | `venueId` | string | Betwatch venue id. | | | `state` | string | Venue state, such as `VIC`. | | | `country` | string | Venue country. | | | `number` | number | Race number at the meeting. | | | `startTime` | string | Advertised start, RFC 3339 UTC. | | | `discipline` | string | `thoroughbred`, `greyhound`, or `harness`. | | | `distance` | number | Race distance in metres. | | | `status` | string | `scheduled`, `open`, `in_progress`, `closed`, `interim`, `final`, `abandoned`, `cancelled`, `postponed`, or `unknown`. | | | `trackCondition` | string | Track rating, such as `Good 4` or `Soft 6`. | | | `railPosition` | string | Rail position, such as `+3m`. | | | `weather` | string | `Fine`, `Overcast`, `Showers`, `Rain`, `Windy`, `Fog`, `Storm`, `Snow`, or `Hot`. | | | `runnerCount` | number | Runners still in the race. | | | `results` | number[][] | Once placed: runner numbers by place, first place first. A place holds several numbers on a dead heat, and an empty place follows a multi-runner dead heat. | | `runner` | `id` | string | Betwatch selection (runner) id. | | | `name` | string | Runner name. | | | `number` | number | Saddlecloth or box number. | | | `barrier` | number | Barrier draw. | | | `weight` | number | Carried weight in kilograms. | | | `position` | number | Finishing place once the race has results; omitted when unplaced. | | | `scratched` | boolean | `true` when scratched. | | | `emergency` | boolean | `true` when an emergency acceptor. | | | `form` | string | Recent form, oldest to newest: `1`–`9` placing, `0` unplaced, `x` spell, `f` fell, `l` lost rider, `p` pulled up, `r` retired, `u` unseated, `q` disqualified. | | | `gear` | string | Gear as published. | | | `blinkers` | boolean | Whether the runner wears blinkers, when known. | | | `rider` | object | `{ "id", "name" }` of the jockey or driver. | | | `trainer` | object | `{ "id", "name" }` of the trainer. | | `entity` | `kind` | string | What the blackbook alert follows: `selection`, `trainer`, `rider`, `owner`, or `venue`. | | | `id` | string | Id of that entity. | | | `name` | string | Its name. | | `price` | `bookmaker` | string | Source id, such as `sportsbet`, `tab`, or `betfair`. | | | `bookmakerName` | string | Source display name. | | | `type` | string | Price alerts: `fixed-win`, `fixed-place`, `parimutuel-win`, `parimutuel-place`, `betfair-back`, `betfair-lay`, or `betfair-ltp`. | | | `jurisdiction` | string | Tote pool, such as `VIC`, for `parimutuel-*` types. | | | `direction` | string | Price alerts: `above` or `below`. | | | `threshold` | number | Price alerts: the price you set. | | | `value` | number | The price when the alert fired. | | `change` | `field` | string | Race-day changes: `riderId`, `gear`, `blinkers`, `weight`, `riderClaimKg`, `riderAdjustmentKg`, `ownerIds`, or `scratched`. | | | `previous` | string | The previous value, formatted for display. | | | `value` | string | The new value, formatted for display. | | `insight` | `id` | string | Betwatch analysis insight id. | | | `rule` | string | The analysis rule that matched. | | | `state` | string | `discovery` when the insight is published, `activation` when its setup applies in a race. | Opening-price alerts send `runner` and `price` (`bookmaker`, `bookmakerName`, `value`) for the first favourite. New fields and groups may be added within version 2, so ignore ones you do not recognise. A change that removes or reshapes a field gets a new `version`. > **Note** > > Version 1 sent only `title`, `body`, and flat ids (`eventId`, `selectionId`, `entityKind`, `entityId`). In version 2 those ids are `race.id`, `runner.id`, `entity.kind`, and `entity.id`. ## Alert types `type` is the alert family, then the specific trigger: | `type` | Fires when | | --- | --- | | `price-alert` | A [price alert](/docs/product/alerts#price-alerts) crosses its threshold | | `event-alert.ttj` | A race enters your time-to-jump window | | `event-alert.scratch` | A runner is scratched from a race you follow | | `event-alert.results` | Results are posted | | `event-alert.go-behind` | The race is running late | | `event-alert.closed` | Betting closes on the race | | `event-alert.opening-prices` | The first fixed-win price is up | | `entity-alert.runner-entered` | A [blackbook](/docs/product/blackbook) runner, or a trainer's, rider's, or owner's runner, is entered | | `entity-alert.scratched` | A blackbook runner is scratched | | `entity-alert.resulted` | A blackbook runner's race is resulted | | `entity-alert.opening-prices` | The first fixed-win price is up at a blackbook venue | | `entity-alert.race-day-change` | Rider, gear, weight, claim, or scratch state changes on a blackbook runner | | `entity-alert.dual-acceptance` | A blackbook runner is accepted into two races on the same day | | `entity-alert.betwatch-analysis` | Betwatch analysis flags a blackbook runner | New types may be added; handle unknown values gracefully. ## Verify the signature `X-Betwatch-Signature` is `sha256=` followed by the hex HMAC-SHA256 of the raw request body, keyed by your signing secret. Compute it over the bytes you received, before parsing the JSON, and compare in constant time. ```ts import { createHmac, timingSafeEqual } from 'node:crypto'; export function isFromBetwatch(rawBody: Buffer, header: string | undefined, secret: string): boolean { const expected = 'sha256=' + createHmac('sha256', secret).update(rawBody).digest('hex'); return header !== undefined && header.length === expected.length && timingSafeEqual(Buffer.from(header), Buffer.from(expected)); } ``` ```python import hashlib, hmac def is_from_betwatch(raw_body: bytes, header: str | None, secret: str) -> bool: expected = "sha256=" + hmac.new(secret.encode(), raw_body, hashlib.sha256).hexdigest() return header is not None and hmac.compare_digest(header, expected) ``` ## Delivery - The endpoint must be `https://` on a public host. URLs with embedded credentials, private or reserved IP addresses, and hosts that resolve to them are refused. - Redirects are not followed. Respond from the URL you saved. - Any `2xx` response counts as delivered. Respond within 10 seconds; do slow work after you reply. - Each fire is sent once. A failed delivery (timeout, network error, or non-`2xx` status) is not retried. - Muted races are not delivered to any channel, webhooks included. ## Related - [Alerts](/docs/product/alerts) — what each alert watches - [Blackbook](/docs/product/blackbook) — entity alerts on runners, people, and venues - [Manage alerts and delivery](https://beta.betwatch.com/account/alerts) # Alerts > Price alerts and event alerts — what they watch and how they fire. Source: https://beta.betwatch.com/docs/product/alerts/ · Markdown: https://beta.betwatch.com/docs/product/alerts/index.md Alerts notify you when something you care about happens on a race or a selection, without staring at the grid all afternoon. Create alerts from a race grid ([live odds](https://beta.betwatch.com/odds/racing)), then manage them under [Account → Alerts](https://beta.betwatch.com/account/alerts). Delivery options live under [account settings](https://beta.betwatch.com/account/preferences). ## Price alerts A **price alert** watches one selection in one event against a price feed. You choose: - **Selection and race** — which runner, which event - **Price type** — fixed win or place, tote win or place, or Betfair back/lay - **Bookmaker** — for fixed/tote feeds (Betfair types do not need a bookmaker) - **Threshold and direction** — fire when the price goes **above** or **below** your number When live odds cross that threshold after you create the alert, it fires and is marked triggered. A price that is already past the line when you subscribe stays quiet until it leaves and crosses again. Typical uses: wait for a drift to your price, or get pinged if a favourite shortens into a range you will not chase. When many bookmakers share one threshold, Alert Management shows a book count you can expand to remove individual books. ## Event alerts An **event alert** watches the race itself, not a single price. From the race page you can toggle: | Type | What it watches | | --- | --- | | **Time to jump** | Fires a set time before the advertised jump (for example, 5 minutes) | | **Scratchings** | A runner is scratched from the field | | **Results** | Results are posted for the race | | **Running late** | The race is going behind the scheduled start (“go behind”) | | **Opening prices** | The first fixed-win price is up. The message names that book's current favourite and the price | Use time-to-jump when you want a nudge before the off; use scratchings and results when you are following a card without sitting on the page. Time-to-jump fires when the race enters your window after you create the alert. Results, closed, and running-late fire when that condition becomes true after you subscribe. ## How they fire Alerts fire on facts that become true after you subscribe. A blackbook runner-entered alert fires when that runner (or a trainer, rider, or owner’s runner) is added to a later card. Venue and race opening-price alerts fire when the first fixed-win price appears after you subscribe. The message names that book's favourite, the shortest priced runner still in, and the price. It does not wait for a full field. When a live condition is met, the alert fires and is marked triggered. Alerts that have already fired do not keep re-triggering for the same condition. > **Note** > > Price alerts are per selection and feed. Event alerts are per race and type. You can hold several of each across the day’s card. ## Related - [Live odds](/docs/product/live-odds) — the prices alerts watch · [Open races](https://beta.betwatch.com/odds/racing) - [Alert webhooks](/docs/product/alert-webhooks) — the JSON payload posted to your endpoint, and signature checks - [Blackbook](/docs/product/blackbook) — watchlist alerts on saved selections · [Open blackbook](https://beta.betwatch.com/odds/racing/blackbook) - [Getting started](/docs/getting-started) — set your first alert - [Manage alerts](https://beta.betwatch.com/account/alerts) # Blackbook > Track selections, add comments, and enable alerts on runners you follow. Source: https://beta.betwatch.com/docs/product/blackbook/ · Markdown: https://beta.betwatch.com/docs/product/blackbook/index.md The **blackbook** is your personal watchlist of runners, people, and tracks — things you want to follow across meetings without hunting them down every time. [Open your blackbook →](https://beta.betwatch.com/odds/racing/blackbook) ## Track a selection From a race grid ([live odds](https://beta.betwatch.com/odds/racing)), add a selection to the blackbook. Entries are keyed by selection (the runner), not by a single race, so the same horse or greyhound stays on your list as it appears in future events. Trainers, riders, owners, and tracks work the same way from their profiles. Open the blackbook to see everything you are tracking. The **Next to race** panel lists saved entries with a run in the next seven days. A kind URL without an id (`/odds/racing/blackbook/selection`, `/trainer`, `/rider`, `/owner`, `/track`) opens that kind's saved list on the same page. Profiles live at `/odds/racing/blackbook/{kind}/{id}/{slug}`. A bare `/event` path is not a list; race pages need an id. ## Comments Add comments on a blackbooked selection for notes you want next to the runner — form angles, gear changes, or why you are watching them. Comments stay with the blackbook entry so you can revisit them later. ## Alerts on blackbooked runners Each blackbook entry can have alerts enabled or disabled. With alerts on, you get notified when a bookmarked runner is added to a later card, scratched, or resulted, and when race-day facts change after you subscribe. Combine this with [price and event alerts](/docs/product/alerts) when you need finer control on a specific race. Manage those under [Account → Alerts](https://beta.betwatch.com/account/alerts). ## Dual acceptance alerts Turn on **Dual acceptance** for a selection, trainer, or owner to hear when one of their horses is accepted into two races the trainer can't both run. When one of those runs is scratched, you get a follow-up saying which race the horse stays in. ### What counts A dual acceptance means the same horse is accepted, and not scratched, in two different open Australian or New Zealand thoroughbred races **on the same local race day**. The two races can be at the same meeting or at two meetings that day. Emergencies count, because an emergency acceptance still holds a place in the field. These don't count: - **Races on different days.** A horse in a race on Saturday and another on Tuesday is just entered for its next start. - **One race stored twice.** Bookmakers sometimes list a meeting under two track names, such as Doomben and Eagle Farm. If two entries have the same race number and start within ten minutes of each other, they're treated as one race. - **Greyhound, harness, and overseas races.** Reserves and emergencies in those codes follow different rules, and a horse with the same name overseas is a different horse. You hear about each pair of races once, and only if the second acceptance appeared after you turned the alert on. ### Why the same day The rules of racing treat these acceptances as a choice between two races the horse can't both run. Racing NSW LR 42 and QRIC LR 36 deal with a horse accepted in more than one race at a meeting. The trainer must pick one, usually by 5pm on acceptance day. AR 181(2) does the same for acceptances in different states on one day, with the choice made by 9am the day before the race. Some rules reach further than one day: NZTR 9.6.2 covers meetings within two days of each other, and the Australian rules limit how often a horse can start twice within two clear days. We tested whether alerts should follow those wider windows. Across Australian and New Zealand fields from 9 October to 7 November 2026, one major bookmaker's form comment opens with "Dual acceptor" on 42% of entries whose horse has another entry that day. For entries whose nearest other entry is one or more days away, it's 1–2%. That's about the same rate as horses with no other entry at all, so those comments refer to something other than the other race. Alerting on them would mostly flag a horse's normal next start, so we keep the alert to the same day. ## Related - [Getting started](/docs/getting-started) — add your first blackbook entry - [Alerts](/docs/product/alerts) — price and event notifications - [Overview](/docs/product/overview) — selections and events - [Live odds](https://beta.betwatch.com/odds/racing) # Coverage > Bookmaker and Betfair coverage philosophy — accuracy first, then breadth across codes and meetings. Source: https://beta.betwatch.com/docs/product/coverage/ · Markdown: https://beta.betwatch.com/docs/product/coverage/index.md Coverage means the bookmakers, exchange, codes, and meetings Betwatch can price reliably. Breadth matters, but accuracy comes first. See the live [coverage page](https://beta.betwatch.com/coverage) in the app, the [track index](https://beta.betwatch.com/tracks) for popular meetings, and compare prices on [today’s races](https://beta.betwatch.com/odds/racing). ## Philosophy From [product sense](/docs/welcome): showing a smaller set of bookmakers with correct odds beats a large grid of stale or wrong prices. If a source is unreliable, we prefer to hide it rather than display numbers you cannot trust. We add bookmakers when we can keep them accurate and timely — not merely when a logo looks good on a marketing page. ## Codes and meetings Betwatch prices: - **Thoroughbred** — metro, provincial, and country - **Harness** - **Greyhound** Coverage focuses on Australia and New Zealand, with international meetings when they are available and the data quality holds up. ## Bookmakers and Betfair Odds are collected from bookmaker feeds and sites, plus the **Betfair** exchange (live streaming). Sources evolve as integrations are added or paused for reliability. Examples of bookmakers Betwatch integrates (non-exhaustive; availability on a given race depends on that book covering the meeting): - Sportsbet, TAB, Ladbrokes, Neds, PointsBet, bet365 - Unibet, Palmerbet, PlayUp, Betr, TABtouch - Others such as Bet Right, BoomBet, Colossalbet, Dabble, and more as they stay healthy in the pipeline Betfair sits alongside fixed-odds books so you can compare exchange back/lay (and SP when present) with the retail market in one grid. > **Not every book on every race** > > A bookmaker only appears when we have a current price for that event. Empty cells mean no usable price, not a guarantee that the book is not offering the race elsewhere. ## Related - [Live odds](/docs/product/live-odds) — how covered prices appear in the grid · [Open races](https://beta.betwatch.com/odds/racing) - [Overview](/docs/product/overview) — markets and best price - [Welcome](/docs/welcome) — accuracy, coverage, speed, trust - [Pricing](https://beta.betwatch.com/pricing) # Race reads and insights > How Betwatch analyses every race, tags what happened to each runner, and turns those observations into previews, race reads, speed maps, and insights. Source: https://beta.betwatch.com/docs/product/insights/ · Markdown: https://beta.betwatch.com/docs/product/insights/index.md Every race on [live odds](https://beta.betwatch.com/odds/racing) carries Betwatch's own analysis of each runner: a preview before the jump, a race read after it, and insights built from its recent runs. Everything is written by Betwatch, generated based on public data sources. We don't quote or name where an observation came from, and we never turn analysis into tips, odds, or win chances. ## Where to find it - **The runner card** — Click a runner's name to open its card below the row. The left side has the runner's details. The right side has two tabs: **Insights** for our analysis, and **Form** for a form guide of its recent starts. - **The race-read eye** — After a race is run, a appears beside each runner we have a race read for. Hover it for a quick look; click it to keep it open. Its colour is the read's most important observation. ## The pieces of analysis ### Preview A short paragraph about this race, written before it starts. It covers how the runner is likely to race, its recent form, and anything about the draw, distance, track, or class that the evidence supports. When only one line of evidence supports a point, the preview says so and is marked **Low support**. When the evidence is thin or contradicts itself, we publish no preview rather than guess. ### Race read After the race, Betwatch analyses the race as it happened and writes what happened to each runner that the result alone doesn't show: a slow start, a wide trip, being held up, running on strongly. The read is a short recap plus tagged observations. ### Speed map Where the runner is expected to settle, as a band (**Leader**, **On the pace**, **Midfield**, **Back**) and a position in the field. Speed maps from several sources measure position differently, so each one is ranked within the field on its own scale before they are combined. The card says whether one speed map or several were used, and whether they agree. ### Insights from recent runs An insight connects observations across a runner's starts, such as a runner that caught the eye last time, raced wide in a strong run, or keeps starting slowly. Each insight names and links the run or runs it came from (**From Flemington R7 · 18 Oct**, or **Across** several runs), and stays active for a few starts before it expires or is contradicted by a later run. ## Observation tags Each observation in a race read is tagged so you can scan the card quickly. Hover any tag in the app to see what it means. ### What kind of observation | Colour | Meaning | | - | - | | **Eye-catcher** | A positive sign: ran on strongly, travelled well, answered the call. | | **Excuse** | Trouble that probably cost it: held up, checked, slow start, wide without cover. | | **Concern** | A worrying sign: over-racing, hanging, a gait problem, signs of distress. | | **Note** | Useful context that is neither positive nor negative, or a recap without tagged observations. | The row eye takes the colour of the most actionable observation in that race, in the order above. ### What happened | Tag | What it means | | --- | --- | | Slow start | Lost ground at the start: began slowly, missed the kick, or was crowded leaving. | | Interference | Was bumped, checked, or crossed by another runner. | | Held up | Was ready to improve but had no clear run for part of the race. | | Shuffled back | Lost position because runners moved past or around it. | | Wide trip | Covered extra ground by racing wide, usually around a turn. | | Covered run | Raced behind other runners, saving ground and energy. | | No cover | Raced exposed to the wind and the pace (the death seat in harness). | | Over-racing | Pulled or raced keenly, using energy it needed later. | | Travelled well | Was going easily while others were being ridden. | | Mid-race move | Made a meaningful move in the middle of the race. | | Room opened | A run opened after it was held up or boxed in. | | Under pressure | Was under sustained pressure through the middle or late stages. | | Answered the call | Responded when the rider or driver asked for an effort. | | Held the challenge | Fought off a challenging runner. | | Recovered momentum | Regained momentum after an incident or a check. | | Late speed | Ran on strongly late. | | Faded after work | Weakened late after doing work earlier, such as leading or racing wide. | | Not fully extended | Had more to give than the run showed. | | Hung | Drifted in or out instead of running straight. | | Gait | Galloped, broke, or had a rough action (harness). | | Green | Showed inexperience: looked around or shifted ground. | | Temperament, Gear, Rider, Distress | Behaviour, equipment, riding, or physical issues that affected the run. | Race-wide observations use **Pace**, **Track pattern**, **Going and weather**, **Race incident**, and **Stewards**. ### When and where **Start**, **Early**, **Middle**, **Turn**, **Straight**, **Finish**, and **Throughout** say when it happened. A distance such as **400m** means about that far from the finish. **Assessment** marks a judgement about the run, such as a trip suiting it, rather than a described incident. ## How a race read is made 1. **Aggregate public data** Betwatch aggregates the public data sources it holds for the race and analyses the race as it happened. 2. **Record what happened** The analysis becomes tagged observations. An observation is only kept if the data actually supports it: we check it isn't negated, conditional, or about a different run. 3. **Combine the evidence** Observations that several data sources agree on are merged and count as stronger support; repeated wording of one observation is shown once. Conflicting claims are flagged rather than averaged away. 4. **Write it in our own words** The preview or recap is written only from those combined observations and race facts, never by copying source text. Results, odds, and win chances are left out. > **What we don't do** > > Betwatch analysis describes how a runner raced and how it is likely to race. It never tells you what will win, puts a probability on a result, or tells you what to bet. # Live odds > How the racing odds grid streams updates, highlights best price, and shows flucs and Betfair SP. Source: https://beta.betwatch.com/docs/product/live-odds/ · Markdown: https://beta.betwatch.com/docs/product/live-odds/index.md The racing odds grid is the heart of Betwatch: one race, every tracked price, updating as the market moves. [Open live racing odds →](https://beta.betwatch.com/odds/racing) A single race lives at `/odds/racing/{id}` — pick any race from the list to land on its grid. ## Finding a race The sidebar lists every race on the selected day. Date, code, and meeting filters are in the URL (`date`, `codes`, `countries`, `venues`, `meeting`), so a copied link opens the same list. `/odds/racing` with no query is today, every code, every track. Filters from an earlier visit do not come back on a clean URL. Changing the code filter drops any selected tracks that have no races in that code. Switching from Greyhound to Racing will not leave a greyhound track selected with no checkbox in the list. ## The odds grid Open any race to see selections as rows and bookmakers (plus Betfair) as columns. Sticky runner info stays visible while you scroll across books. Layouts can emphasise win, place, flucs, Betfair, or best price depending on how you configure the view ([Account → Preferences](https://beta.betwatch.com/account/preferences)). What you should expect on a typical race: - **Fixed odds** — win and place from each bookmaker that covers the race - **Best price** — the top available price for that selection, highlighted in the grid - **Flucs** — short history of how a book’s price has moved - **Betfair** — exchange back/lay, and **SP** (starting price) when it is available - **Overround** — market percentage per book across the field Stale or suspended prices are distinguished from live ones so you are not betting on a number that is no longer on offer. ## How often prices refresh For bookmakers we poll, the refresh interval depends on how close the race is to jumping: - **More than 12 hours out** — about every **2 minutes** - **Inside the last hour** — ramps from about **15 seconds** toward the jump - **Final 10 minutes** — about every **2 seconds** Some bookmakers push prices continuously instead of being polled; those update as soon as the feed moves. Near jump time, that freshness matters: a price from a minute ago can already be wrong. Prices stream into the page as the market moves. If the connection drops, the client reconnects so you are not left on a silent snapshot. > **Delayed vs live** > > Guests see delayed prices. Delayed prices are labelled so you always know how fresh a column is. Sign in for live streaming. See [Pricing](https://beta.betwatch.com/pricing). ## Best price For each selection, Betwatch compares the live (or available) prices across sources and marks the best. Use that highlight to jump to the book — or the exchange — that is paying the most. ## Flucs Flucs are the trail of price changes for a selection at a bookmaker. Open a fluc cell to see opening price, subsequent ticks, and direction (shortening or drifting). They answer “has this been backed?” without leaving the grid. ## Betfair SP Where Betfair publishes a **starting price (SP)** for a selection, it appears in the Betfair SP column. SP is useful as a reference for how the exchange settled at the jump, alongside live back/lay prices earlier in the market. ## Related - [Overview](/docs/product/overview) — meetings, selections, markets - [Coverage](/docs/product/coverage) — sources and codes · [Coverage in app](https://beta.betwatch.com/coverage) - [Alerts](/docs/product/alerts) — notify when a price hits your number · [Manage alerts](https://beta.betwatch.com/account/alerts) # Overview > Betwatch at a glance — races, selections, markets, bookmakers, Betfair, best price, flucs, and overround. Source: https://beta.betwatch.com/docs/product/overview/ · Markdown: https://beta.betwatch.com/docs/product/overview/index.md Betwatch aggregates live racing odds from Australian and New Zealand bookmakers and the Betfair exchange, then presents them in a single comparison grid that updates as prices move. [Open live racing odds →](https://beta.betwatch.com/odds/racing) ## Who it is for Australian racing punters who want the best available price before they bet — without tabbing through a dozen bookmaker apps. ## Core concepts ### Meetings and events A **meeting** is a race card at a venue (for example, Flemington or Menangle). An **event** is a single race on that card. Meetings can carry a variant when the venue runs more than one card (extra, night, and similar), so the same track on the same day can have distinct cards. ### Selections A **selection** is a runner — a horse, harness horse, or greyhound. Selections are the canonical entity for runners; events link to them via event selections (barrier, weight, number, scratched status, and so on). ### Markets and prices For each selection in an event, Betwatch shows prices from tracked bookmakers and Betfair. Typical columns include fixed win/place, tote where relevant, and Betfair back/lay. Prices that go stale or suspend are flagged rather than treated as live. ### Bookmakers vs Betfair **Bookmakers** offer fixed (and sometimes tote) prices you take or leave. **Betfair** is an exchange: you can back or lay at prices set by other punters. Both appear in the same grid so you can compare them side by side. ### Best price For each selection, Betwatch highlights the best available price among the sources shown. That is the number to beat when you decide where to bet. ### Flucs (fluctuations) **Flucs** are the price history for a bookmaker on a selection — opening price through to the latest tick. Use them to see whether a runner has been backed in or drifted. ### Overround **Overround** (market percentage) is the sum of implied probabilities across the field for a bookmaker. Lower overround usually means a sharper, more competitive book. The grid can show overround per book and for the best-price line. ## Related - [Live odds](/docs/product/live-odds) — the grid, streaming updates, flucs, Betfair SP · [Open in app](https://beta.betwatch.com/odds/racing) - [Coverage](/docs/product/coverage) — which sources and codes we aim to cover · [Coverage page](https://beta.betwatch.com/coverage) - [Getting started](/docs/getting-started) — a practical walkthrough # Tools > EV calculator, odds converter, and Australian minimum bet limits reference. Source: https://beta.betwatch.com/docs/product/tools/ · Markdown: https://beta.betwatch.com/docs/product/tools/index.md Betwatch includes a few standalone helpers for working with prices and Australian wagering rules. They sit alongside the live odds product — useful whether or not you are on a race grid. The public [tools index](https://beta.betwatch.com/tools) lists these pages. ## Expected value (EV) calculator The **[EV calculator](https://beta.betwatch.com/tools/ev-calculator)** estimates expected value for a bet given: - Bookmaker odds (decimal) - Your true probability (or fair odds) - Stake Use it to check whether a price is +EV relative to your own assessment of the chance — for example, when the best price on the grid looks soft against your model or opinion. ## Odds converter The **[odds converter](https://beta.betwatch.com/tools/odds-converter)** translates between common formats: - Decimal (e.g. 2.50) - Fractional (e.g. 6/4) - American (e.g. +150) Australian racing is mostly decimal, but converters help when you are reading overseas prices or older form guides. ## Minimum bet limits (Australia) Australian racing has **minimum bet limits (MBL)** in several jurisdictions: licensed operators must accept fixed-odds win and place singles up to a specified profit amount, with rules that vary by state, code, and metro vs non-metro. Betwatch publishes a [reference guide](https://beta.betwatch.com/minimum-bet-limits-australia) covering what MBL applies to, typical limits, and which operators must comply. Treat it as a starting point for the legislation — always confirm with the current state rules and the bookmaker’s terms. > **Not advice** > > Tools and MBL notes are informational. They are not betting advice or a guarantee of acceptance at any operator. ## Related - [Live odds](/docs/product/live-odds) — find the price, then check EV · [Open races](https://beta.betwatch.com/odds/racing) - [Coverage](/docs/product/coverage) — which books appear in the grid · [Coverage page](https://beta.betwatch.com/coverage) - [Overview](/docs/product/overview) — product concepts # Welcome > Betwatch compares Australian racing odds across bookmakers and Betfair in real time. Source: https://beta.betwatch.com/docs/welcome/ · Markdown: https://beta.betwatch.com/docs/welcome/index.md Betwatch is an Australian racing odds comparison platform. It puts every runner against every tracked bookmaker — plus Betfair — on one screen, marks the best price, and streams updates as the market moves. It is built for punters who want to know where the value is before they bet: thoroughbreds, harness, and greyhounds across Australia and New Zealand, metro through to country. [Open live odds →](https://beta.betwatch.com/odds/racing) ## What matters Four principles guide everything we ship: 1. **Accuracy** — Prices should match what the bookmaker is actually offering. Wrong odds are worse than missing odds. 2. **Coverage** — More bookmakers make the comparison more useful, but only when the data is trustworthy. 3. **Speed** — Odds move fast near jump time. Live streaming keeps the grid current, not a stale snapshot. 4. **Trust** — Race day after race day, the numbers should be reliable enough to stake on. > **Accuracy over completeness** > > Showing fewer bookmakers with correct prices beats a crowded grid of stale or wrong numbers. If a source is unreliable, we hide it rather than pass it off as live. ## Explore the docs - **Overview** — Races, selections, markets, best price, flucs, and overround — the vocabulary of the odds grid. [Product overview →](/docs/product/overview) - **Live odds** — How the racing grid updates in real time, highlights the best price, and shows flucs and Betfair SP. [Live odds →](/docs/product/live-odds) - **Alerts** — Price alerts on a runner, and event alerts for jump time, scratchings, results, and late races. [Alerts →](/docs/product/alerts) - **Getting started** — Find a race, read the grid, compare bookmakers, set alerts, and use the blackbook. [Getting started →](/docs/getting-started) - **Racing API** — Build on the same data: every race, runner, and price as JSON, with a live stream. [API overview →](/docs/api)