Four ways to receive the same data. Compare tasks and channels below, with real stream frames, connection limits and recovery after a disconnect.
Start here. The first two options cover most use cases without keeping a connection open.
| Your task | Use | Why |
|---|---|---|
| A match page, standings or schedule on your website | GET /v1/event/{id} GET /v1/events |
Standard requests with your own cache. No persistent connection; debug with curl. |
| Initial history import into your database | GET /v1/sync | Lotes por cursor de até 500 partidas (planos Starter+): traz inline incidents, statistics, lineups, hockey_units e player_stats, enquanto blocos pesados de coordenadas, odds e clima (shotmap, momentum, odds, weather, commentary) ficam em GET /v1/event/{id}. |
| Nightly reconciliation with our data | GET /v1/sync | A mesma chamada (Starter+) com o cursor salvo retorna apenas partidas alteradas e registros removed (incluindo reason: "merged" com replaced_by). Reutilize o mesmo código da carga inicial. |
| Scores update in an open browser tab | GET /v1/stream | Server-Sent Events (SSE). The browser reconnects automatically, and we replay missed events. |
| Your server receives one connection and distributes updates | GET /v1/stream WS /v1/stream/ws |
One connection replaces polling by thousands of individual clients. |
| You need two-way communication | WS /v1/stream/ws | WebSocket provides a return channel and includes a cursor in every frame. |
| You do not want a persistent connection | webhooks | We send signed requests to your endpoint: how it works. |
| Catch up after an outage | GET /v1/stream/replay | Events by cursor for the previous 7 days, up to 500 per request. |
Streaming and webhooks use the same event envelope, byte for byte. Switch between channels without rewriting your handler.
One persistent HTTP connection carries events. Pass the key in the
x-api-key header or the key parameter; the latter is needed by browser
EventSource, which cannot set custom headers.
sport, league, event_type accept comma-separated values. You receive only events matching your filters and access rights.
When there are no events, a heartbeat arrives every 15 seconds. Proxies and clients can tell that the connection is still alive.
After 60 minutes, the server requests a reconnection. This regular cycle prevents long-lived connections from silently expiring.
The client returns the last id in the Last-Event-ID header, and we replay subsequent events, up to 500 events.
: connected cursor=98213152 retry: 1000 id: 98213377 event: match.goal data: {"id":"evt_11220580_17","type":"match.goal", …} : keep-alive 1785686355 cursor=98213377 // after one hour: : server-cycle; reconnect with Last-Event-Id
// first frame {"type": "connected", "cursor": 98213152} // event: cursor + the same envelope {"cursor": 98213377, "id": "evt_11220580_17", "type": "match.goal", "data": { … }} // while idle {"type": "heartbeat", "ts": 1785686355, "cursor": 98213377} // after one hour {"type": "reconnect", "cursor": 98213377}
The same stream uses JSON frames and a return channel. Every frame includes a cursor, so you do not need
a separate counter. On reconnect, pass it in the cursor parameter.
4401 means the key was rejected; 4402 the channel is outside your plan; 4422 the filter is invalid; 4429 the connection limit was exceeded. Each rejection has an explicit cause.
Browser WebSocket cannot set custom headers, so pass the key in key. Server clients may also use the x-api-key header.
Plano capacity before your live traffic arrives.
| Plano | Requests per second | Streaming and webhooks |
|---|---|---|
| Free | 500 requisições / mês | no |
| Starter | 5 | no |
| Pro | 20 | included |
| Business | 100 | included |
There are no daily request limits; request frequency is limited per second. For the full plan details, see the pricing page.
Instead of polling, receive signed POST requests at your endpoint. No persistent connection is needed. Provide a public endpoint that responds promptly.
A timeout, 500 response or disconnect triggers a retry. There are up to 6 retries, with a response timeout of 8 seconds. Return 2xx immediately,
then process the event in your own queue.
An idle push channel and a broken one can look the same.
For an idle subscription, every 15 minutes we send a
signed webhook.ping using the same delivery method and signature. Silence
beyond that interval indicates a delivery problem.
If your receiver was down beyond the retry window, retrieve the missed events:
GET /v1/stream/replay?since={cursor}&limit=500,
history window: 7 days. This uses the same cursor as SSE and WebSocket.
The signature uses HMAC-SHA256 over the string “timestamp, dot, raw body”. The secret is issued once when the subscription is created and is not shown again. The timestamp is part of the signed content, so a captured payload cannot be replayed with a new timestamp.
X-Scoraline-Timestamp differs
from your clock by more than 5 minutes.hmac.compare_digest, hash_equals.How to set up. Create a subscription in your account: receiver URL,
required event types and optional sport and league filters. The URL must use https
and be public. Internal network addresses are rejected during creation and checked again before
every delivery. Redirects are not followed. The “Send test event” button sends a
real signed request to verify your implementation. Each subscription has a delivery log in your account
showing the event, response code, attempt count and next retry time.
Webhooks are included in Pro and Business; see pricing.
Disconnects happen with mobile networks, restarts and regular connection cycling. Recovery follows the same process.
In SSE, use the id: line; in WebSocket, the cursor frame field. One integer cursor is used across all channels.
For SSE, use the Last-Event-ID header (the browser sends it automatically) or the last_event_id parameter. For WebSocket, use the cursor parameter.
Up to 500 events arrive immediately after connection, then the normal stream resumes.
Request the remainder: GET /v1/stream/replay?since={cursor}&limit=500. The response contains next_cursor and has_more; paginate until you catch up.
Beyond 7 days, events are no longer retained. Reconcile with GET /v1/sync (Starter+), which iterates over matches (embedding incidents, statistics, lineups, hockey_units, player_stats), while heavy blocks (shotmap, momentum, odds, weather, commentary) live in GET /v1/event/{id}.
Account for these channel limitations when designing your integration.
sequence within a match. Duplicate delivery is possible, so handlers must be idempotent.The values on this page were checked against production responses on 5 August 2026.
Start with standard requests and switch to streaming without rewriting your handler.
Respondemos em até 1 dia útil. O acesso de teste é gratuito.
We will reply to
within one business day.