Skip to contents

Players of one team-season with bio, number and role.

Endpoint: GET https://www.legabasket.it/api/teams/get-team-roster (id=<team_id>)

Usage

lba_roster(team_id)

Arguments

team_id

(required) Team id (team_id in lba_teams), e.g. 1764. One team-season: ids are re-issued every season.

Value

A hoopR_data tibble: Players of one team-season with bio, number and role. The columns are always these, in this order (sportsdataverse-py lba_roster); a column the site adds later is appended after them:

col_nametypedescription
team_idintegerTeam-season id (re-issued every season); join lba_teams for the stable club_id.
club_idintegerClub id: the cross-season join key for team ids (only here and in the team headers); stability across seasons is unverified.
club_codecharacterClub code (TVB, TS); whether it is stable across seasons is unverified.
seasonintegerSeason END year (2027 = 2026-27): the row's START year + 1.
player_idintegerPlayer id (global).
namecharacterPlayer's given name.
surnamecharacterPlayer's family name.
codecharacterPlayer code SURNAME3-NAME3-YY.
place_of_birthcharacterBirthplace (Italian spelling).
birth_datecharacterBirth date, Date YYYY-MM-DD.
player_numbercharacterJersey number, number sent as a string.
countrycharacterNationality, ISO alpha-3.
uefa_ratiocharacterEligibility class for the foreign-player quota: I, E or C (7 / 6 / 1 on the Treviso roster; reading as Italian / EU / non-EU is inferred).
heightintegerPlayer's height in centimetres.
weightintegerPlayer's weight in kilograms.
yearintegerSeason START year of the player entry (2026 = 2026-27).
start_datecharacterContract start with the team, Date YYYY-MM-DD.
end_datecharacterContract end with the team, Date YYYY-MM-DD.
player_role_idintegerPosition id (position key space: the id behind player_role; joins the r_id filter).
player_rolecharacterPosition, Italian: Playmaker (point guard), Guardia (guard), Ala (forward), Centro (center), - unknown.
team_namecharacterTeam name in that season, with its sponsor (Nutribullet Treviso Basket); changes with the sponsor.
player_picture_keycharacterImage key: the image is {cdn_url}/{key}, resized copies {cdn_url}/variants/{key}/thumb or /large (the site's getApiImageUrl).
team_logo_keycharacterImage key: the image is {cdn_url}/{key}, resized copies {cdn_url}/variants/{key}/thumb or /large (the site's getApiImageUrl).

Details

Source, terms of use, request pacing, seasons, ids, coverage and error classes of this family: see the notes in lba_championships().

 lba_roster(team_id = 1764)