Sport Data API
Quickstart
From API key to your first typed result in about a minute.
Create a key
Sign in at platform.altsportsleagues.ai (private preview: ALT Sports Data
accounts only) and create a key under API Keys. The secret is shown once and starts asd_live_. A revoked
key stops working within about a minute. See Managing API keys.
export ASD_API_KEY="asd_live_your_key_here"
export ASD_BASE_URL="https://platform-api.altsportsleagues.ai"platform-api.altsportsleagues.ai is the host for all warehouse (Redshift) data. You never connect to the
warehouse directly; every read goes through this API, under your key's entitlements and limits.
See what your key can read
GET /v1/sports lists the product catalog and marks each sport entitled: true|false for your key. It never
touches the warehouse, so it answers instantly.
curl -s "$ASD_BASE_URL/v1/sports" -H "Authorization: Bearer $ASD_API_KEY"Captured from the live API on 2026-10-08 (first of four rows shown):
{
"object": "list",
"data": [
{
"key": "smx",
"label": "Supercross / Motocross",
"archetype": "race",
"competitor_kind": "athlete",
"grade": "silver",
"grade_basis": "declared",
"shelf": "product",
"schema": "asd_smx",
"entitled": true
}
],
"meta": {
"count": 4,
"entitled_count": 4,
"plan": "free",
"shelf": "product",
"grade_basis": "declared",
"note": "Product catalog (spine-guaranteed). `grade` is the contract TARGET data-completeness grade, not a measured one, and is unrelated to your `plan`. Pipeline-preview sports are not listed here."
}
}Pull the newest events
curl -s "$ASD_BASE_URL/v1/smx/events?sort=-start_date&limit=3" \
-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/smx/events",
headers=headers,
params={"sort": "-start_date", "limit": 3},
timeout=65, # a cold warehouse query can take 20+ seconds; the server waits up to 60
)
resp.raise_for_status()
for event in resp.json()["data"]:
print(event["event_name"], event["start_date"], event["venue_name"])const BASE_URL = process.env.ASD_BASE_URL ?? 'https://platform-api.altsportsleagues.ai';
const res = await fetch(`${BASE_URL}/v1/smx/events?sort=-start_date&limit=3`, {
headers: { Authorization: `Bearer ${process.env.ASD_API_KEY}` },
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const { data } = (await res.json()) as { data: Array<Record<string, unknown>> };
for (const event of data) console.log(event.event_name, event.start_date, event.venue_name);Ask who won
event-results is the one grain that means the same thing in every sport: finish_position = 1 is the
event winner.
curl -s "$ASD_BASE_URL/v1/smx/event-results?event_id=<event_id from step 3>" \
-H "Authorization: Bearer $ASD_API_KEY"Each row is one competitor's overall finish at the event. Captured from the live API on 2026-10-08 (one row shown):
{
"event_id": "041f8370f70ff9e0…5e3fd934deb631d636c45db",
"competitor_id": "02a81efac390c326…b5680aed5c731d429bb257bc0",
"division": "450",
"finish_position": 2,
"status": "completed",
"points": null,
"score": null
}What comes back
Every list endpoint answers with the same envelope. This is the real response to
GET /v1/smx/events?sort=-start_date&limit=2, captured from the live API on 2026-10-08 (second row and
long IDs trimmed):
{
"object": "list",
"data": [
{
"event_id": "bcfe67d73f5103bc…a0ab2f151930e5a312fe213",
"event_name": "Ironman National - Crawfordsville, IN",
"sport": "motocross",
"season_id": "60edaec51de5e1bc…31131affa",
"start_date": "2026-08-29",
"end_date": "2026-08-29",
"status": "completed",
"format": "mx-national",
"round": null,
"venue_name": null,
"city": null,
"state": null,
"country": null
}
],
"next_page_token": "eyJjIjp7Il9xIjoi…",
"meta": {
"sport": "smx",
"schema": "asd_smx",
"table": "events",
"count": 2,
"limit": 2,
"columns": ["event_id", "event_name", "sport", "season_id", "start_date", "end_date", "status", "format", "round", "venue_name", "city", "state", "country"],
"order_by": ["start_date DESC NULLS LAST", "event_id"],
"elapsed_ms": 21137,
"warehouse_pages": 1,
"sort": "-start_date"
}
}A few things the real body shows:
- The
sportfield inside a row is the vendor's sport name (motocross), not the URL key (smx). The URL key is inmeta.sport. - Venue and location fields can be
null. Treat every descriptive field as optional. meta.columnslists the fields this table really carries, andmeta.order_byshows the exact paging order.meta.elapsed_msis the warehouse time. This first call took about 21 seconds against a cold warehouse; the very next page came back in 1.5 seconds. Set client timeouts with that in mind.
IDs are opaque 64-character hashes. Never parse structure out of one. Every authenticated response also
carries X-Request-Id (quote it in support tickets) and the X-RateLimit-* headers. Real headers from the
same call:
x-request-id: req_917e8ac9b220a63b0c602ee0
x-ratelimit-limit: 10
x-ratelimit-remaining: 6
x-ratelimit-reset: 1791520223
cache-control: private, max-age=300Try it in the browser
The live OpenAPI explorer at platform-api.altsportsleagues.ai/docs lets you click Authorize, paste your
key, and run any endpoint with Try it out.