Skip to contents

Points each side scored in each period of a game (periods 5 and up are overtimes).

Endpoint: GET https://bnxt.sportpress.info/api/v1/schedule/find/{game_id}

Usage

sportpress_game_periods(game_id)

Arguments

game_id

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

Value

A hoopR_data tibble: Points each side scored in each period of a game (periods 5 and up are overtimes). An empty valid answer raises hoopR_no_data; the columns are always these, in this order (sportsdataverse-py sportpress_game_periods):

col_nametypedescription
game_idintegerGame id (key space: sportpress games), unique across seasons: the key of every game route.
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 of the side.
periodintegerPeriod number: 1-4 are the quarters, 5 and up are overtimes (5 = first overtime).
scoreintegerPoints the side scored IN that period (not cumulative).

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_periods(game_id = 11295))
#> ── BNXT League Game Periods from Sportpress ───────────────────── hoopR 3.2.0 ──
#> ℹ Data updated: 2026-10-31 21:34:17 UTC
#> # A tibble: 12 × 5
#>    game_id team_side competition_team_id period score
#>      <int> <chr>                   <int>  <int> <int>
#>  1   11295 home                      541      1    22
#>  2   11295 home                      541      2    24
#>  3   11295 home                      541      3    19
#>  4   11295 home                      541      4    19
#>  5   11295 home                      541      5     9
#>  6   11295 home                      541      6    20
#>  7   11295 away                      565      1    24
#>  8   11295 away                      565      2    21
#>  9   11295 away                      565      3    16
#> 10   11295 away                      565      4    23
#> 11   11295 away                      565      5     9
#> 12   11295 away                      565      6    13
# }