Getting started
Limits
Request rates, WebSocket limits and how fresh a price is.
Rate limits
- 60 requests a minute per key, all REST endpoints together. Over it:
429withRetry-After(seconds). The same limit on every plan, Enterprise included. A POST /odds of up to 20 events counts as one request. - Networks per key: Free 2, Starter 3, Developer 3, Business 5, Enterprise unlimited, and 3 on the tokens included with a bet337 subscription, counted over a rolling 24 hours (per account, so a regenerated key keeps its count). A new network past the cap is served for up to 1 hour, then refused with
403 too_many_ips; networks already in use keep working, and an old one ages out after a day of no use. - The demo key (Free plan): 10 requests a minute per IP, not metered, every bookmaker, head-to-head markets only.
WebSocket limits
- Paid plans only. Streaming costs 100 tokens per connection-minute (see Tokens).
- One connection carries up to 100 events or races (
hello.limits.max_subs_per_connection), inside the per-key caps below. - Starter and Developer: up to 50 subscribed events per key (across its connections) and 1 connection per key.
- Business: up to 150 subscribed events per key and 3 connections per key.
- Enterprise: up to 1,000 subscribed events and 20 connections per key. To follow more than 100, open one connection per 100 events and split your subscriptions across them.
- An event or race over your cap (per key or per connection) comes back in
subscribed.rejectedwith reasonsubscription_cap; a connection over your cap is closed with 1013.hello.limitsshows your caps. - 10 connects a minute per key.
Price freshness
Prices refresh as each book is re-read, so a card's age differs per book and per sport: seconds for fast books, up to about 20 minutes for slow ones. Use updated_at and age_seconds on each book; never assume one age for an event. books[book].stale is true when that book has stopped refreshing the event within its usual time; its prices are still served, so judge them against your own tolerance.
Polling /odds faster than once a second returns the same body. Use the WebSocket.