Skip to contents

Team lines of a final game's box score: the team-booked stats and the totals of each side.

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

Usage

lba_team_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: Team lines of a final game's box score: the team-booked stats and the totals of each side. The columns are always these, in this order (sportsdataverse-py lba_team_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.
row_typecharacterteam = stats booked to the team itself (team rebounds, team turnovers); totals = the whole side.
punintegerPoints (punti). (team totals (players + team row))
falli_cintegerFouls committed (falli commessi). (team totals (players + team row))
falli_sfintegerFouls drawn (falli subiti). (team totals (players + team row))
falli_tc1integerTechnical fouls (falli tecnici; reading tc1 as category-1 technicals is inferred). (team totals (players + team row))
falli_flaintegerUnsportsmanlike / flagrant fouls (falli antisportivi). (team totals (players + team row))
rimbalzi_ointegerOffensive rebounds (rimbalzi offensivi). (team totals (players + team row))
rimbalzi_dintegerDefensive rebounds (rimbalzi difensivi). (team totals (players + team row))
rimbalzi_tintegerTotal rebounds (rimbalzi totali). (team totals (players + team row))
palle_pintegerTurnovers (palle perse). (team totals (players + team row))
palle_rintegerSteals (palle recuperate). (team totals (players + team row))
val_legaintegerLBA efficiency rating (valutazione Lega). (team totals (players + team row))
minintegerMinutes played, whole minutes (minuti); 200 in totals = 5 x 40. (team totals (players + team row))
secintegerSeconds played (secondi) = min x 60 in every sample. (team totals (players + team row))
t2_rinteger2-point field goals made (tiri da 2 realizzati). (team totals (players + team row))
t2_tinteger2-point field goals attempted (tiri da 2 tentati). (team totals (players + team row))
t2_percdouble2-point field-goal percentage, 0-100 (number; 0 when no attempt). (team totals (players + team row))
scintegerDunks (schiacciate). (team totals (players + team row))
t3_rinteger3-point field goals made. (team totals (players + team row))
t3_tinteger3-point field goals attempted. (team totals (players + team row))
t3_percdouble3-point field-goal percentage, 0-100. (team totals (players + team row))
tl_rintegerFree throws made (tiri liberi realizzati). (team totals (players + team row))
tl_tintegerFree throws attempted (tiri liberi tentati). (team totals (players + team row))
tl_percdoubleFree-throw percentage, 0-100. (team totals (players + team row))
stoppate_datintegerBlocks (stoppate date). (team totals (players + team row))
stoppate_subintegerOwn shots blocked (stoppate subite). (team totals (players + team row))
assintegerAssists. (team totals (players + team row))
val_oerdoubleOER = points / (FGA + turnovers + FTA / 2); verified on every 2026-27 sample row. (team totals (players + team row))

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_team_box_score(game_id = 25602))
#> ── LBA Team Box Score from legabasket.it ──────────────────────── hoopR 3.2.0 ──
#> ℹ Data updated: 2026-10-31 21:31:45 UTC
#> # A tibble: 4 × 32
#>   game_id season side    team_id row_type   pun falli_c falli_sf falli_tc1
#>     <int>  <int> <chr>     <int> <chr>    <int>   <int>    <int>     <int>
#> 1   25602   2027 home       1764 team         0       0        0         0
#> 2   25602   2027 home       1764 totals     109      21       27         0
#> 3   25602   2027 visitor    1761 team         0       0        0         0
#> 4   25602   2027 visitor    1761 totals      94      27       21         0
#> # ℹ 23 more variables: falli_fla <int>, rimbalzi_o <int>, rimbalzi_d <int>,
#> #   rimbalzi_t <int>, palle_p <int>, palle_r <int>, val_lega <int>, min <int>,
#> #   sec <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>,
#> #   stoppate_dat <int>, stoppate_sub <int>, ass <int>, val_oer <dbl>
# }