---
title: "Rate limits and quota"
description: "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."
---

> Documentation Index
> Fetch the complete documentation index at: https://beta.betwatch.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Rate limits and quota

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.

Source: https://beta.betwatch.com/docs/api/limits/index.mdx
