leagues
One row per supported league. The code is the value every league filter
takes — on /v1/games, /v1/teams, /v1/players, and the CLI and SDK
range queries — and the value the datasets’ league column carries.
Fetching
Section titled “Fetching”curl -s "https://api.betflux.ai/v1/leagues" \ -H "Authorization: Bearer $BETFLUX_API_KEY"betflux leaguesleagues = bf.leagues()The list is static and small, so it always fits one page (next_cursor is
always null).
Columns
Section titled “Columns”| Column | Type | Nullable | Description |
|---|---|---|---|
code | string | no | League code, e.g. NBA — the value every `league` filter takes. |
name | string | no | Full league name, e.g. National Basketball Association. |
Coverage
Section titled “Coverage”MLB, NBA, NHL, NFL, NCAAM, and NCAAF. Which datasets cover which league, and from when, is on the Coverage page.