Skip to contents

Box score of a finished game: one row per player line of both teams (2002-03 on).

Endpoint: GET https://api.basketball-bundesliga.de/games/{game_id}/stats (DBBL: the same route on https://api-1.dbbl.scb.world).

Usage

scb_game_players(game_id, league = "bbl")

Arguments

game_id

(required) Game id (game_id in scb_games), e.g. 2006920 (BBL) or 10130 (DBBL). One sequence per league.

league

(default "bbl") League: bbl (men, easyCredit Basketball Bundesliga, api.basketball-bundesliga.de) or dbbl (women, Toyota Damen-Basketball-Bundesliga, api-1.dbbl.scb.world). The two share one API; game ids overlap, so a game is (league, game_id).

Value

A hoopR_data tibble: Box score of a finished game: one row per player line of both teams (2002-03 on). An empty valid answer raises hoopR_no_data; the columns are always these, in this order (sportsdataverse-py scb_game_players):

col_nametypedescription
leaguecharacterLeague the row belongs to: bbl (men) or dbbl (women); BBL and DBBL game ids overlap, so a game is (league, game_id).
game_idcharacterGame id, a string. Joins to /games/{gameId}.
seasonintegerSeason END year (2026 = 2025-26), the sdv key; the API's season_id plus one.
sidecharacterhome or guest (the away side), for the team the row belongs to.
team_idcharacterClub id; equal to seasonTeamId in every sample. Joins to /teams/{teamId}.
season_player_idcharacterSeason-player id: one player's engagement with one club (kept across seasons while he stays, new after a move; see README). Joins to box-score seasonPlayer.id, action seasonPlayerId and /season-players/{seasonPlayerId}.
real_player_idintegerGlobal person id: the same across clubs and seasons. Joins to realPlayerId everywhere.
first_namecharacterPlayer's given name.
last_namecharacterPlayer's family name.
shirt_numbercharacterJersey number. A number or a numeric string across rows.
positioncharacterPosition: POINT_GUARD, SHOOTING_GUARD, SMALL_FORWARD, POWER_FORWARD, CENTER.
season_team_idcharacterSeason-team id; equal to the club teamId in every sample (BBL 2005-2026, DBBL 2024-2026).
team_namecharacterTeam name as listed that season (sponsor names included, e.g. 'EWE Baskets Oldenburg').
team_tlccharacterThree-letter club code.
season_idintegerSeason, START year (2026 = 2026-27).
seconds_playedintegerThe player's playing time in SECONDS in the game.
pointsintegerThe player's points in the game.
two_point_shots_madeintegerThe player's 2-point field goals made in the game.
two_point_shots_attemptedintegerThe player's 2-point field goals attempted in the game.
two_point_shot_success_percentdoubleThe player's 2-point field-goal percentage in the game, 0-100 (one decimal); 0 when no attempts.
three_point_shots_madeintegerThe player's 3-point field goals made in the game.
three_point_shots_attemptedintegerThe player's 3-point field goals attempted in the game.
three_point_shot_success_percentdoubleThe player's 3-point field-goal percentage in the game, 0-100 (one decimal); 0 when no attempts.
field_goals_madeintegerThe player's field goals made in the game.
field_goals_attemptedintegerThe player's field goals attempted in the game.
field_goals_success_percentdoubleThe player's field-goal percentage in the game, 0-100 (one decimal); 0 when no attempts.
free_throws_madeintegerThe player's free throws made in the game.
free_throws_attemptedintegerThe player's free throws attempted in the game.
free_throws_success_percentdoubleThe player's free-throw percentage in the game, 0-100 (one decimal); 0 when no attempts.
offensive_reboundsintegerThe player's offensive rebounds in the game.
defensive_reboundsintegerThe player's defensive rebounds in the game.
total_reboundsintegerThe player's rebounds (offensive + defensive) in the game.
assistsintegerThe player's assists in the game.
stealsintegerThe player's steals in the game.
turnoversintegerThe player's turnovers in the game.
blocksintegerThe player's blocked shots in the game.
fouls_committedintegerThe player's fouls committed in the game.
efficiencyintegerThe player's efficiency (EFF = PTS + REB + AST + STL + BLK - missed FG - missed FT - TO; checked on a 2026 box score) in the game.
plus_minusintegerThe player's plus-minus (point margin while on court); null when the API sends an empty string (2005-06).
is_starting_fivelogicalStarted the game.
double_doubleintegerThe player's double-doubles in the game.
triple_doubleintegerThe player's triple-doubles in the game.
fouls_receivedintegerThe player's fouls drawn in the game.
opponent_team_namecharacterOpponent's name.
field_goals_recomputedlogicalTrue when the API's field-goal totals disagreed with its 2-point plus 3-point parts (2005-06 box scores) and were recomputed from the parts.

Details

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

Examples

# \donttest{
  try(scb_game_players(game_id = "2006920"))
#> ── BBL/DBBL Game Player Box Score from the SCB API ────────────── hoopR 3.2.0 ──
#> ℹ Data updated: 2026-10-31 21:33:40 UTC
#> # A tibble: 23 × 45
#>    league game_id season side  team_id season_player_id real_player_id
#>    <chr>  <chr>    <int> <chr> <chr>   <chr>                     <int>
#>  1 bbl    2006920   2027 home  413     56414                     37539
#>  2 bbl    2006920   2027 home  413     2001679                   40635
#>  3 bbl    2006920   2027 home  413     56377                     42293
#>  4 bbl    2006920   2027 home  413     1000868                   42321
#>  5 bbl    2006920   2027 home  413     2004104                   45523
#>  6 bbl    2006920   2027 home  413     2004358                   51576
#>  7 bbl    2006920   2027 home  413     2001680                   56949
#>  8 bbl    2006920   2027 home  413     57252                     57252
#>  9 bbl    2006920   2027 home  413     2002150               140180627
#> 10 bbl    2006920   2027 home  413     2004102               140181547
#> # ℹ 13 more rows
#> # ℹ 38 more variables: first_name <chr>, last_name <chr>, shirt_number <chr>,
#> #   position <chr>, season_team_id <chr>, team_name <chr>, team_tlc <chr>,
#> #   season_id <int>, seconds_played <int>, points <int>,
#> #   two_point_shots_made <int>, two_point_shots_attempted <int>,
#> #   two_point_shot_success_percent <dbl>, three_point_shots_made <int>,
#> #   three_point_shots_attempted <int>, …
# }