Skip to main content

DBL — Basketligaen site API (www.basketligaen.dk/api, Denmark; Sportality) — Athlete

sportality_athlete_career​

Player career totals, one row per ssgt.

Endpoint URL: GET https://www.basketligaen.dk/api/statistics-v2/athlete/playerProfile_gameLog

Valid URL: https://www.basketligaen.dk/api/statistics-v2/athlete/playerProfile_gameLog?playerUuid=dpu0901c0t&masterSiteInstanceId=dbl1_dbl

API ParameterPythonPatternRequiredNullableDescription
playerUuidathlete_uuidYRequired. Athlete uuid.
masterSiteInstanceIdmaster_site_instance_idYSite instance (dbl1_dbl). No effect in the drop-one probe.

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
gintegerGames played in the ssgt.
gpsintegerGames started (0 on every row seen).
mpgnumericMinutes per game, 'M.m' string.
ppgnumericPoints per game (a number or.
drpgnumericDefensive rebounds per game.
orpgintegerOffensive rebounds per game.
rpgnumericRebounds per game.
apgnumericAssists per game.
stpgnumericSteals per game.
blkpgintegerBlocks per game.
pfpgnumericPersonal fouls per game.
2_p_percnumericTwo-point percentage, 0-100.
3_pmintegerThree-pointers made (total).
3_panumericThree-pointers attempted (total, or a percentage string in the checked rows; unverified).
3_p_percnumericThree-point percentage, 0-100.
ft_percnumericFree-throw percentage, 0-100.
topgnumericTurnovers per game.
plus_minus_pgintegerPlus/minus per game.
info_uuidcharacterAthlete uuid on player tables, team uuid on team tables (platform key space).
info_full_namecharacterFull display name of the player.
info_first_namecharacterGiven (first) name(s) of the player.
info_last_namecharacterFamily name (surname) of the player.
info_nationalitycharacterISO 3166-1 alpha-2 country code.
info_gendercharacterGender of the person as recorded by the site (male in every row seen).
info_age_valueintegerAge in whole years.
info_age_formatcharacterUnit of the value (years). Values: years = years.
info_weight_valueintegerWeight of the player in kilograms.
info_weight_formatcharacterUnit of the value (kg). Values: kg = kilograms.
info_height_valueintegerHeight of the player in centimetres.
info_height_formatcharacterUnit of the value (cm). Values: cm = centimetres.
info_jersey_numbercharacterJersey number ('N/A' on career rows).
info_positioncharacterPosition code (G, F, C, SG, SF ...).
info_position_codecharacterPosition code ('N/A' on career rows). Values: N/A = not applicable (career rows).
info_shootscharacterShooting hand (null).
info_team_uuidcharacterTeam uuid (platform key space); joins /sports-v2/teams/{team_uuid}.
info_team_instance_idcharacterSite instance id of the club (platform key space).
info_team_namecharacterName of the team.
info_team_codecharacterThree-letter team code.
info_season_statscharacterSeason totals (always empty here).
info_career_statscharacterCareer totals (always empty here).
info_statistics_providercharacterStats provider of the data (genius-basketball = Genius Sports LiveStats).
info_is_in_squadlogicalWhether the player is in the team's current squad.
info_player_idintegerGenius person id (Genius key space; an integer).
info_ssgt_uuidcharacterssgt uuid of the career row (platform key space).
info_team_idintegerGenius team id (Genius key space; an integer here).

return_parsed=False — the raw JSON Dict payload, unparsed.

Example​

sportality_athlete_career(athlete_uuid='dpu0901c0t', master_site_instance_id='dbl1_dbl')

Last validated n/a.

sportality_athlete_details​

Player bio plus playerExtIds (the Genius person id).

Endpoint URL: GET https://www.basketligaen.dk/api/sports-v2/athlete-details/{athlete_uuid}

Valid URL: https://www.basketligaen.dk/api/sports-v2/athlete-details/dpu0901c0t

API ParameterPythonPatternRequiredNullableDescription
athlete_uuidathlete_uuidYAthlete uuid: roster players[].uuid or stats-info stats[].info.uuid. Key space: platform athlete uuids (not the Genius person id).

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
athlete_uuidcharacterPlatform athlete uuid (rosters and athlete routes key on it); not the Genius person id; null where the site has none.
player_idintegerGenius person id (Int64). A string key in the players maps, an integer in play-by-play and box-score rows; cast here so the frames join, and join the genius family.
created_atcharacterCreation timestamp.
created_bycharacterCreating site instance.
creator_sitecharacterUnobserved: null in every sample and every full body. When filled: Creating site (null).
heightintegerHeight of the player in centimetres.
deletedlogicalSoft-delete flag.
first_namecharacterGiven (first) name(s) of the player.
gendercharacterGender of the person as recorded by the site (male in every row seen).
last_modifiedcharacterLast-modified timestamp.
last_namecharacterFamily name (surname) of the player.
metadatacharacterFree metadata (always empty).
nationalitycharacterISO 3166-1 alpha-2 country code.
shootscharacterShooting hand ('').
weightintegerWeight of the player in kilograms.

return_parsed=False — the raw JSON Dict payload, unparsed.

Example​

sportality_athlete_details(athlete_uuid='dpu0901c0t')

Last validated n/a.

sportality_athlete_profile​

Player profile: age, height, position, season and career totals.

Endpoint URL: GET https://www.basketligaen.dk/api/statistics-v2/athlete/profile-page

Valid URL: https://www.basketligaen.dk/api/statistics-v2/athlete/profile-page?playerUuid=dpu0901c0t&masterSiteInstanceId=dbl1_dbl

API ParameterPythonPatternRequiredNullableDescription
playerUuidathlete_uuidYRequired. Athlete uuid.
masterSiteInstanceIdmaster_site_instance_idYSite instance (dbl1_dbl). No effect in the drop-one probe.

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
uuidcharacterPlatform uuid of this record (10-character lowercase key space of its record type; joins the route that serves it).
full_namecharacterFull display name of the player.
first_namecharacterGiven (first) name(s) of the player.
last_namecharacterFamily name (surname) of the player.
nationalitycharacterISO 3166-1 alpha-2 country code.
gendercharacterGender of the team or player: male or female (every record on this host is male).
age_valueintegerAge in whole years.
age_formatcharacterUnit of the value (years). Values: years = years.
weight_valueintegerWeight of the player in kilograms.
weight_formatcharacterUnit of the value (kg). Values: kg = kilograms.
height_valueintegerHeight of the player in centimetres.
height_formatcharacterUnit of the value (cm). Values: cm = centimetres.
jersey_numberintegerJersey (shirt) number of the player.
positioncharacterPlaying position.
position_codecharacterPosition code (G, F, C, or a finer code such as SG on the profile route). Values: G = guard.
shootscharacterShooting hand (empty or null for every player seen).
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.
season_statscharacterThe player's current-season totals as field/value pairs (GP, PAvg, ...).
career_statscharacterThe player's career totals as field/value pairs.
statistics_providercharacterStats provider of the data (genius-basketball = Genius Sports LiveStats).
is_in_squadlogicalWhether the player is in the team's current squad.
media_urlcharacterPortrait image URL (imgix CDN).
media_altcharacterImage alt text ('').
media_srcsetcharacterResponsive image set (imgix CDN URLs with widths).
media_url_img_original_proportioncharacterPortrait URL at its original proportions.
media_url_placeholder_imagecharacterPlaceholder image URL ('').
media_videourlcharacterVideo URL ('').
media_photographercharacterPhotographer credit ('').
media_focal_pointcharacterFocal point record (empty).

return_parsed=False — the raw JSON Dict payload, unparsed.

Example​

sportality_athlete_profile(athlete_uuid='dpu0901c0t', master_site_instance_id='dbl1_dbl')

Last validated n/a.