Streaming API
API reference
The two stream endpoints, their parameters, and links to the full generated reference.
The streaming API is two read endpoints on https://platform-api.altsportsleagues.ai, both authenticated with
Authorization: Bearer and your platform key. The generated reference pages list every field and response code.
GET /v1/streams
List streams, newest-registered first, with filters and cursor paging.
GET /v1/streams/{stream_id}
One stream with its renditions, returned in the list envelope as data[0].
Parameters
GET /v1/streams
| Parameter | Type | Rules | Meaning |
|---|---|---|---|
status | string | scheduled, live or ended | Only streams in that status. Omit for all. |
event_id | string | 64 lowercase hex characters | Streams for one spine event from Data as a Service. |
sport | string | 1 to 32 of a-z, 0-9, _, - | Streams for one sport, for example smx. Must be in your key's reach. |
league | string | Up to 200 characters, no * | Exact league name, not case sensitive. |
language | string | Language tag such as en, es, pt-br | Only streams with an audio rendition in that language. |
limit | integer | 1 to 100, default 20 | Page size. |
page_token | string | From next_page_token | Next page. Only valid with the same filters it was issued for. |
GET /v1/streams/{stream_id}
| Parameter | Type | Rules | Meaning |
|---|---|---|---|
stream_id | path | str_ followed by 8 to 64 letters or digits | The stream's id from the list. |
The response is the same list envelope as GET /v1/streams, with the stream as data[0]. An ID that is well
formed but matches no stream returns 404 not_found.
Response summary
| Property | Value |
|---|---|
| Envelope | object: "list", data, next_page_token, meta |
| Order | Newest-registered first (when the stream was added, not its start time) |
| Cost | 0 credits |
| Caching | Cache-Control: private, max-age=30 |
| Rate limit | Counts toward your key's shared limit |
For every error code, see Errors and limits. For the shape of a stream item, see Stream catalog.