Skip to contents

A tidy team dictionary (id, abbreviation, name, conference, division, logo URL) derived from the stats.nba.com player index plus a static conference/division map.

Usage

nba_team_dict(season = year_to_season(most_recent_nba_season() - 1), ...)

Arguments

season

Season in "YYYY-YY" form. Defaults to the most recent completed season.

...

Additional arguments passed to nba_playerindex() (e.g. proxy).

Value

A hoopR_data tibble with one row per team:

col_nametypesdescription
team_idcharacterTeam id.
team_abbreviationcharacterTeam abbreviation.
team_citycharacterTeam city / region.
team_namecharacterTeam nickname.
team_fullcharacterFull team name.
conferencecharacterConference (Eastern / Western).
divisioncharacterDivision.
logo_urlcharacterNBA CDN primary logo URL.

See also

Examples

# \donttest{
  try(nba_team_dict())
#>  2026-06-13 07:36:02.937031: Invalid arguments or no player index data for 2025-26 available!
#>  Args: college = "", country = "", draft_pick = "", draft_round = "", draft_year = "", height = "", historical = 0, league_id = "00", season = "2025-26", season_type = "Regular Season", team_id = "0", weight = ""
#>  Error: Failed to perform HTTP request. Caused by error in `curl::curl_fetch_memory()`: ! Timeout was reached [stats.nba.com]: Operation timed out after 60001 milliseconds with 0 bytes received
#>  2026-06-13 07:36:02.949217: No NBA team dictionary available!
#>  Args: season = "2025-26"
#>  Error: No player index returned
#> data frame with 0 columns and 0 rows
# }