Skip to content
Product Documentation

players

One row per canonical player. The id is the UUID the datasets carry in their *_player_ids columns (player props name their subjects by id, never by name) and the value the player_id filter on betflux get matches.

Terminal window
curl -s "https://api.betflux.ai/v1/players?league=NBA&team_id=<team-uuid>" \
-H "Authorization: Bearer $BETFLUX_API_KEY"
Terminal window
betflux players --league NBA --team-id <team-uuid>
players = bf.players(league="NBA", team_id="<team-uuid>")
Parameter Meaning
league Restrict to one league code
team_id Only players whose current team is this UUID
limit, cursor Pagination

Sorted by league, then last name. Rosters are current state: current_team_id moves with trades and is_active drops when a player leaves the league, but historical dataset rows keep the id they were written with.

ColumnTypeNullableDescription
idstringnoCanonical player UUID (matches closing-lines `*_player_ids` and the `player_id` filter).
leaguestringnoLeague code the player belongs to.
first_namestringnoFirst name.
last_namestringnoLast name.
positionstringyesPosition code, e.g. PG, QB; null when unknown.
jersey_numberintegeryesCurrent jersey number; null when unknown.
current_team_idstringyesUUID of the player's current team; null for free agents.
is_activebooleannoFalse once the player is out of the league.