Skip to contents

Team totals per period (2023/24 on).

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

Usage

sportality_team_stats(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: Team totals per period (2023/24 on). An empty valid answer raises hoopR_no_data; the documented columns come first, in this order (sportsdataverse-py sportality_team_stats), then any column the API added later:

col_nametypedescription
team_sidecharacterhome or away: the side the row belongs to.
game_source_idintegerGenius match id (Int64), the same number as game_id and sports-v2 game_info_ext_id.
game_idintegerGenius match id (Int64), the join to the genius family; on play-by-play lines, an integer elsewhere.
team_idintegerGenius team id (Int64): in gameday bodies, an integer in standings and stats tables.
team_namecharacterName of the team.
team_codecharacterPlatform team code (HOL, RAN).
team_numberintegerTeam number; home is 1.
instance_idcharacterSite instance that owns the feed (platform key space; dbl1_dbl).
sourcecharacterFeed that produced the row (genius-basketball-stream-reader).
game_uuidcharacterPlatform game uuid (c4hh5nig6t); every gameday route takes it.
periodintegerPeriod: 0 = the whole game, 1-4 the quarters, 5 and up overtime.
period_typecharacterREGULAR or OVERTIME; absent on the whole-game row of some eras. Values: REGULAR = regulation period.
tpintegerPoints scored by the team in the period (period 0 = the whole game).
fgmintegerField goals made (total).
aintegerAssists (total).
rebintegerTotal rebounds.
stlintegerNumber of steals.
blkintegerNumber of blocked shots made.
pfintegerPersonal fouls.

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_team_stats(game_uuid = "c4hh5nig6t"))
#> ── Basketligaen Team Stats from basketligaen.dk ───────────────── hoopR 3.2.0 ──
#> ℹ Data updated: 2026-10-31 21:34:08 UTC
#> # A tibble: 10 × 19
#>    team_side game_source_id game_id team_id team_name      team_code team_number
#>    <chr>              <int>   <int>   <int> <chr>          <chr>           <int>
#>  1 home             2868126 2868126  153747 Holbæk-Stenhus Hol                 1
#>  2 home             2868126 2868126  153747 Holbæk-Stenhus Hol                 1
#>  3 home             2868126 2868126  153747 Holbæk-Stenhus Hol                 1
#>  4 home             2868126 2868126  153747 Holbæk-Stenhus Hol                 1
#>  5 home             2868126 2868126  153747 Holbæk-Stenhus Hol                 1
#>  6 away             2868126 2868126   22250 Randers Cimbr… RAN                 2
#>  7 away             2868126 2868126   22250 Randers Cimbr… RAN                 2
#>  8 away             2868126 2868126   22250 Randers Cimbr… RAN                 2
#>  9 away             2868126 2868126   22250 Randers Cimbr… RAN                 2
#> 10 away             2868126 2868126   22250 Randers Cimbr… RAN                 2
#> # ℹ 12 more variables: instance_id <chr>, source <chr>, game_uuid <chr>,
#> #   period <int>, period_type <chr>, tp <int>, fgm <int>, a <int>, reb <int>,
#> #   stl <int>, blk <int>, pf <int>
# }