Skip to main content
v4 is a REST API without a WebSocket. WebSocket streaming is part of the v5 API.
On v4 you keep data fresh by polling: you ask again, on a schedule you choose. This page shows how to do it well, and when you have outgrown it.

How fast can I poll?

Each endpoint has a minimum wait between two calls from the same key: Call sooner and you get 429 RATE_LIMITED with a retryMs field that tells you how long to wait. See rate limits. In practice your request allowance decides how often you can poll, because every poll is one request. See Requests & quota.

Polling that doesn’t burn your quota

  1. Poll only what is about to matter. Ask /v4/fixtures for a date range with hasOdds=true, then poll odds just for the fixtures you act on.
  2. Slow down far from kick-off. Poll rarely days ahead and more often in the last hour.
  3. Use the widest call that fits. /v4/odds-by-tournaments returns a whole tournament for one bookmaker in one request. /v4/odds returns one fixture for several bookmakers in one request.
  4. Cache reference data. Fetch sports, bookmakers, markets and languages once a day, not once per loop.
  5. Diff on changedAt. Compare each price’s changedAt with what you stored and only react when it moved.
  6. Use history instead of recording. /v4/historical-odds gives you the price changes of a fixture and does not use your quota.

A simple polling loop

A loop like this uses 120 requests per hour for one fixture.

When polling stops being enough

Polling fits odds comparison, pre-match models, alerts and dashboards. If you need every price change pushed the moment it happens, for example for in-play trading across many fixtures, the v5 WebSocket does that.

WebSocket API docs (v5)

Connect, authenticate and stream live odds, scores and fixtures in real time.