Skip to content
Product Documentation

teams

One row per canonical team. The id is the UUID the datasets carry in home_team_id and away_team_id; the name is the value the team filter on /v1/games and betflux get matches (home or away).

Terminal window
curl -s "https://api.betflux.ai/v1/teams?league=NBA" \
-H "Authorization: Bearer $BETFLUX_API_KEY"
Terminal window
betflux teams --league NBA
teams = bf.teams(league="NBA")
Parameter Meaning
league Restrict to one league code
limit, cursor Pagination

Sorted by league, then name. Teams are current state: is_active is false for defunct or relocated franchises, whose ids still appear on historical games.

ColumnTypeNullableDescription
idstringnoCanonical team UUID — stable across seasons.
leaguestringnoLeague code the team plays in.
namestringnoCanonical full team name, e.g. Miami Heat (the value `team` filters match).
short_namestringnoShort display name, e.g. Heat.
abbreviationstringnoLeague abbreviation, e.g. MIA.
citystringyesHome city; null when not tracked.
conferencestringyesConference, e.g. Eastern; null where the league has none.
divisionstringyesDivision, e.g. Southeast; null where the league has none.
is_activebooleannoFalse for defunct or relocated franchises.