Streaming as a Service

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

StatuscodeWhen it happens on stream endpointsWhat to do
400invalid_requestA filter value is malformed. See the list below. details.parameter names the bad parameter when there is one.Fix the request.
401unauthorizedThe Authorization header is missing, or the key is unknown or revoked.Send Authorization: Bearer asd_live_… with a current key.
403forbidden_scopeYour key is not allowed to use the streams API group. Scoped keys are planned, not live yet.Use a key scoped for streams.
403forbidden_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.
404not_foundGET /v1/streams/{stream_id} with a well-formed ID that matches no stream.Check the ID; list streams to find current ones.
429rate_limitedOver your key's allowance. Always carries Retry-After.Wait Retry-After seconds.
500internal_errorThe stream catalog is not configured or failed on our side.Retry later; report the request_id.
504upstream_timeoutThe 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:

  • status is not scheduled, live or ended.
  • language is not a language tag such as en, es or pt-br (2 or 3 letters, optionally followed by - subtags).
  • sport is not 1 to 32 lowercase letters, digits, _ or -.
  • league contains *. The league filter is an exact match, not case sensitive, and does not take wildcards.
  • event_id is not 64 lowercase hex characters.
  • stream_id is not str_ followed by 8 to 64 letters or digits.
  • limit is outside 1 to 100.
  • page_token was issued for a different set of filters. Send the same status, event_id, sport, league and language as the first page, or start again without page_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.

HeaderMeaning
X-RateLimit-LimitRequests allowed in the current window.
X-RateLimit-RemainingRequests left in that window.
X-RateLimit-ResetUnix seconds when that window resets.
Retry-AfterOn 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.

On this page