Skip to content
Product Documentation

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.

Terminal window
curl -s "https://api.betflux.ai/v1/leagues" \
-H "Authorization: Bearer $BETFLUX_API_KEY"
Terminal window
betflux leagues
leagues = bf.leagues()

The list is static and small, so it always fits one page (next_cursor is always null).

ColumnTypeNullableDescription
codestringnoLeague code, e.g. NBA — the value every `league` filter takes.
namestringnoFull league name, e.g. National Basketball Association.

MLB, NBA, NHL, NFL, NCAAM, and NCAAF. Which datasets cover which league, and from when, is on the Coverage page.