Streaming as a Service

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.

Parameters

GET /v1/streams

ParameterTypeRulesMeaning
statusstringscheduled, live or endedOnly streams in that status. Omit for all.
event_idstring64 lowercase hex charactersStreams for one spine event from Data as a Service.
sportstring1 to 32 of a-z, 0-9, _, -Streams for one sport, for example smx. Must be in your key's reach.
leaguestringUp to 200 characters, no *Exact league name, not case sensitive.
languagestringLanguage tag such as en, es, pt-brOnly streams with an audio rendition in that language.
limitinteger1 to 100, default 20Page size.
page_tokenstringFrom next_page_tokenNext page. Only valid with the same filters it was issued for.

GET /v1/streams/{stream_id}

ParameterTypeRulesMeaning
stream_idpathstr_ followed by 8 to 64 letters or digitsThe 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

PropertyValue
Envelopeobject: "list", data, next_page_token, meta
OrderNewest-registered first (when the stream was added, not its start time)
Cost0 credits
CachingCache-Control: private, max-age=30
Rate limitCounts toward your key's shared limit

For every error code, see Errors and limits. For the shape of a stream item, see Stream catalog.

On this page