Skip to contents

Team totals of one finished game: the box score's total row, home then away.

Endpoint: GET https://pleagueofficial.com/api/boxscore.preciser.php?id={gid}&away_tab=total&home_tab=total (after the game page)

Usage

pleague_box_teams(gid)

Arguments

gid

Required. P. LEAGUE+ game id on the site: ONE global integer sequence over every stage and season (197 = the 2022-23 opener, 662 = the 2025-26 opener), e.g. 197; gid in pleague_schedule. Only finished games are served.

Value

A hoopR_data tibble: Team totals of one finished game: the box score's total row, home then away. An empty valid answer is a zero-row tibble with these columns, in this order (sportsdataverse-py pleague_box_teams):

col_nametypedescription
gidintegerP. LEAGUE+ game id on the site: ONE global integer sequence over every stage and season (1-12 = 2020-21 pre-season, 13 = the 2020-21 opener, 197 = the 2022-23 opener, 662 = the 2025-26 opener), with gaps; a row id, not a count. The {gid} of /game/{gid}.
sidecharacterWhich team the row belongs to: home or away. The box lists home first, the play-by-play and the schedule list away first.
minutescharacterTeam minutes 'mm:ss' ('240:00' = 5 players x 48 min; more with overtime).
secondsintegerTeam seconds on court (14400 = 240 minutes): the site's value in 2020-21 and 2021-22, derived from minutes from 2022-23.
pointsintegerTeam points; equals the final score (the runtime checks it).
fg2_madeintegerTeam 2-point field goals made.
fg2_attintegerTeam 2-point field goals attempted.
fg2_pctdoubleTeam 2-point percentage, 0-100.
fg3_madeintegerTeam 3-point field goals made.
fg3_attintegerTeam 3-point field goals attempted.
fg3_pctdoubleTeam 3-point percentage, 0-100.
ft_madeintegerTeam free throws made.
ft_attintegerTeam free throws attempted.
ft_pctdoubleTeam free-throw percentage, 0-100.
rebintegerTeam total rebounds, including team rebounds that no player row carries (so it can exceed the sum of the player rows).
reb_offintegerTeam offensive rebounds.
reb_defintegerTeam defensive rebounds.
astintegerTeam assists in the game (the total row).
stlintegerTeam steals in the game.
blkintegerTeam blocks made in the game.
tovintegerTeam turnovers.
pfintegerTeam personal fouls.
plus_minusintegerSum of the players' plus/minus (2020-21 and 2021-22 only; null from 2022-23).

Details

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

Examples

# \donttest{
  try(pleague_box_teams(gid = 197))
#> ── P. LEAGUE+ Team Box from pleagueofficial.com ───────────────── hoopR 3.2.0 ──
#> ℹ Data updated: 2026-10-31 21:33:21 UTC
#> # A tibble: 2 × 23
#>     gid side  minutes seconds points fg2_made fg2_att fg2_pct fg3_made fg3_att
#>   <int> <chr> <chr>     <int>  <int>    <int>   <int>   <dbl>    <int>   <int>
#> 1   197 home  240:00    14400    102       26      59    44.1       12      28
#> 2   197 away  240:00    14400     94       25      55    45.4       11      26
#> # ℹ 13 more variables: fg3_pct <dbl>, ft_made <int>, ft_att <int>,
#> #   ft_pct <dbl>, reb <int>, reb_off <int>, reb_def <int>, ast <int>,
#> #   stl <int>, blk <int>, tov <int>, pf <int>, plus_minus <int>
# }