Skip to contents

Head coach of one team-season.

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

Usage

lba_roster_coach(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: Head coach of one team-season. The columns are always these, in this order (sportsdataverse-py lba_roster_coach); 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.
coach_idintegerCoach id (global coach key space; joins the game header home_coach_id / visitor_coach_id).
namecharacterCoach's given name.
surnamecharacterCoach's family name.
birth_datecharacterBirth date, Date YYYY-MM-DD.
place_of_birthcharacterBirthplace (Italian spelling, e.g. Londra).
coach_type_idintegerCoach role id (1 = head coach).
coach_type_descriptioncharacterCoach role, Italian: Allenatore = head coach.
coach_type_codecharacterCoach role code, number sent as a string.
team_namecharacterTeam, short name.
coach_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_coach(team_id = 1764)