Skip to contents

Current roster of a team, grouped by position.

Endpoint: GET https://www.basketligaen.dk/api/sports-v2/athletes/by-team-uuid/{team_uuid}

Usage

sportality_roster(team_uuid)

Arguments

team_uuid

(required) Team uuid: homeTeamInfo.uuid / awayTeamInfo.uuid in the schedule or teamList[].uuid. Key space: platform team uuids (not the numeric Genius team id).

Value

A hoopR_data tibble: Current roster of a team, grouped by position. An empty valid answer raises hoopR_no_data; the documented columns come first, in this order (sportsdataverse-py sportality_roster), then any column the API added later:

col_nametypedescription
positioncharacterPlaying position.
position_codecharacterPosition code (G, F, C, or a finer code such as SG on the profile route). Values: C = center; F = forward; G = guard.
player_typecharacterRecord type (athlete). Values: athlete = a player.
gendercharacterGender of the person as recorded by the site (male in every row seen).
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.
jersey_numberintegerJersey (shirt) number of the player.
portrait_urlcharacterURL of the player's latest rendered portrait.

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_roster(team_uuid = "rfo82vr830"))
#> ── Basketligaen Team Roster from basketligaen.dk ──────────────── hoopR 3.2.0 ──
#> ℹ Data updated: 2026-10-31 21:34:01 UTC
#> # A tibble: 14 × 13
#>    position position_code player_type gender uuid       first_name    last_name 
#>    <chr>    <chr>         <chr>       <chr>  <chr>      <chr>         <chr>     
#>  1 Guards   G             athlete     male   cj81dc09w3 Malthe        Aabling   
#>  2 Guards   G             athlete     male   cjcrt5hlho Bryceson      Burns     
#>  3 Guards   G             athlete     male   dmon8irp4j Maxim         Shinkarev 
#>  4 Guards   G             athlete     male   hnrg2dqjcu Oskar Harring Østoft    
#>  5 Guards   G             athlete     male   k1nh3mnqzp Julius        Aabling   
#>  6 Guards   G             athlete     male   khm59ormd2 Sebastian     Reumert   
#>  7 Guards   G             athlete     male   q87tbjqicc Bertil        Anneberg …
#>  8 Guards   G             athlete     male   wtpfbry97z Karl          Heming    
#>  9 Guards   G             athlete     male   zu0qp4mq65 Anders        Jellesmark
#> 10 Forwards F             athlete     male   fjn17iovmg August        Heming    
#> 11 Forwards F             athlete     male   m8ajfnag3m Caden         Fry       
#> 12 Centers  C             athlete     male   fyeh5w7iar Oskar Fløng   Vanner    
#> 13 Centers  C             athlete     male   mqers10jtj Daniel        Stubkjær  
#> 14 Centers  C             athlete     male   wz2bk7trd4 Visti         Thomsen   
#> # ℹ 6 more variables: full_name <chr>, nationality <chr>, jersey_number <int>,
#> #   portrait_url <chr>, height <int>, weight <int>
# }