Sport Data API
Recipes
Short, complete programs for the questions people ask the Warehouse Data API most often.
Each recipe states one goal, lists the calls it makes, and gives a runnable program in Python and TypeScript. They all use the same setup:
export ASD_API_KEY="asd_live_your_key_here"Base URL https://platform-api.altsportsleagues.ai, header Authorization: Bearer $ASD_API_KEY.
{sport} is one of smx, wsl, masl, hlr.
Season leaderboard
Pick a season, then read its points standings from /rankings.
Who won every event
Page through event-results, keep finish_position 1, and attach names. Same code for all four sports.
Competitor profile
One athlete or team: every event finish, plus their latest Pressbox articles.
Play a stream
Find what is live, pick a language, and play the HLS feed in the browser with hls.js.
Load a season into pandas
Page a sport into DataFrames with explicit dtypes, join results to events, save to parquet.