Skip to contents

Score, state, clock and the Genius ids of one game (2023/24 on).

Endpoint: GET https://www.basketligaen.dk/api/gameday/game-overview/{game_uuid}

Usage

sportality_game_overview(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: Score, state, clock and the Genius ids of one game (2023/24 on). An empty valid answer raises hoopR_no_data; the documented columns come first, in this order (sportsdataverse-py sportality_game_overview), then any column the API added later:

col_nametypedescription
game_uuidcharacterPlatform game uuid (c4hh5nig6t); every gameday route takes it.
home_team_game_source_idintegerGenius match id (Genius key space; integer here).
home_team_game_idintegerGenius match id (Genius key space; the same number as gameSourceId).
home_team_team_idintegerGenius team id of the home team (Genius key space; Int64).
home_team_team_namecharacterName of the home team.
home_team_team_codecharacterHome team code as Genius spells it (mixed case, 'Hol').
home_team_team_numberintegerTeam number in the game; home is 1.
home_team_placecharacterhome. Values: home = home team.
home_team_instance_idcharacterSite instance id of the home club (platform key space).
home_team_sourcecharacterFeed that produced the row (genius-basketball-stream-reader).
home_team_game_uuidcharacterGame uuid (platform key space).
away_team_game_source_idintegerGenius match id (Genius key space; integer here).
away_team_game_idintegerGenius match id (Genius key space; the same number as gameSourceId).
away_team_team_idintegerGenius team id of the away team (Genius key space; Int64).
away_team_team_namecharacterName of the away team.
away_team_team_codecharacterAway team code as Genius spells it.
away_team_team_numberintegerTeam number in the game; away is 2.
away_team_placecharacteraway. Values: away = away team.
away_team_instance_idcharacterSite instance id of the away club (platform key space).
away_team_sourcecharacterFeed that produced the row (genius-basketball-stream-reader).
away_team_game_uuidcharacterGame uuid (platform key space).
home_goalsintegerPoints scored by the home team.
away_goalsintegerPoints scored by the away team.
statecharacterGame state. Schedule and day views: pre-game or post-game (hyphen). sports-v2 game-info: post_game (underscore). Gameday overview: GameEnded. Values: GameEnded = played (gameday overview).
time_game_idintegerGenius match id (Genius key space).
time_periodintegerPeriod number the clock stands in (1-4 regulation, 5+ overtime).
time_period_timecharacterClock remaining in the period, 'hh:mm:ss' ('00:00:00' once the period or game is over).
time_instance_idcharacterSite instance that owns the feed (platform key space; dbl1_dbl).
time_sourcecharacterFeed that produced the row (genius-basketball-stream-reader).

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_game_overview(game_uuid = "c4hh5nig6t"))
#> ── Basketligaen Game Overview from basketligaen.dk ────────────── hoopR 3.2.0 ──
#> ℹ Data updated: 2026-10-31 21:33:55 UTC
#> # A tibble: 1 × 29
#>   game_uuid  home_team_game_source_id home_team_game_id home_team_team_id
#>   <chr>                         <int>             <int>             <int>
#> 1 c4hh5nig6t                  2868126           2868126            153747
#> # ℹ 25 more variables: home_team_team_name <chr>, home_team_team_code <chr>,
#> #   home_team_team_number <int>, home_team_place <chr>,
#> #   home_team_instance_id <chr>, home_team_source <chr>,
#> #   home_team_game_uuid <chr>, away_team_game_source_id <int>,
#> #   away_team_game_id <int>, away_team_team_id <int>,
#> #   away_team_team_name <chr>, away_team_team_code <chr>,
#> #   away_team_team_number <int>, away_team_place <chr>, …
# }