Skip to contents

Returns the team's depth chart in long format, one row per (position × rank × athlete). NBA-only at ESPN's core-v2.

Usage

espn_nba_team_depthchart(team_id, season = most_recent_nba_season(), ...)

Arguments

team_id

ESPN team identifier.

season

Season year. Defaults to most recent NBA season.

...

Additional arguments; currently unused.

Value

A long tibble with one row per athlete depth entry.

col_nametypesdescription
leaguecharacterLeague slug.
team_idcharacterESPN team id.
seasonintegerSeason year.
depthchart_idcharacterDepth chart id (typically "1").
depthchart_namecharacterDepth chart name.
positioncharacterPosition code (pg/sg/sf/pf/c).
rankintegerDepth rank (1 = starter).
athlete_idcharacterESPN athlete id.
athlete_refcharacter$ref URL to athlete-in-season.
position_refcharacter$ref URL to position resource.

Details

Get ESPN NBA Team Depth Chart (Long Format)

See also

Other ESPN NBA Functions: espn_mbb_athletes_index(), espn_mbb_award(), espn_mbb_calendar(), espn_mbb_coach(), espn_mbb_coach_record(), espn_mbb_coach_season(), espn_mbb_coaches(), espn_mbb_conferences(), espn_mbb_franchise(), espn_mbb_franchises(), espn_mbb_futures(), espn_mbb_game_all(), espn_mbb_game_odds(), espn_mbb_game_official_detail(), espn_mbb_game_play(), espn_mbb_game_play_personnel(), espn_mbb_game_player_box(), espn_mbb_game_probabilities(), espn_mbb_game_propbets(), espn_mbb_game_team_linescores(), espn_mbb_game_team_roster_entry(), espn_mbb_injuries(), espn_mbb_leaders(), espn_mbb_news(), espn_mbb_player_awards(), espn_mbb_player_career_stats(), espn_mbb_player_eventlog_v2(), espn_mbb_player_info(), espn_mbb_player_overview(), espn_mbb_player_seasons(), espn_mbb_player_stats(), espn_mbb_position(), espn_mbb_positions(), espn_mbb_powerindex(), espn_mbb_scoreboard(), espn_mbb_season_awards(), espn_mbb_season_group(), espn_mbb_season_groups(), espn_mbb_season_info(), espn_mbb_season_leaders(), espn_mbb_season_ranking(), espn_mbb_season_rankings(), espn_mbb_season_type(), espn_mbb_season_types(), espn_mbb_season_week(), espn_mbb_season_weeks(), espn_mbb_seasons(), espn_mbb_standings(), espn_mbb_team(), espn_mbb_team_current_roster(), espn_mbb_team_injuries(), espn_mbb_team_news(), espn_mbb_team_odds_records(), espn_mbb_team_record(), espn_mbb_team_record_detail(), espn_mbb_team_schedule(), espn_mbb_team_season_roster(), espn_mbb_team_season_statistics(), espn_mbb_team_stats(), espn_mbb_teams(), espn_mbb_tournament(), espn_mbb_tournament_season(), espn_mbb_tournament_seasons(), espn_mbb_tournaments(), espn_mbb_venues(), espn_mbb_week_ranking(), espn_mbb_week_rankings(), espn_mbb_wp(), espn_nba_draft_pick(), espn_nba_freeagents(), espn_nba_player_contracts(), espn_nba_transactions()

Author

Saiem Gilani

Examples

# \donttest{
  espn_nba_team_depthchart(team_id = 13, season = 2025)
#> ── ESPN NBA Team Depth Chart ──────────────────────────────────── hoopR 3.1.0 ──
#>  Data updated: 2026-08-27 17:47:47 UTC
#> # A tibble: 30 × 10
#>    league team_id season depthchart_id depthchart_name position  rank athlete_id
#>    <chr>  <chr>    <int> <chr>         <chr>           <chr>    <int> <chr>     
#>  1 nba    13        2025 1             Depth Chart     pg           1 3945274   
#>  2 nba    13        2025 1             Depth Chart     pg           2 3137259   
#>  3 nba    13        2025 1             Depth Chart     pg           3 2990992   
#>  4 nba    13        2025 1             Depth Chart     pg           4 4683774   
#>  5 nba    13        2025 1             Depth Chart     pg           5 4066457   
#>  6 nba    13        2025 1             Depth Chart     pg           6 4683686   
#>  7 nba    13        2025 1             Depth Chart     sg           1 4066457   
#>  8 nba    13        2025 1             Depth Chart     sg           2 2990992   
#>  9 nba    13        2025 1             Depth Chart     sg           3 4897943   
#> 10 nba    13        2025 1             Depth Chart     sg           4 4683774   
#> # ℹ 20 more rows
#> # ℹ 2 more variables: athlete_ref <chr>, position_ref <chr>
# }