Get ESPN NBA team names and IDs
Value
A teams data frame
| col_name | types | description |
| team_id | integer | Unique team identifier. |
| abbreviation | character | Short abbreviation. |
| display_name | character | Display name. |
| short_name | character | Short display name. |
| mascot | character | Team mascot. |
| nickname | character | Team or athlete nickname. |
| team | character | Team-side label or team identifier. |
| color | character | Primary color (hex without leading '#'). |
| alternate_color | character | Alternate color (hex without leading '#'). |
| logo | character | Team or league logo URL. |
| logo_dark | character | Logo dark. |
| logos_href_3 | character | Logos href 3. |
| logos_href_4 | character | Logos href 4. |
See also
Other ESPN NBA Functions:
espn_nba_athlete_awards(),
espn_nba_athlete_career_stats(),
espn_nba_athlete_contract(),
espn_nba_athlete_contracts(),
espn_nba_athlete_eventlog(),
espn_nba_athlete_eventlog_v2(),
espn_nba_athlete_gamelog(),
espn_nba_athlete_info(),
espn_nba_athlete_overview(),
espn_nba_athlete_seasons(),
espn_nba_athlete_splits(),
espn_nba_athlete_statisticslog(),
espn_nba_athlete_stats(),
espn_nba_athletes_index(),
espn_nba_award(),
espn_nba_betting(),
espn_nba_calendar(),
espn_nba_coach(),
espn_nba_coach_season(),
espn_nba_coaches(),
espn_nba_conferences(),
espn_nba_draft(),
espn_nba_draft_athletes(),
espn_nba_draft_pick(),
espn_nba_draft_rounds(),
espn_nba_draft_status(),
espn_nba_event_broadcasts(),
espn_nba_event_odds(),
espn_nba_event_officials(),
espn_nba_event_powerindex(),
espn_nba_event_predictor(),
espn_nba_event_probabilities(),
espn_nba_event_propbets(),
espn_nba_event_situation(),
espn_nba_franchise(),
espn_nba_franchises(),
espn_nba_freeagents(),
espn_nba_futures(),
espn_nba_game_all(),
espn_nba_game_rosters(),
espn_nba_injuries(),
espn_nba_leaders(),
espn_nba_news(),
espn_nba_pbp(),
espn_nba_player_box(),
espn_nba_player_stats(),
espn_nba_powerindex(),
espn_nba_scoreboard(),
espn_nba_season_awards(),
espn_nba_season_group(),
espn_nba_season_group_children(),
espn_nba_season_group_teams(),
espn_nba_season_groups(),
espn_nba_season_info(),
espn_nba_season_leaders(),
espn_nba_season_ranking(),
espn_nba_season_rankings(),
espn_nba_season_type(),
espn_nba_season_types(),
espn_nba_season_week(),
espn_nba_season_weeks(),
espn_nba_seasons(),
espn_nba_standings(),
espn_nba_team(),
espn_nba_team_box(),
espn_nba_team_current_roster(),
espn_nba_team_depthchart(),
espn_nba_team_injuries(),
espn_nba_team_leaders(),
espn_nba_team_news(),
espn_nba_team_odds_records(),
espn_nba_team_record(),
espn_nba_team_roster(),
espn_nba_team_schedule(),
espn_nba_team_season_profile(),
espn_nba_team_season_roster(),
espn_nba_team_stats(),
espn_nba_tournament(),
espn_nba_tournament_seasons(),
espn_nba_tournaments(),
espn_nba_transactions(),
espn_nba_venues(),
espn_nba_week_ranking(),
espn_nba_week_rankings(),
espn_nba_wp()
Examples
# \donttest{
try(espn_nba_teams())
#> ── ESPN NBA Teams Information from ESPN.com ───────────────────── hoopR 3.1.0 ──
#> ℹ Data updated: 2026-05-19 01:34:19 UTC
#> # A tibble: 30 × 25
#> abbreviation alternate_color color display_name team_id team logo logo_dark
#> <chr> <chr> <chr> <chr> <int> <chr> <chr> <chr>
#> 1 ATL fdb927 c810… Atlanta Haw… 1 Atla… http… https://…
#> 2 BOS ffffff 0083… Boston Celt… 2 Bost… http… https://…
#> 3 BKN ffffff 0000… Brooklyn Ne… 17 Broo… http… https://…
#> 4 CHA 1d1060 008c… Charlotte H… 30 Char… http… https://…
#> 5 CHI 000000 ce11… Chicago Bul… 4 Chic… http… https://…
#> 6 CLE bc945c 8600… Cleveland C… 5 Clev… http… https://…
#> 7 DAL bbc4ca 0064… Dallas Mave… 6 Dall… http… https://…
#> 8 DEN fec524 0e22… Denver Nugg… 7 Denv… http… https://…
#> 9 DET c8102e 1d42… Detroit Pis… 8 Detr… http… https://…
#> 10 GS 1d428a fdb9… Golden Stat… 9 Gold… http… https://…
#> # ℹ 20 more rows
#> # ℹ 17 more variables: logos_href_3 <chr>, logos_href_4 <chr>,
#> # logos_href_5 <chr>, logos_href_6 <chr>, logos_href_7 <chr>,
#> # logos_href_8 <chr>, logos_href_9 <chr>, logos_href_10 <chr>,
#> # logos_href_11 <chr>, logos_href_12 <chr>, logos_href_13 <chr>,
#> # logos_href_14 <chr>, logos_href_15 <chr>, logos_href_16 <chr>,
#> # mascot <chr>, nickname <chr>, short_name <chr>
# }
