Skip to contents

Team box score of one FIBA game, with the game-level figures.

Endpoint: GET https://www.fiba.basketball/en/games/{game_id}

Usage

fiba_gamepage_box_teams(game_id, comp, return_parsed = TRUE)

Arguments

game_id

(integer, required) FIBA game id (global): gameId of a gdap schedule row, e.g. 100720 = the World Cup 2023 final.

comp

(integer, required) Required. FIBA competition id (GDAP key space), one per edition: competition.competitionId of any game row (208182 = World Cup 2023, 208722 = Paris 2024 men, 208850 = BCL 2024-25). The game must belong to it. Find it with fiba_gdap_editions or fiba_gdap_games_between.

return_parsed

Parse the payload into a tibble (default TRUE); FALSE returns the raw JSON list (the game-page objects game, playByPlay, gameDetails, playersTeamA, playersTeamB).

Value

A hoopR_data tibble (the raw JSON list when return_parsed = FALSE) with the following columns:

col_nametypedescription
game_idintegerFIBA game id (Int64), global across competitions: gdapGameId, the <gameId> of a game-page URL.
competition_idintegerFIBA competition id (Int64) of the game's edition; the comp argument.
statistic_systemcharacterLive-stats system of the game: OVR (World Cup, Olympics) or FLS (club competitions, most qualifiers); they differ in the play-by-play action ids, order and text.
team_sidecharacterA or B: whether the row is the schedule's team A or team B (null when the page does not say).
organisation_idintegerStable federation or club id (Int64) of the team, the same in every competition (64 = Germany); the page's T_<id> and the play-by-play oId. NOT the per-competition team_id.
scoreintegerTeam final score.
pointsintegerPoints scored in the game.
fg_madeintegerField goals made (2 + 3 points).
fg_attemptedintegerField goals attempted (2 + 3 points).
fg_pctdoubleField-goal percentage, 0-100.
fg2_madeintegerTwo-point field goals made.
fg2_attemptedintegerTwo-point field goals attempted.
fg2_pctdoubleTwo-point field-goal percentage, 0-100.
fg3_madeintegerThree-point field goals made.
fg3_attemptedintegerThree-point field goals attempted.
fg3_pctdoubleThree-point field-goal percentage, 0-100.
ft_madeintegerFree throws made.
ft_attemptedintegerFree throws attempted.
ft_pctdoubleFree-throw percentage, 0-100.
reb_offensiveintegerOffensive rebounds.
reb_defensiveintegerDefensive rebounds.
reb_totalintegerTotal rebounds (a team row includes the team rebounds team_reb_total).
assistsintegerAssists credited in the game.
stealsintegerSteals credited in the game.
blocksintegerBlocked shots (blocks made).
blocks_receivedintegerOwn shots blocked by the opponent (blocks received).
turnoversintegerTurnovers (a team row includes the team turnovers team_turnovers).
foulsintegerPersonal fouls (a team row includes the team fouls team_fouls).
fouls_drawnintegerFouls drawn in the game.
paint_fg_madeintegerField goals made in the paint (team points_in_paint = 2 x paint_fg_made on every sampled game).
paint_fg_attemptedintegerField goals attempted in the paint.
paint_fg_pctdoubleField-goal percentage in the paint, 0-100.
efficiencyintegerEfficiency (FIBA EFF: points + rebounds + assists + steals + blocks - missed field goals - missed free throws - turnovers).
biggest_leadintegerBiggest lead, points.
biggest_lead_scorecharacterScore when the biggest lead was reached, 'A-B' string (spacing varies; empty when the team never led).
biggest_runintegerBiggest scoring run, points.
biggest_run_scorecharacterScore of the biggest scoring run, 'x-y' string; exact meaning unverified.
fast_break_pointsintegerFast-break points.
points_off_turnoversintegerPoints scored after turnovers.
bench_pointsintegerPoints from the bench (the sum of the non-starters' points).
points_in_paintintegerPoints in the paint (2 x paint_fg_made).
second_chance_pointsintegerSecond-chance points.
a_actintegerAlways 0 in the samples; meaning unverified (FIBA stat code A_ACT).
a_foulintegerAlways 0 in the samples; meaning unverified (FIBA stat code A_FOUL).
a_todintegerAlways 0 in the samples; meaning unverified (FIBA stat code A_TOD).
a_totintegerAlways 0 in the samples; meaning unverified (FIBA stat code A_TOT).
team_reb_offensiveintegerTeam offensive rebounds, credited to no player.
team_reb_defensiveintegerTeam defensive rebounds, credited to no player.
team_reb_totalintegerTeam rebounds (total rebounds minus the players' sum).
team_foulsintegerTeam (bench/coach) fouls (personal fouls minus the players' sum).
team_turnoversintegerTeam turnovers (turnovers minus the players' sum).
team_bench_points_flagintegerBench points in FLS games (equal to bench_points); 0 in OVR games (FIBA stat code T_PFB).
time_ledcharacterTime the team led, 'mm:ss' string.
lead_changesintegerLead changes in the game (game-level; repeats on both team rows).
times_tiedintegerTimes the score was tied (game-level; repeats on both team rows).
durationcharacterGame duration as an 'h:mm' string (game-level; repeats on both team rows).
attendanceintegerAttendance (game-level; repeats on both team rows).

Details

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

Examples

# \donttest{
  try(fiba_gamepage_box_teams(game_id = 100720, comp = 208182))
#> ── FIBA gamepage_box_teams from fiba.basketball ───────────────── hoopR 3.2.0 ──
#> ℹ Data updated: 2026-10-31 21:30:03 UTC
#> # A tibble: 2 × 57
#>   game_id competition_id statistic_system team_side organisation_id score points
#>     <int>          <int> <chr>            <chr>               <int> <int>  <int>
#> 1  100720         208182 OVR              A                      64    83     83
#> 2  100720         208182 OVR              B                    8323    77     77
#> # ℹ 50 more variables: fg_made <int>, fg_attempted <int>, fg_pct <dbl>,
#> #   fg2_made <int>, fg2_attempted <int>, fg2_pct <dbl>, fg3_made <int>,
#> #   fg3_attempted <int>, fg3_pct <dbl>, ft_made <int>, ft_attempted <int>,
#> #   ft_pct <dbl>, reb_offensive <int>, reb_defensive <int>, reb_total <int>,
#> #   assists <int>, steals <int>, blocks <int>, blocks_received <int>,
#> #   turnovers <int>, fouls <int>, fouls_drawn <int>, paint_fg_made <int>,
#> #   paint_fg_attempted <int>, paint_fg_pct <dbl>, efficiency <int>, …
# }