Streaming API
Errors and limits
The errors the stream endpoints return, how they count toward your rate limit, and how long you may cache them.
The stream endpoints use the same error envelope, rate limit and caching rules as the rest of the platform API. This page covers what is specific to streams. The full shared reference is Errors, limits and plans.
The error envelope
{
"object": "error",
"code": "not_found",
"message": "No stream with id str_abc12345.",
"request_id": "req_…",
"details": { "stream_id": "str_abc12345" }
}Branch on code, never on message. Quote request_id (also in the X-Request-Id header) in support tickets.
Stream errors
| Status | code | When it happens on stream endpoints | What to do |
|---|---|---|---|
| 400 | invalid_request | A filter value is malformed. See the list below. details.parameter names the bad parameter when there is one. | Fix the request. |
| 401 | unauthorized | The Authorization header is missing, or the key is unknown or revoked. | Send Authorization: Bearer asd_live_… with a current key. |
| 403 | forbidden_scope | Your key is not allowed to use the streams API group. Scoped keys are planned, not live yet. | Use a key scoped for streams. |
| 403 | forbidden_sport | ?sport= names a sport outside your key's reach, or the stream you asked for belongs to one. details.in_scope lists your sports. | Use a sport your key can read. |
| 404 | not_found | GET /v1/streams/{stream_id} with a well-formed ID that matches no stream. | Check the ID; list streams to find current ones. |
| 429 | rate_limited | Over your key's allowance. Always carries Retry-After. | Wait Retry-After seconds. |
| 500 | internal_error | The stream catalog is not configured or failed on our side. | Retry later; report the request_id. |
| 504 | upstream_timeout | The stream catalog did not answer in time. | Retry is reasonable. |
What makes a request invalid
A 400 invalid_request on a stream endpoint means one of these:
statusis notscheduled,liveorended.languageis not a language tag such asen,esorpt-br(2 or 3 letters, optionally followed by-subtags).sportis not 1 to 32 lowercase letters, digits,_or-.leaguecontains*. The league filter is an exact match, not case sensitive, and does not take wildcards.event_idis not 64 lowercase hex characters.stream_idis notstr_followed by 8 to 64 letters or digits.limitis outside 1 to 100.page_tokenwas issued for a different set of filters. Send the samestatus,event_id,sport,leagueandlanguageas the first page, or start again withoutpage_token.
Empty is not an error
An empty data array means no stream matches your filters. If the catalog cannot be read, you get
500 internal_error, never an empty list. You can show "no live streams" on an empty list without worrying that
it hides an outage.
The catalog is empty today
No streams are listed yet (checked 2026-10-08), so every successful list call currently returns an empty data
array.
Rate limit
Both stream endpoints count toward your key's single shared rate limit. In a check on 2026-10-08, keys were
allowed 10 requests a minute in total across every endpoint, so stream calls and data calls draw from the same
budget. Your key's real number is always in X-RateLimit-Limit.
Separate budgets per API group, including one for streams, are planned but not live. Until then, pace stream
polling with the rest of your traffic in mind. Every request after authentication counts, including ones that end
in 400, 404 or 429.
| Header | Meaning |
|---|---|
X-RateLimit-Limit | Requests allowed in the current window. |
X-RateLimit-Remaining | Requests left in that window. |
X-RateLimit-Reset | Unix seconds when that window resets. |
Retry-After | On 429 only. Seconds to wait. |
Caching and polling
Both endpoints return Cache-Control: private, max-age=30. Reuse a response for up to 30 seconds; polling faster
than that returns the same answer and spends your rate limit. Errors are sent with private, no-store.
To notice when a scheduled stream goes live, poll GET /v1/streams/{stream_id} no more often than every 30
seconds. There are no webhooks or push notifications yet.
Cost
Both stream endpoints cost 0 credits. The API does not meter playback of the HLS playlists.