Skip to contents

Game header: Genius match id (extId), arena, state, teams, scores.

Endpoint: GET https://www.basketligaen.dk/api/sports-v2/game-info/{game_uuid}

Usage

sportality_game_header(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: Game header: Genius match id (extId), arena, state, teams, scores. An empty valid answer raises hoopR_no_data; the documented columns come first, in this order (sportsdataverse-py sportality_game_header), then any column the API added later:

col_nametypedescription
instance_context_site_team_is_in_gamelogicalWhether the requesting site's own team plays in the game.
instance_context_site_team_is_home_teamlogicalWhether the requesting site's own team is the home team.
instance_context_site_team_is_away_teamlogicalWhether the requesting site's own team is the away team.
game_info_game_uuidcharacterGame uuid (platform key space).
game_info_ext_idintegerGenius match id (Int64; the same number as gameday game_source_id).
game_info_start_date_timecharacterScheduled start, ISO 8601 UTC with milliseconds.
game_info_arena_namecharacterName of the arena (venue).
game_info_statecharacterGame state, underscore form: post_game once played. Values: post_game = played (sports-v2 game-info).
game_info_overtimelogicalWhether the game went to overtime.
game_info_shootoutcharacterUnobserved: null in every sample and every full body. When filled: Shootout flag (null on every game seen).
game_info_series_codecharacterSeries code (DBL).
game_info_series_namecharacterSeries name (Basketligaen).
game_info_round_numberintegerRound number (0).
game_info_round_labelcharacterRound label (”).
game_info_series_display_namecharacterSeries display name (Basketligaen).
home_team_names_codecharacterThree-letter team code (HOL, RAN ...); codes changed between seasons for some clubs (BAK in 2026, BKA in 2025 for Bakken Bears).
home_team_names_shortcharacterShort name of the team.
home_team_names_longcharacterLong name of the team.
home_team_names_fullcharacterFull name of the team.
home_team_names_code_sitecharacterTeam code as the club's own site shows it.
home_team_names_short_sitecharacterShort team name as the club's own site shows it.
home_team_names_full_sitecharacterFull team name as the club's own site shows it.
home_team_names_long_sitecharacterLong team name as the club's own site shows it.
home_team_uuidcharacterHome team uuid (platform key space); joins /sports-v2/teams/{team_uuid}.
home_team_instance_idcharacterSite instance id of the home club (platform key space).
home_team_founded_oncharacterYear the club was founded (” when unknown).
home_team_iconcharacterHome team logo URL.
home_team_scoreintegerPoints scored by the home team.
away_team_names_codecharacterThree-letter team code (HOL, RAN ...); codes changed between seasons for some clubs (BAK in 2026, BKA in 2025 for Bakken Bears).
away_team_names_shortcharacterShort name of the team.
away_team_names_longcharacterLong name of the team.
away_team_names_fullcharacterFull name of the team.
away_team_names_code_sitecharacterTeam code as the club's own site shows it.
away_team_names_short_sitecharacterShort team name as the club's own site shows it.
away_team_names_full_sitecharacterFull team name as the club's own site shows it.
away_team_names_long_sitecharacterLong team name as the club's own site shows it.
away_team_uuidcharacterAway team uuid (platform key space); joins /sports-v2/teams/{team_uuid}.
away_team_instance_idcharacterSite instance id of the away club (platform key space).
away_team_founded_oncharacterYear the club was founded (” when unknown).
away_team_iconcharacterAway team logo URL.
away_team_scoreintegerPoints scored by the away team.
ssgt_uuidcharacterssgt uuid (platform key space: one season + series + game type); joins /statistics-v2/layout-info seasonSeriesGameTypeTeams[].ssgtUuid and every route keyed by ssgt.
series_uuidcharacterSeries uuid (platform key space; Basketligaen = m1ay3mpa4t, the only series on this host).

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_header(game_uuid = "c4hh5nig6t"))
#> ── Basketligaen Game Header from basketligaen.dk ──────────────── hoopR 3.2.0 ──
#> ℹ Data updated: 2026-10-31 21:33:54 UTC
#> # A tibble: 1 × 43
#>   instance_context_site_team_is_…¹ instance_context_sit…² instance_context_sit…³
#>   <lgl>                            <lgl>                  <lgl>                 
#> 1 TRUE                             TRUE                   TRUE                  
#> # ℹ abbreviated names: ¹​instance_context_site_team_is_in_game,
#> #   ²​instance_context_site_team_is_home_team,
#> #   ³​instance_context_site_team_is_away_team
#> # ℹ 40 more variables: game_info_game_uuid <chr>, game_info_ext_id <int>,
#> #   game_info_start_date_time <chr>, game_info_arena_name <chr>,
#> #   game_info_state <chr>, game_info_overtime <lgl>, game_info_shootout <chr>,
#> #   game_info_series_code <chr>, game_info_series_name <chr>, …
# }