Skip to contents

Play-by-play of one FIBA game: every action with period, clock, running score, actor and shot x/y.

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

Usage

fiba_gamepage_pbp(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 with one row per play-by-play event. Its columns are listed in return_columns (subset(return_columns, fn == "fiba_gamepage_pbp")) and in the searchable return columns article.

Details

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

See also

family_fiba lists every function in this family.

Examples

# \donttest{
  try(fiba_gamepage_pbp(game_id = 100720, comp = 208182))
#> ── FIBA gamepage_pbp from fiba.basketball ─────────────────────── hoopR 3.2.0 ──
#> ℹ Data updated: 2026-11-13 21:13:23 UTC
#> # A tibble: 497 × 26
#>    game_id competition_id statistic_system period period_number action_id order
#>      <int>          <int> <chr>            <chr>          <int> <chr>     <int>
#>  1  100720         208182 OVR              Q1                 1 0:0002       NA
#>  2  100720         208182 OVR              Q1                 1 3:0012        1
#>  3  100720         208182 OVR              Q1                 1 3:0012B       2
#>  4  100720         208182 OVR              Q1                 1 3:0013        3
#>  5  100720         208182 OVR              Q1                 1 3:0014        4
#>  6  100720         208182 OVR              Q1                 1 3:0015        5
#>  7  100720         208182 OVR              Q1                 1 3:0016        6
#>  8  100720         208182 OVR              Q1                 1 3:0017        7
#>  9  100720         208182 OVR              Q1                 1 3:0018        8
#> 10  100720         208182 OVR              Q1                 1 3:0019        9
#> # ℹ 487 more rows
#> # ℹ 19 more variables: clock <chr>, clock_seconds <int>, wall_time_ms <dbl>,
#> #   score_a <int>, score_b <int>, action_code <chr>, action_family <chr>,
#> #   description <chr>, organisation_id <int>, team_side <chr>, player_id <int>,
#> #   player2_id <int>, sub_direction <chr>, made <lgl>, points_attempted <int>,
#> #   shot_type <chr>, shot_x <int>, shot_y <int>, has_location <lgl>
# }