
Get ESPN MBB Athlete Career Stats (Long Format)
Source:R/espn_mbb_athlete_career.R, R/espn_nba_athlete_career.R
espn_mbb_player_career_stats.RdReturns career stats for an MBB athlete in long format. Default
stat_type = 0L fetches the standard "All Splits" / regular-season
view. Pass a vector like c(0L, 1L, 2L) to attempt multiple types
and bind them via a stat_type_id column; variants that 404 for that
athlete are silently skipped. Stat types: 0 = regular season (default
endpoint), 1 = postseason, 2 = career aggregate. Coverage of types 1
and 2 is sparse — many athletes only have type 0 populated.
Returns career stats for an NBA athlete in long format. Default
stat_type = 0L fetches the standard "All Splits" / regular-season
view. Pass a vector like c(0L, 1L, 2L) to attempt multiple types
and bind them via a stat_type_id column; variants that 404 for that
athlete are silently skipped. Stat types: 0 = regular season (default
endpoint), 1 = postseason, 2 = career aggregate. Coverage of types 1
and 2 is sparse — many athletes only have type 0 populated.
Usage
espn_mbb_player_career_stats(athlete_id, stat_type = 0L, ...)
espn_nba_player_career_stats(athlete_id, stat_type = 0L, ...)Arguments
- athlete_id
ESPN athlete identifier.
- stat_type
Integer or integer vector of stat-type codes. Default
0Lfetches the standard "All Splits" / regular-season view. Pass a vector likec(0L, 1L, 2L)to bind multiple types via astat_type_idcolumn; non-existent variants are silently skipped.- ...
Additional arguments; currently unused.
Value
A long tibble (one row per stat_type × split × category × stat).
Columns as documented in the shared espn_mbb_player_career_stats_schema table.
A long tibble (one row per stat_type × split × category × stat).
Columns as documented in the shared espn_mbb_player_career_stats_schema table.
Details
Get ESPN MBB Athlete Career Stats (Long Format)
Get ESPN NBA Athlete Career Stats (Long Format)
See also
Other ESPN MBB 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_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_rankings(),
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()
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_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_team_depthchart(),
espn_nba_transactions()
Examples
# \donttest{
# LeBron James — regular + postseason combined
espn_mbb_player_career_stats(athlete_id = 4593919)
#> ── ESPN MENS-COLLEGE-BASKETBALL Athlete Career Stats ──────────── hoopR 3.1.0 ──
#> ℹ Data updated: 2026-08-27 17:47:09 UTC
#> # A tibble: 87 × 17
#> league athlete_id stat_type_id split_id split_name split_type category_name
#> <chr> <chr> <chr> <chr> <chr> <chr> <chr>
#> 1 mens-co… 4593919 0 0 Season season defensive
#> 2 mens-co… 4593919 0 0 Season season defensive
#> 3 mens-co… 4593919 0 0 Season season defensive
#> 4 mens-co… 4593919 0 0 Season season defensive
#> 5 mens-co… 4593919 0 0 Season season defensive
#> 6 mens-co… 4593919 0 0 Season season defensive
#> 7 mens-co… 4593919 0 0 Season season defensive
#> 8 mens-co… 4593919 0 0 Season season defensive
#> 9 mens-co… 4593919 0 0 Season season general
#> 10 mens-co… 4593919 0 0 Season season general
#> # ℹ 77 more rows
#> # ℹ 10 more variables: category_display <chr>, category_short <chr>,
#> # category_abbrev <chr>, stat_name <chr>, stat_abbrev <chr>,
#> # stat_display <chr>, stat_short <chr>, description <chr>, value <dbl>,
#> # display_value <chr>
# Just career aggregate
espn_mbb_player_career_stats(athlete_id = 4593919, stat_type = 2L)
#> ── ESPN MENS-COLLEGE-BASKETBALL Athlete Career Stats ──────────── hoopR 3.1.0 ──
#> ℹ Data updated: 2026-08-27 17:47:09 UTC
#> # A tibble: 0 × 17
#> # ℹ 17 variables: league <chr>, athlete_id <chr>, stat_type_id <chr>,
#> # split_id <chr>, split_name <chr>, split_type <chr>, category_name <chr>,
#> # category_display <chr>, category_short <chr>, category_abbrev <chr>,
#> # stat_name <chr>, stat_abbrev <chr>, stat_display <chr>, stat_short <chr>,
#> # description <chr>, value <dbl>, display_value <chr>
# }
# \donttest{
# LeBron James — regular + postseason combined
espn_nba_player_career_stats(athlete_id = 1966)
#> ── ESPN NBA Athlete Career Stats ──────────────────────────────── hoopR 3.1.0 ──
#> ℹ Data updated: 2026-08-27 17:47:09 UTC
#> # A tibble: 114 × 17
#> league athlete_id stat_type_id split_id split_name split_type category_name
#> <chr> <chr> <chr> <chr> <chr> <chr> <chr>
#> 1 nba 1966 0 0 All Splits total defensive
#> 2 nba 1966 0 0 All Splits total defensive
#> 3 nba 1966 0 0 All Splits total defensive
#> 4 nba 1966 0 0 All Splits total defensive
#> 5 nba 1966 0 0 All Splits total defensive
#> 6 nba 1966 0 0 All Splits total defensive
#> 7 nba 1966 0 0 All Splits total defensive
#> 8 nba 1966 0 0 All Splits total defensive
#> 9 nba 1966 0 0 All Splits total defensive
#> 10 nba 1966 0 0 All Splits total defensive
#> # ℹ 104 more rows
#> # ℹ 10 more variables: category_display <chr>, category_short <chr>,
#> # category_abbrev <chr>, stat_name <chr>, stat_abbrev <chr>,
#> # stat_display <chr>, stat_short <chr>, description <chr>, value <dbl>,
#> # display_value <chr>
# Just career aggregate
espn_nba_player_career_stats(athlete_id = 1966, stat_type = 2L)
#> ── ESPN NBA Athlete Career Stats ──────────────────────────────── hoopR 3.1.0 ──
#> ℹ Data updated: 2026-08-27 17:47:09 UTC
#> # A tibble: 0 × 17
#> # ℹ 17 variables: league <chr>, athlete_id <chr>, stat_type_id <chr>,
#> # split_id <chr>, split_name <chr>, split_type <chr>, category_name <chr>,
#> # category_display <chr>, category_short <chr>, category_abbrev <chr>,
#> # stat_name <chr>, stat_abbrev <chr>, stat_display <chr>, stat_short <chr>,
#> # description <chr>, value <dbl>, display_value <chr>
# }