Skip to contents

Points each team scored in each quarter and overtime of one finished game.

Endpoint: GET https://pleagueofficial.com/game/{gid}

Usage

pleague_periods(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: Points each team scored in each quarter and overtime of one finished game. An empty valid answer is a zero-row tibble with these columns, in this order (sportsdataverse-py pleague_periods):

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}.
periodcharacterPeriod label: Q1-Q4, then OT1, OT2 for overtime.
period_nointeger1-based position of the period: 1-4 for Q1-Q4, then 5 for OT1, 6 for OT2.
home_pointsintegerHome points scored IN the period (not cumulative).
away_pointsintegerAway points scored IN the period (not cumulative).

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_periods(gid = 197))
#> ── P. LEAGUE+ Periods from pleagueofficial.com ────────────────── hoopR 3.2.0 ──
#> ℹ Data updated: 2026-10-31 21:33:24 UTC
#> # A tibble: 4 × 5
#>     gid period period_no home_points away_points
#>   <int> <chr>      <int>       <int>       <int>
#> 1   197 Q1             1          28          19
#> 2   197 Q2             2          21          28
#> 3   197 Q3             3          35          24
#> 4   197 Q4             4          18          23
# }