Streaming API
Quickstart
From a platform key to a playable stream URL in a few minutes.
The catalog is empty today
The stream catalog API is live, but no streams are listed yet (checked 2026-10-08). Every call below works
and returns an empty data array for now. Build your integration against it so it is ready when streams are
added.
Get a platform key
Streams use the same key as Data as a Service. Sign in at
platform.altsportsleagues.ai (private preview: invited accounts only) and
create a key under API Keys. The secret is shown once and starts asd_live_. See
Managing API keys.
export ASD_API_KEY="asd_live_your_key_here"
export ASD_BASE_URL="https://platform-api.altsportsleagues.ai"List live streams
curl -s "$ASD_BASE_URL/v1/streams?status=live" \
-H "Authorization: Bearer $ASD_API_KEY"import os
import requests
BASE_URL = os.environ.get("ASD_BASE_URL", "https://platform-api.altsportsleagues.ai")
headers = {"Authorization": f"Bearer {os.environ['ASD_API_KEY']}"}
resp = requests.get(f"{BASE_URL}/v1/streams", headers=headers,
params={"status": "live"}, timeout=30)
resp.raise_for_status()
streams = resp.json()["data"]const BASE_URL = process.env.ASD_BASE_URL ?? 'https://platform-api.altsportsleagues.ai';
const res = await fetch(`${BASE_URL}/v1/streams?status=live`, {
headers: { Authorization: `Bearer ${process.env.ASD_API_KEY}` },
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const { data: streams } = (await res.json()) as {
data: Array<{ id: string; title: string; master_hls_url: string; available_languages: string[] }>;
};You can narrow the list with sport, league, event_id and language. The full parameter list is on
Stream catalog.
Read the playlist and languages
Each stream item carries what a player needs:
| Field | Use |
|---|---|
master_hls_url | The HLS master playlist. Hand this to your player. |
available_languages | Audio languages in the stream, such as ["en", "es"]. Use it to build a language picker. |
renditions[] | Each video and audio rendition with its own hls_url, if you want to pick one directly. |
status | scheduled, live or ended. |
for stream in streams:
print(stream["title"], stream["master_hls_url"], stream["available_languages"])Read the playlist host from the response. It is not fixed, so never build playlist URLs yourself.
Play it
Pass master_hls_url from your server to the browser and play it with hls.js or native HLS. Keep your API key on
the server; the API does not accept calls from other websites' pages. See Playback for
the player code and audio language switching.
Handle an empty catalog
An empty data array means no stream matches your filters. Today that is every call, because no streams are
listed yet. Show a "no live streams" state instead of treating it as an error.
if not streams:
print("No live streams right now.")A catalog that cannot be read is never reported as an empty list. That is a 500 internal_error, so you can tell
the two apart. See Errors and limits.
What comes back
The list uses the same envelope as every other list endpoint. With no streams listed, a response looks like this
(field values in meta are illustrative):
{
"object": "list",
"data": [],
"next_page_token": null,
"meta": {
"source": "platform_streams",
"count": 0,
"limit": 20,
"dropped": 0,
"filters": { "status": "live", "event_id": null, "sport": null, "league": null, "language": null },
"plan": "free",
"note": "One stream = one HLS master playlist: a passthrough video rendition plus localized audio renditions on one clock. ..."
}
}When streams exist, each item in data has the shape shown in
What a stream looks like.