Skip to contents

Player head-to-head of a matchup with per-game and season lines.

Endpoint: GET https://www.basketligaen.dk/api/statistics-v2/player-h2h-v2/{ssgt_uuid}/{home_team_uuid}/{away_team_uuid}

Usage

sportality_player_h2h(
  ssgt_uuid,
  home_team_uuid,
  away_team_uuid,
  game_uuid = NULL
)

Arguments

ssgt_uuid

(required) ssgt uuid: one season + series + game type, e.g. xs07bd3fmp = 2026/2027 regular season. Directory: /statistics-v2/layout-info seasonSeriesGameTypeTeams[].ssgtUuid.

home_team_uuid

(required) Home team uuid of the game.

away_team_uuid

(required) Away team uuid of the game.

game_uuid

(default NULL) Game uuid; selects the game whose box-score lines the head-to-head carries.

Value

A hoopR_data tibble: Player head-to-head of a matchup with per-game and season lines. An empty valid answer raises hoopR_no_data; the documented columns come first, in this order (sportsdataverse-py sportality_player_h2h), then any column the API added later:

col_nametypedescription
uuidcharacterAthlete uuid (platform key space).
first_namecharacterGiven (first) name(s) of the player.
last_namecharacterFamily name (surname) of the player.
full_namecharacterFull display name of the player.
nationalitycharacterISO 3166-1 alpha-2 country code.
gendercharacterGender of the person as recorded by the site (male in every row seen).
jersey_numberintegerJersey (shirt) number of the player.
positioncharacterPosition name (Guard, Forward, Center ...).
position_codecharacterPosition code. Values: C = center; G = guard; N/A = not applicable (career rows); PF = power forward; PG = point guard; SF = small forward; SG = shooting guard.
age_valueintegerAge in whole years.
age_formatcharacterUnit of the value (years). Values: years = years.
height_valueintegerHeight of the player in centimetres.
height_formatcharacterUnit of the value (cm). Values: cm = centimetres.
weight_valueintegerWeight of the player in kilograms.
weight_formatcharacterUnit of the value (kg). Values: kg = kilograms.
team_uuidcharacterPlatform team uuid.
team_instance_idcharacterSite instance id of the club (platform key space).
team_namecharacterName of the team.
team_codecharacterPlatform team code (HOL, RAN).
team_mediacharacterURL of the team logo image.
media_urlcharacterPortrait image URL (imgix CDN).
media_altcharacterImage alt text (”).
media_srcsetcharacterResponsive image set (imgix CDN URLs with widths).
season_statscharacterSeason totals as field/value pairs (absent for some players).
career_statscharacterCareer totals as field/value pairs (absent for some players).
match_stats_nrintegerJersey (shirt) number of the player.
match_stats_poscharacterPlaying position code of the player (G, F, C, ...).
match_stats_team_numberintegerTeam number in the game.
match_stats_pnointegerGenius shirt-table number.
match_stats_minscharacterMinutes played 'MM:SS'.
match_stats_ptsintegerNumber of points scored.
match_stats_fgcharacterField goals 'made-attempted'.
match_stats_fg_percdoubleField-goal percentage, 0-100.
match_stats_2_pcharacterTwo-pointers 'made-attempted'.
match_stats_2_p_percdoubleTwo-point percentage, 0-100.
match_stats_3_pcharacterThree-pointers 'made-attempted'.
match_stats_3_p_percdoubleThree-point percentage, 0-100.
match_stats_ftcharacterFree throws 'made-attempted'.
match_stats_ft_percdoubleFree-throw percentage, 0-100.
match_stats_offintegerOffensive rebounds.
match_stats_defintegerDefensive rebounds.
match_stats_rebintegerTotal rebounds.
match_stats_astintegerNumber of assists credited.
match_stats_tointegerNumber of turnovers committed.
match_stats_stlintegerNumber of steals.
match_stats_blkintegerNumber of blocked shots made.
match_stats_blkrintegerBlocks received.
match_stats_pfintegerPersonal fouls.
match_stats_f_onintegerFouls on (fouls drawn).
match_stats_plus_minusintegerPlus/minus while on court.
season_avg_statscharacterThe player's season averages (an object keyed by stat).
statistics_providercharacterStats provider (genius-basketball).
is_in_squadlogicalWhether the player is in the squad.
effective_ssgt_uuidcharacterThe ssgt the head-to-head was computed for: the CURRENT season, whatever the path asked.

Details

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

 sportality_player_h2h(
   away_team_uuid = "gvvuxe9ysw", game_uuid = "c4hh5nig6t", home_team_uuid = "rfo82vr830",
   ssgt_uuid = "xs07bd3fmp"
 )