Skip to contents

Get the header of one game from the live API: teams, codes, coaches, score by quarter, venue, referees, one row.

Endpoint: GET https://live.euroleague.net/api/Header?gamecode={game_code}&seasoncode={season_code}

The header is a flat object: teams, codes, coaches, the score and the cumulative score at the end of each quarter (score_quarter1_a ...), venue, capacity (as reported; its semantics are unverified) and referees. Team A is the home side as measured on one game.

Usage

euroleague_game_header(game_code, season_code)

Arguments

game_code

(integer required): Game number within the season (1-based; the game_code column of euroleague_games()).

season_code

(character required): Competition code + start year: E2025 (EuroLeague 2025-26), U2025 (EuroCup).

Value

A hoopR_data tibble with one row (the game):

col_nametypesdescription
livelogicalWhether the game is in progress.
roundcharacterRound label (e.g. Round 1).
datecharacterGame date (venue local, dd/mm/yyyy).
hourcharacterScheduled tip-off time (venue local, HH:MM).
stadiumcharacterVenue name.
capacitycharacterCapacity as reported by the API (equals the box score's attendance on the captured game; semantics unverified).
team_acharacterDisplay name of team A (= the home side, measured on one game).
team_bcharacterDisplay name of team B (= the away side, measured on one game).
code_team_acharacterEuroLeague club code of team A (= the home side, measured on one game); Utf8 join key.
tv_code_acharacterThree-letter broadcast abbreviation of team A.
code_team_bcharacterEuroLeague club code of team B (= the away side, measured on one game); Utf8 join key.
tv_code_bcharacterThree-letter broadcast abbreviation of team B.
im_acharacterCrest image file name of team A.
im_bcharacterCrest image file name of team B.
score_acharacterScore of team A (= the home side, measured on one game).
score_bcharacterScore of team B (= the away side, measured on one game).
coach_acharacterHead coach of team A.
coach_bcharacterHead coach of team B.
game_timecharacterElapsed game time (mm:ss).
remaining_partial_timecharacterTime remaining in the current period (mm:ss).
widcharacterLive-feed widget identifier of the game.
quartercharacterCurrent period of the game.
foults_acharacterTeam fouls of team A in the current period (sic: the API spells it this way).
foults_bcharacterTeam fouls of team B in the current period (sic: the API spells it this way).
timeouts_acharacterTimeouts used by team A.
timeouts_bcharacterTimeouts used by team B.
score_quarter1_aintegerScore of team A at the end of quarter 1 (cumulative).
score_quarter2_aintegerScore of team A at the end of quarter 2 (cumulative).
score_quarter3_aintegerScore of team A at the end of quarter 3 (cumulative).
score_quarter4_aintegerScore of team A at the end of quarter 4 (cumulative).
score_extra_time_aintegerPoints scored by team A in overtime (0 when none).
score_quarter1_bintegerScore of team B at the end of quarter 1 (cumulative).
score_quarter2_bintegerScore of team B at the end of quarter 2 (cumulative).
score_quarter3_bintegerScore of team B at the end of quarter 3 (cumulative).
score_quarter4_bintegerScore of team B at the end of quarter 4 (cumulative).
score_extra_time_bintegerPoints scored by team B in overtime (0 when none).
phasecharacterPhase name (Regular Season, Playoffs, ...).
phase_reduced_namecharacterShort phase name.
competitioncharacterCompetition name.
competition_reduced_namecharacterShort competition name.
pcomcharacterCompetition code of the live feed (E = EuroLeague, U = EuroCup).
referee1characterFirst referee.
referee2characterSecond referee.
referee3characterThird referee.

Details

Unofficial, keyless API, not supported by Euroleague Basketball; hoopR only wraps it (wrap-only: payloads are not redistributed as release assets). This function mirrors its sdv-py twin of the same name: same arguments, defaults and snake_case columns, one row per sdv-py row.

The live API's codes are space-padded fixed-width strings (TEAM = "IST "); every string cell is stripped. Its "no such game" answer is an empty 200 body, returned as a zero-row tibble with the documented columns (not an error). A 404 raises hoopR_no_data, a 400 / 422 hoopR_invalid_request, any other failure hoopR_fetch_error (all inherit hoopR_error).

Examples

# \donttest{
  try({
    euroleague_game_header(game_code = 1, season_code = "E2025")
  })
#> ── EuroLeague game header from live.euroleague.net ───────── hoopR 3.1.0.9000 ──
#> ℹ Data updated: 2026-10-12 03:08:44 UTC
#> # A tibble: 1 × 44
#>   live  round date    hour  stadium capacity team_a team_b code_team_a tv_code_a
#>   <lgl> <chr> <chr>   <chr> <chr>   <chr>    <chr>  <chr>  <chr>       <chr>    
#> 1 FALSE 1     30/09/… 19:45 MORACA  2110     ANADO… MACCA… IST         EFS      
#> # ℹ 34 more variables: code_team_b <chr>, tv_code_b <chr>, im_a <chr>,
#> #   im_b <chr>, score_a <chr>, score_b <chr>, coach_a <chr>, coach_b <chr>,
#> #   game_time <chr>, remaining_partial_time <chr>, wid <chr>, quarter <chr>,
#> #   foults_a <chr>, foults_b <chr>, timeouts_a <chr>, timeouts_b <chr>,
#> #   score_quarter1_a <int>, score_quarter2_a <int>, score_quarter3_a <int>,
#> #   score_quarter4_a <int>, score_extra_time_a <int>, score_quarter1_b <int>,
#> #   score_quarter2_b <int>, score_quarter3_b <int>, score_quarter4_b <int>, …
# }