Getting started
Tokens & pricing
Every key has a token allowance that resets every 30 days from your billing date on a paid plan. Each call costs a fixed number of tokens.
Costs
Every key has a token allowance per period: Free 50, Starter 250,000, Developer 1,000,000, Business 10,000,000, Enterprise unlimited. On a paid plan it resets every 30 days from your billing date (plan_valid_until); without one, on the 1st of each UTC month. GET /usage shows the period and resets_at. Free keys also share one 50-token monthly pool per network (see Errors, free_ip_quota).
bet337 subscribers get 50,000 tokens a month included. An account with an active paid bet337 subscription and no bought plan has a 50,000-token monthly allowance and every feature, like a paid plan. A bought plan with a bigger allowance keeps its own. The allowance resets each period and unused tokens do not roll over; without a paid plan it resets on the 1st of each UTC month. GET /usage says so in allowance_source (bet337_subscription).
| Call | Tokens |
|---|---|
GET /sports, /books, /usage, /_health | 0 |
GET /events (any window, any status) | 1 |
GET /odds with tier=main (default) | 1 |
GET /odds with tier=extended | 5 |
GET /odds with depth=true (paid plans) | +1 |
GET /odds for a finished event | same as live (1 main, 5 extended) |
POST /odds (up to 20 events) | the GET price per distinct event_id |
GET /scores (score, result and the model fields on /events and /odds cost nothing extra) | 1 |
GET /history (1 to 5 books) | 2 |
GET /racing/meetings, /racing/race | 1 |
GET /racing/history | 2 (not on the demo key) |
GET /racing/inplay | 1 |
GET /racing/futures, /racing/futures/{futures_id} | 1 |
GET /clv | 1 |
POST /clv | 1 per distinct event_id in the batch |
GET /openapi.json, /asyncapi.json | 0 (no key needed) |
| WebSocket streaming (sports or racing) | 100 per connection-minute |
POST /v3/price_check with odds337: true (betting API) | 1 per stored price served |
GET /v3/markets with odds337=true (betting API) | 1 with tier=popular, else 5 |
WebSocket streaming costs 100 tokens per connection-minute, charged at the start of each minute and shown in the WebSocket tokens frame. If the connection closes mid-minute, the unused part is refunded, rounded down (a minute you started is never free). One connection carries up to 100 events or races, within your plan's caps: 50 live events on Starter and Developer, 150 on Business (3 connections), and 1,000 on Enterprise (20 connections; open one per 100 events). Requests that fail on our side (5xx) or ask for an unknown event (404) are not charged.
Stream or poll?
Polling one event every 5 seconds is 12 tokens a minute (1 token a call; an extended /odds is 5, so 60). A connection is a flat 100 a minute, so streaming is cheaper from about 9 events on one connection (from 2 on the extended tier). At the 50-event cap of Starter and Developer that is 2 tokens per event-minute, 6 times cheaper than polling; on Enterprise at 100 events it is 1, 12 times cheaper. For a few events or races, poll. Stream when you follow about 9 or more at once.
Usage headers
Every metered response carries:
| Header | Meaning |
|---|---|
X-Tokens-Cost | Tokens this call cost |
X-Tokens-Used | Tokens used this period, including this call |
X-Tokens-Remaining | Tokens left this period (unlimited on Enterprise) |
X-Tokens-Limit | Your allowance for the current period |
X-Tokens-Topup-Used | Part of this call's cost paid from your top-up balance (only when some was) |
X-Tokens-Topup-Remaining | Top-up tokens left (when known) |
X-Tokens-Metering | unavailable when the meter could not be reached: the call was served and not counted |
GET /usage returns the same numbers for free. Demo-key responses carry X-Demo-Key: 1 and X-Tokens-Cost: 0 only: the demo key is not metered.
When tokens run out
Calls past your allowance are paid from your top-up balance first. When both are used up, metered calls return 402 until your period resets (resets_at). A WebSocket draws on the same tokens: when the next minute cannot be paid, it closes with code 4402 tokens_exhausted.
On the betting API
The same tokens buy our stored prices on the bet337 betting API (/v3), with the same API key. Two calls take an odds337 flag; without it they never return a stored price and spend nothing:
- POST /v3/price_check with
"odds337": trueand abookie: our stored price for one sports selection (under 10 seconds old), 1 token. No stored price is a404no_odds337_priceand costs nothing. Sports singles only. - GET /v3/markets with
odds337=true: one bookmaker's whole card with prices, 1 token withtier=popular, 5 otherwise, like one/oddscard. A card with no prices costs nothing.
Both draw on your allowance, then your top-up balance, and carry the same X-Tokens-* headers. They answer 402 tokens_exhausted and 403 plan_required with the bodies above. Every bookmaker is on every plan. On Free, a price check for a market that is not head to head is refused before anything is charged, with feature: "extended_tier"; every paid plan, and a bet337 subscriber, reads every market.