Skip to contents

Box score of a final game: one row per player of both teams (Italian-named stat columns).

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

Usage

lba_box_score(game_id)

Arguments

game_id

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

Value

A hoopR_data tibble: Box score of a final game: one row per player of both teams (Italian-named stat columns). The columns are always these, in this order (sportsdataverse-py lba_box_score); a column the site adds later is appended after them:

col_nametypedescription
game_idintegerGame id (global across seasons); joins lba_calendar and lba_game.
seasonintegerSeason END year (2027 = 2026-27): the row's START year + 1.
sidecharacterWhich team of the game the row belongs to: home or visitor.
team_idintegerTeam-season id (re-issued every season); join lba_teams for the stable club_id.
player_idintegerPlayer id (global).
player_numintegerJersey number the player wore in the game.
player_surnamecharacterFamily name, upper case.
player_namecharacterPlayer's given name.
player_codecharacterPlayer code SURNAME3-NAME3-YY.
player_p_keycharacterImage key: the image is {cdn_url}/{key}, resized copies {cdn_url}/variants/{key}/thumb or /large (the site's getApiImageUrl).
punintegerPoints (punti).
minintegerMinutes played, whole minutes (minuti); 200 in totals = 5 x 40.
secintegerSeconds played (secondi) = min x 60 in every sample.
sfcharacterStarter flag (starting five), number sent as a string: 1 = started.
falli_cintegerFouls committed (falli commessi).
falli_sfintegerFouls drawn (falli subiti).
falli_tc1integerTechnical fouls (falli tecnici; reading tc1 as category-1 technicals is inferred).
falli_flaintegerUnsportsmanlike / flagrant fouls (falli antisportivi).
t2_rinteger2-point field goals made (tiri da 2 realizzati).
t2_tinteger2-point field goals attempted (tiri da 2 tentati).
t2_percdouble2-point field-goal percentage, 0-100 (number; 0 when no attempt).
scintegerDunks (schiacciate).
t3_rinteger3-point field goals made.
t3_tinteger3-point field goals attempted.
t3_percdouble3-point field-goal percentage, 0-100.
tl_rintegerFree throws made (tiri liberi realizzati).
tl_tintegerFree throws attempted (tiri liberi tentati).
tl_percdoubleFree-throw percentage, 0-100.
rimbalzi_ointegerOffensive rebounds (rimbalzi offensivi).
rimbalzi_dintegerDefensive rebounds (rimbalzi difensivi).
rimbalzi_tintegerTotal rebounds (rimbalzi totali).
stoppate_datintegerBlocks (stoppate date).
stoppate_subintegerOwn shots blocked (stoppate subite).
palle_pintegerTurnovers (palle perse).
palle_rintegerSteals (palle recuperate).
assintegerAssists credited to the player in the game.
val_legaintegerLBA efficiency rating (valutazione Lega).
val_oerdoubleOER = points / (FGA + turnovers + FTA / 2); verified on every 2026-27 sample row.
plus_minusintegerPlus-minus: point margin while on court.

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_box_score(game_id = 25602))
#> ── LBA Box Score from legabasket.it ───────────────────────────── hoopR 3.2.0 ──
#> ℹ Data updated: 2026-10-31 21:31:29 UTC
#> # A tibble: 24 × 39
#>    game_id season side  team_id player_id player_num player_surname player_name
#>      <int>  <int> <chr>   <int>     <int>      <int> <chr>          <chr>      
#>  1   25602   2027 home     1764       969          0 CAPPELLETTI    Alessandro 
#>  2   25602   2027 home     1764      9331          2 CARTER         Chico      
#>  3   25602   2027 home     1764      9041          3 CHAPMAN        Brekkott   
#>  4   25602   2027 home     1764      4879          4 RUSSELL        DeWayne    
#>  5   25602   2027 home     1764      7566          8 MANFREDOTTI    Alessandro 
#>  6   25602   2027 home     1764      3714         11 MIASCHI        Federico   
#>  7   25602   2027 home     1764      9042         13 ANIGBOGU       Ike        
#>  8   25602   2027 home     1764      9332         19 ALLINEI        Gregorio   
#>  9   25602   2027 home     1764      7607         24 IAQUINTA       Antonio    
#> 10   25602   2027 home     1764      1189         26 CHILLO         Matteo     
#> # ℹ 14 more rows
#> # ℹ 31 more variables: player_code <chr>, player_p_key <chr>, pun <int>,
#> #   min <int>, sec <int>, sf <chr>, falli_c <int>, falli_sf <int>,
#> #   falli_tc1 <int>, falli_fla <int>, t2_r <int>, t2_t <int>, t2_perc <dbl>,
#> #   sc <int>, t3_r <int>, t3_t <int>, t3_perc <dbl>, tl_r <int>, tl_t <int>,
#> #   tl_perc <dbl>, rimbalzi_o <int>, rimbalzi_d <int>, rimbalzi_t <int>,
#> #   stoppate_dat <int>, stoppate_sub <int>, palle_p <int>, palle_r <int>, …
# }