Skip to contents

Team totals of both sides from the box score of a finished game.

Endpoint: GET https://bnxt.sportpress.info/api/v1/boxscore/game/{competition_id}/{game_id}

Usage

sportpress_game_team_box(competition_id, game_id)

Arguments

competition_id

(required) Competition id (integer), ONE per season of the league: 24 = 2025-26, 25 = 2026-27 (sportpress_phases() maps a season to it).

game_id

(required) Game id (integer), unique across seasons; from sportpress_schedule() (game_id).

Value

A hoopR_data tibble: Team totals of both sides from the box score of a finished game. An empty valid answer raises hoopR_no_data; the columns are always these, in this order (sportsdataverse-py sportpress_game_team_box):

col_nametypedescription
game_idintegerGame id the box score was asked for (the body does not echo it).
competition_idintegerCompetition id the box score was asked for; checked against the game.
team_sidecharacterSide of the game the row belongs to: home or away (the provider's is_home, or side 1 / 2).
competition_team_idintegerCompetition-team id (key space: sportpress competition teams): a team in ONE competition, so a club has a new id every season (Antwerp = 3 in 2021-22, 506 in 2025-26, 541 in 2026-27). uu_team_id is the stable club key.
teamcharacterTeam display name including the sponsor; varies with language and playoff suffixes: never join on it.
team_short_namecharacterThree-letter club code (ANT, MON, ...), stable across seasons in the samples.
minuteintegerThe team's total: minutes played; for a team total, the sum over its players (200 + 25 per overtime).
foulintegerThe team's total: personal fouls committed.
defensive_foulintegerThe team's total: fouls DRAWN (suffered), despite the name: equals the opponent's foul count up to scorer corrections.
dunk_madeintegerThe team's total: dunks made (a subset of the two-point field goals).
dunk_allintegerThe team's total: dunks attempted.
dunk_percentdoubleThe team's total: dunk percentage 0-100; 0 when none were attempted.
two_point_madeintegerThe team's total: two-point field goals made.
two_point_allintegerThe team's total: two-point field goals attempted.
two_point_percentdoubleThe team's total: two-point percentage 0-100.
three_point_madeintegerThe team's total: three-point field goals made.
three_point_allintegerThe team's total: three-point field goals attempted.
three_point_percentdoubleThe team's total: three-point percentage 0-100.
throw_madeintegerThe team's total: all field goals made, two- plus three-pointers (the provider calls them 'throw').
throw_allintegerThe team's total: all field goals attempted, two- plus three-pointers (the provider calls them 'throw').
throw_percentdoubleThe team's total: field-goal percentage 0-100.
free_throw_madeintegerThe team's total: free throws made.
free_throw_allintegerThe team's total: free throws attempted.
free_throw_percentdoubleThe team's total: free-throw percentage 0-100.
offensive_reboundintegerThe team's total: offensive rebounds.
defensive_reboundintegerThe team's total: defensive rebounds.
total_reboundintegerThe team's total: total rebounds (offensive plus defensive).
blockintegerThe team's total: shots blocked by the player.
block_againstintegerThe team's total: own shots blocked by an opponent.
turnoverintegerThe team's total: turnovers committed.
stealintegerThe team's total: steals (balls taken from an opponent).
assistintegerThe team's total: assists (passes leading directly to a made basket).
pointsintegerTeam points in the box score; can differ from the schedule final score (about 18 of 1,246 sampled team boxes, by 2-21 points).
valueintegerThe team's total: efficiency rating (PIR with fouls drawn): points + rebounds + assists + steals + blocks + fouls drawn - missed field goals - missed free throws - turnovers.
plusminusintegerThe team's total: plus/minus: the score margin while the player (or team) was on court; for a team total it is the game margin.

Details

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

Examples

# \donttest{
  try(sportpress_game_team_box(competition_id = 25, game_id = 11295))
#> ── BNXT League Game Team Box Score from Sportpress ────────────── hoopR 3.2.0 ──
#> ℹ Data updated: 2026-10-31 21:34:18 UTC
#> # A tibble: 2 × 35
#>   game_id competition_id team_side competition_team_id team      team_short_name
#>     <int>          <int> <chr>                   <int> <chr>     <chr>          
#> 1   11295             25 home                      541 Windrose… ANT            
#> 2   11295             25 away                      565 House of… KOR            
#> # ℹ 29 more variables: minute <int>, foul <int>, defensive_foul <int>,
#> #   dunk_made <int>, dunk_all <int>, dunk_percent <dbl>, two_point_made <int>,
#> #   two_point_all <int>, two_point_percent <dbl>, three_point_made <int>,
#> #   three_point_all <int>, three_point_percent <dbl>, throw_made <int>,
#> #   throw_all <int>, throw_percent <dbl>, free_throw_made <int>,
#> #   free_throw_all <int>, free_throw_percent <dbl>, offensive_rebound <int>,
#> #   defensive_rebound <int>, total_rebound <int>, block <int>, …
# }