Skip to contents

Game header: teams, venue, quarter scores, coaches, referees and broadcasters.

Endpoint: GET https://www.legabasket.it/api/championships/get-championships-matches-by-id (sc=1&id=<game_id>)

Usage

lba_game(game_id)

Arguments

game_id

(required) Game id (game_id in lba_calendar), e.g. 25602. Global across seasons.

Value

A hoopR_data tibble: Game header: teams, venue, quarter scores, coaches, referees and broadcasters. The columns are always these, in this order (sportsdataverse-py lba_game); a column the site adds later is appended after them:

col_nametypedescription
seasonintegerSeason END year (2027 = 2026-27): the row's START year + 1.
game_idintegerGame id (global across seasons); joins lba_calendar and lba_game.
game_statuscharacterGame status, number sent as a string: 0 scheduled, 1 live, 2 final (per the OSS client; only 2 sampled).
championship_idintegerChampionship id (season + phase) of the game.
competition_namecharacterChampionship full name, e.g. Regular Season 2026/27.
championships_day_idintegerRound id (championships_day_id key space: one round of one championship; joins filters.days[].id and standings championships_day_id; not the d param).
yearintegerSeason START year (2026 = 2026-27); sdv END year = year + 1.
numberintegerRound number of the game, equal to day_serial (the d echo the capture checks).
match_datetimecharacterTip-off, ISO-8601 with the Italian offset (1995-96: midnight, no time kept).
match_hhintegerTip-off hour, local time.
match_mmintegerTip-off minute, local time.
target_scorecharacterNull in every sample (meaning unverified).
home_final_scoreintegerFinal points of the home team.
visitor_final_scoreintegerFinal points of the away team.
q1_hsintegerHome points in the 1st quarter (null in the 1995-96 sample: no period scores then).
q1_vsintegerAway points in the 1st quarter.
q2_hsintegerHome points in the 2nd quarter.
q2_vsintegerAway points in the 2nd quarter.
q3_hsintegerHome points in the 3rd quarter (0 in the 1995-96 sample: a placeholder, not a score).
q3_vsintegerAway points in the 3rd quarter (0 placeholder in 1995-96).
q4_hsintegerHome points in the 4th quarter (0 placeholder in 1995-96).
q4_vsintegerAway points in the 4th quarter (0 placeholder in 1995-96).
ot_hsintegerHome overtime points (0 without overtime).
ot_vsintegerAway overtime points.
home_coach_idintegerHome head coach id.
home_coach_codecharacterHome head coach code SURNAME3-NAME3.
home_coach_fullnamecharacterHome head coach, Surname Name.
visitor_coach_idintegerAway head coach id.
visitor_coach_codecharacterAway head coach code.
visitor_coach_fullnamecharacterAway head coach, Surname Name.
additional_timeintegerOvertime periods played (0 in every sample; reading inferred).
plant_idintegerArena id (arena key space; joins nothing specced).
websocket_match_idintegerLive-feed game id, number sent as a string; separate from the game id.
has_streaminginteger1 when a stream exists, else 0.
live_match_datacharacterNull in every sample (meaning unverified).
quartercharacterLast period played, number sent as a string (4; 5 = overtime).
ticketing_urlcharacterTicket shop URL (null for old games).
match_seriecharacterAll-time head-to-head as home wins-away wins (6-18; inferred from match_hw / match_vw).
match_hwintegerAll-time head-to-head wins of the home club (inferred).
match_vwintegerAll-time head-to-head wins of the away club (inferred).
updated_atcharacterTimestamp, ISO-8601 with the Italian offset. Last update of the game row.
h_team_idintegerHome team id (team-season).
h_team_namecharacterHome team name (sponsor name of that season).
h_team_enabledlogicalHome team page enabled on the site.
home_logo_keycharacterImage key: the image is {cdn_url}/{key}, resized copies {cdn_url}/variants/{key}/thumb or /large (the site's getApiImageUrl).
v_team_idintegerAway team id (team-season).
v_team_namecharacterVisitor team name (the sponsor name of that season).
v_team_enabledlogicalAway team page enabled on the site.
v_logo_keycharacterImage key: the image is {cdn_url}/{key}, resized copies {cdn_url}/variants/{key}/thumb or /large (the site's getApiImageUrl).
plant_namecharacterName of the arena where the game is played.
day_codecharacterRound code (1, 2, ...; string in game rows, integer in standings).
day_serialintegerRound number (event_serial, the d param).
day_namecharacterRound name, Italian: 1o Giornata = matchday 1.
competition_type_idintegerPhase type id: 4 = Regular Season, 2 = Play Off.
competition_type_codecharacterPhase type code: RS / PO.
competition_typecharacterPhase type name: Regular Season / Play Off.
competition_serie_idintegerSeries id, 1 = Serie A.
competition_seriecharacterSeries name, Serie A.
day_phase_idintegerPhase id: 1 = Andata (first half of the season), 2 = Ritorno (second half).
spectatorsintegerAttendance: spectators at the game.
refereescharacterJSON list of the game's referees (id, name, surname); null when the site lists none.
broadcasterscharacterJSON list of the game's broadcasters (name, logo key); null when the site lists none.

Details

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

Examples

# \donttest{
  try(lba_game(game_id = 25602))
#> ── LBA Game from legabasket.it ────────────────────────────────── hoopR 3.2.0 ──
#> ℹ Data updated: 2026-10-31 21:31:35 UTC
#> # A tibble: 1 × 62
#>   season game_id game_status championship_id competition_name      
#>    <int>   <int> <chr>                 <int> <chr>                 
#> 1   2027   25602 2                       602 Regular Season 2026/27
#> # ℹ 57 more variables: championships_day_id <int>, year <int>, number <int>,
#> #   match_datetime <chr>, match_hh <int>, match_mm <int>, target_score <chr>,
#> #   home_final_score <int>, visitor_final_score <int>, q1_hs <int>,
#> #   q1_vs <int>, q2_hs <int>, q2_vs <int>, q3_hs <int>, q3_vs <int>,
#> #   q4_hs <int>, q4_vs <int>, ot_hs <int>, ot_vs <int>, home_coach_id <int>,
#> #   home_coach_code <chr>, home_coach_fullname <chr>, visitor_coach_id <int>,
#> #   visitor_coach_code <chr>, visitor_coach_fullname <chr>, …
# }