Skip to contents

Box score with jersey and Genius shirt numbers (2023/24 on).

Endpoint: GET https://www.basketligaen.dk/api/gameday/player-stats/{game_uuid}

Usage

sportality_player_box(game_uuid)

Arguments

game_uuid

(required) Game uuid: gameInfo[].uuid of the schedule (10 lowercase letters and digits). Key space: platform game uuids; the Genius match id is extId / gameSourceId in the body.

Value

A hoopR_data tibble: Box score with jersey and Genius shirt numbers (2023/24 on). An empty valid answer raises hoopR_no_data; the documented columns come first, in this order (sportsdataverse-py sportality_player_box), then any column the API added later:

col_nametypedescription
team_sidecharacterhome or away: the side the row belongs to.
row_typecharacterKind of row: player, team_coach (the bench row: team rebounds, turnovers and fouls charged to the team or coach) or team_totals.
player_idintegerGenius person id (Int64). A string key in the players maps, an integer in play-by-play and box-score rows; cast here so the frames join, and join the genius family.
team_idintegerGenius team id (Int64): in gameday bodies, an integer in standings and stats tables.
team_namecharacterName of the team.
periodintegerPeriod of the line: 0 = the whole game (the only value seen).
full_namecharacterFull display name of the player.
first_namecharacterGiven (first) name(s) of the player.
last_namecharacterFamily name (surname) of the player.
nrintegerJersey number (null on the bench and totals rows).
poscharacterPosition code of the line (G, F, C; null on the bench and totals rows).
minscharacterMinutes played as 'MM:SS' (null on the bench and totals rows).
ptsintegerNumber of points scored.
fgcharacterField goals as 'made-attempted'.
fg_percdoubleField-goal percentage, 0-100.
2_pcharacterTwo-pointers as 'made-attempted'.
2_p_percdoubleTwo-point percentage, 0-100.
3_pcharacterThree-pointers as 'made-attempted'.
3_p_percdoubleThree-point percentage, 0-100.
ftcharacterFree throws as 'made-attempted'.
ft_percdoubleFree-throw percentage, 0-100.
offintegerOffensive rebounds.
defintegerDefensive rebounds.
rebintegerTotal rebounds.
astintegerNumber of assists credited.
tointegerNumber of turnovers committed.
stlintegerNumber of steals.
blkintegerNumber of blocked shots made.
blkrintegerBlocks received (shots of the player that were blocked).
pfintegerPersonal fouls.
f_onintegerFouls on (fouls drawn).
plus_minusintegerPlus/minus while on court.
team_numberintegerTeam number in the game (1 home, 2 away) as Genius numbers the shirt table.
pnointegerGenius shirt-table number of the player (player-stats only).

Details

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

Examples

# \donttest{
  try(sportality_player_box(game_uuid = "c4hh5nig6t"))
#> ── Basketligaen Player Box Score from basketligaen.dk ─────────── hoopR 3.2.0 ──
#> ℹ Data updated: 2026-10-31 21:34:00 UTC
#> # A tibble: 28 × 34
#>    team_side row_type player_id team_id team_name    period full_name first_name
#>    <chr>     <chr>        <int>   <int> <chr>         <int> <chr>     <chr>     
#>  1 home      player     1887576      NA Holbæk-Sten…      0 Oskar Fl… Oskar Flø…
#>  2 home      player     2777479      NA Holbæk-Sten…      0 Bryceson… Bryceson  
#>  3 home      player     2404639      NA Holbæk-Sten…      0 Anders J… Anders    
#>  4 home      player     2779432      NA Holbæk-Sten…      0 Sebastia… Sebastian 
#>  5 home      player     2777481      NA Holbæk-Sten…      0 Otto Jer… Otto      
#>  6 home      player     1951861      NA Holbæk-Sten…      0 August H… August    
#>  7 home      player     2495922      NA Holbæk-Sten…      0 Karl Hem… Karl      
#>  8 home      player     2380378      NA Holbæk-Sten…      0 Julius A… Julius    
#>  9 home      player     2385172      NA Holbæk-Sten…      0 Malthe A… Malthe    
#> 10 home      player     2778538      NA Holbæk-Sten…      0 Caden Fry Caden     
#> # ℹ 18 more rows
#> # ℹ 26 more variables: last_name <chr>, nr <int>, pos <chr>, mins <chr>,
#> #   pts <int>, fg <chr>, fg_perc <dbl>, `2_p` <chr>, `2_p_perc` <dbl>,
#> #   `3_p` <chr>, `3_p_perc` <dbl>, ft <chr>, ft_perc <dbl>, off <int>,
#> #   def <int>, reb <int>, ast <int>, to <int>, stl <int>, blk <int>,
#> #   blkr <int>, pf <int>, f_on <int>, plus_minus <int>, team_number <int>,
#> #   pno <int>
# }