Get ESPN MLB Athlete Stats
Get ESPN MLB Athlete Stats
Usage
espn_mlb_player_stats_v3(athlete_id, season = most_recent_mlb_season(), ...)Value
A named list of per-category tibbles. Default category names are
General, Offensive, Defensive, Rebounding, Shooting, Misc.
Actual names are driven by the ESPN response; additional categories may
appear. Each tibble has columns depending on the category returned by
ESPN.
Note: ESPN's web-v3 athlete-statistics feed is sparsely populated for
MLB and frequently returns an empty tibble; use espn_mlb_player_stats()
or espn_mlb_player_splits() for season statistics. When populated:
| col_name | types | description |
| athlete_id | character | Unique ESPN athlete identifier. |
| season | integer | Season (4-digit year). |
| category | character | Statistic category (e.g. 'batting', 'pitching'). |
| stat_name | character | Statistic name. |
| abbreviation | character | Statistic abbreviation. |
| value | numeric | Numeric statistic value. |
| display_value | character | Human-readable statistic value. |
See also
Other ESPN MLB Functions:
espn_mlb,
espn_mlb_athletes_index(),
espn_mlb_award(),
espn_mlb_betting(),
espn_mlb_calendar(),
espn_mlb_coach(),
espn_mlb_coach_record(),
espn_mlb_coach_season(),
espn_mlb_coaches(),
espn_mlb_conferences(),
espn_mlb_draft(),
espn_mlb_draft_athlete_detail(),
espn_mlb_draft_athletes(),
espn_mlb_draft_pick(),
espn_mlb_draft_rounds(),
espn_mlb_draft_status(),
espn_mlb_franchise(),
espn_mlb_franchises(),
espn_mlb_freeagents(),
espn_mlb_futures(),
espn_mlb_game_all(),
espn_mlb_game_broadcasts(),
espn_mlb_game_endpoints,
espn_mlb_game_info(),
espn_mlb_game_odds(),
espn_mlb_game_official_detail(),
espn_mlb_game_officials(),
espn_mlb_game_play(),
espn_mlb_game_play_personnel(),
espn_mlb_game_player_box(),
espn_mlb_game_powerindex(),
espn_mlb_game_predictor(),
espn_mlb_game_probabilities(),
espn_mlb_game_probables(),
espn_mlb_game_propbets(),
espn_mlb_game_rosters(),
espn_mlb_game_situation(),
espn_mlb_game_team_leaders(),
espn_mlb_game_team_linescores(),
espn_mlb_game_team_records(),
espn_mlb_game_team_roster(),
espn_mlb_game_team_roster_entry(),
espn_mlb_game_team_score(),
espn_mlb_game_team_statistics(),
espn_mlb_injuries(),
espn_mlb_leaders(),
espn_mlb_news(),
espn_mlb_pbp(),
espn_mlb_player_awards(),
espn_mlb_player_box(),
espn_mlb_player_career_stats(),
espn_mlb_player_contract(),
espn_mlb_player_contracts(),
espn_mlb_player_endpoints,
espn_mlb_player_eventlog(),
espn_mlb_player_eventlog_v2(),
espn_mlb_player_gamelog(),
espn_mlb_player_info(),
espn_mlb_player_overview(),
espn_mlb_player_seasons(),
espn_mlb_player_splits(),
espn_mlb_player_statisticslog(),
espn_mlb_player_stats(),
espn_mlb_position(),
espn_mlb_positions(),
espn_mlb_powerindex(),
espn_mlb_scoreboard(),
espn_mlb_season_awards(),
espn_mlb_season_draft(),
espn_mlb_season_group(),
espn_mlb_season_group_children(),
espn_mlb_season_group_teams(),
espn_mlb_season_groups(),
espn_mlb_season_info(),
espn_mlb_season_leaders(),
espn_mlb_season_ranking(),
espn_mlb_season_rankings(),
espn_mlb_season_type(),
espn_mlb_season_types(),
espn_mlb_season_week(),
espn_mlb_season_weeks(),
espn_mlb_seasons(),
espn_mlb_standings(),
espn_mlb_team(),
espn_mlb_team_box(),
espn_mlb_team_current_roster(),
espn_mlb_team_depthchart(),
espn_mlb_team_endpoints,
espn_mlb_team_injuries(),
espn_mlb_team_leaders(),
espn_mlb_team_news(),
espn_mlb_team_odds_records(),
espn_mlb_team_record(),
espn_mlb_team_record_detail(),
espn_mlb_team_roster(),
espn_mlb_team_schedule(),
espn_mlb_team_season_profile(),
espn_mlb_team_season_roster(),
espn_mlb_team_season_statistics(),
espn_mlb_team_stats(),
espn_mlb_teams(),
espn_mlb_tournament(),
espn_mlb_tournament_season(),
espn_mlb_tournament_seasons(),
espn_mlb_tournaments(),
espn_mlb_transactions(),
espn_mlb_venues(),
espn_mlb_week_ranking(),
espn_mlb_week_rankings(),
espn_mlb_wp()
Examples
# \donttest{
espn_mlb_player_stats_v3(athlete_id = "1966", season = 2024)
#> $`Career Batting`
#> ── ESPN MLB Athlete Stats from ESPN.com ───────────── baseballr 2.0.0 ──
#> ℹ Data updated: 2026-06-08 11:07:53 UTC
#> # A tibble: 14 × 6
#> team_id team_slug season$year stats position display_name
#> <chr> <chr> <int> <list> <chr> <chr>
#> 1 19 los-angeles-dodgers 1987 <chr> CF NA
#> 2 19 los-angeles-dodgers 1988 <chr> CF NA
#> 3 1 baltimore-orioles 1989 <chr> CF NA
#> 4 1 baltimore-orioles 1990 <chr> CF NA
#> 5 1 baltimore-orioles 1991 <chr> CF NA
#> 6 1 baltimore-orioles 1992 <chr> CF NA
#> 7 1 baltimore-orioles 1993 <chr> CF NA
#> 8 1 baltimore-orioles 1994 <chr> CF NA
#> 9 4 chicago-white-sox 1995 <chr> CF NA
#> 10 15 atlanta-braves 1995 <chr> CF NA
#> 11 NA 1995 Totals 1995 <chr> CF 1995 Totals
#> 12 1 baltimore-orioles 1996 <chr> CF NA
#> 13 13 texas-rangers 1997 <chr> CF NA
#> 14 19 los-angeles-dodgers 1998 <chr> CF NA
#> # ℹ 1 more variable: season$displayName <chr>
#>
#> $`Postseason Batting`
#> ── ESPN MLB Athlete Stats from ESPN.com ───────────── baseballr 2.0.0 ──
#> ℹ Data updated: 2026-06-08 11:07:54 UTC
#> # A tibble: 2 × 5
#> team_id team_slug season$year $displayName stats position
#> <chr> <chr> <int> <chr> <list> <chr>
#> 1 15 atlanta-braves 1995 1995 <chr [17]> CF
#> 2 1 baltimore-orioles 1996 1996 <chr [17]> CF
#>
#> $`Expanded Batting`
#> ── ESPN MLB Athlete Stats from ESPN.com ───────────── baseballr 2.0.0 ──
#> ℹ Data updated: 2026-06-08 11:07:54 UTC
#> # A tibble: 14 × 6
#> team_id team_slug season$year stats position display_name
#> <chr> <chr> <int> <list> <chr> <chr>
#> 1 19 los-angeles-dodgers 1987 <chr> CF NA
#> 2 19 los-angeles-dodgers 1988 <chr> CF NA
#> 3 1 baltimore-orioles 1989 <chr> CF NA
#> 4 1 baltimore-orioles 1990 <chr> CF NA
#> 5 1 baltimore-orioles 1991 <chr> CF NA
#> 6 1 baltimore-orioles 1992 <chr> CF NA
#> 7 1 baltimore-orioles 1993 <chr> CF NA
#> 8 1 baltimore-orioles 1994 <chr> CF NA
#> 9 4 chicago-white-sox 1995 <chr> CF NA
#> 10 15 atlanta-braves 1995 <chr> CF NA
#> 11 NA 1995 Totals 1995 <chr> CF 1995 Totals
#> 12 1 baltimore-orioles 1996 <chr> CF NA
#> 13 13 texas-rangers 1997 <chr> CF NA
#> 14 19 los-angeles-dodgers 1998 <chr> CF NA
#> # ℹ 1 more variable: season$displayName <chr>
#>
#> $`Advanced Batting`
#> ── ESPN MLB Athlete Stats from ESPN.com ───────────── baseballr 2.0.0 ──
#> ℹ Data updated: 2026-06-08 11:07:54 UTC
#> # A tibble: 14 × 6
#> team_id team_slug season$year stats position display_name
#> <chr> <chr> <int> <list> <chr> <chr>
#> 1 19 los-angeles-dodgers 1987 <chr> CF NA
#> 2 19 los-angeles-dodgers 1988 <chr> CF NA
#> 3 1 baltimore-orioles 1989 <chr> CF NA
#> 4 1 baltimore-orioles 1990 <chr> CF NA
#> 5 1 baltimore-orioles 1991 <chr> CF NA
#> 6 1 baltimore-orioles 1992 <chr> CF NA
#> 7 1 baltimore-orioles 1993 <chr> CF NA
#> 8 1 baltimore-orioles 1994 <chr> CF NA
#> 9 4 chicago-white-sox 1995 <chr> CF NA
#> 10 15 atlanta-braves 1995 <chr> CF NA
#> 11 NA 1995 Totals 1995 <chr> CF 1995 Totals
#> 12 1 baltimore-orioles 1996 <chr> CF NA
#> 13 13 texas-rangers 1997 <chr> CF NA
#> 14 19 los-angeles-dodgers 1998 <chr> CF NA
#> # ℹ 1 more variable: season$displayName <chr>
#>
#> $General
#> ── ESPN MLB Athlete Stats from ESPN.com ───────────── baseballr 2.0.0 ──
#> ℹ Data updated: 2026-06-08 11:07:53 UTC
#> # A tibble: 0 × 0
#>
#> $Offensive
#> ── ESPN MLB Athlete Stats from ESPN.com ───────────── baseballr 2.0.0 ──
#> ℹ Data updated: 2026-06-08 11:07:53 UTC
#> # A tibble: 0 × 0
#>
#> $Defensive
#> ── ESPN MLB Athlete Stats from ESPN.com ───────────── baseballr 2.0.0 ──
#> ℹ Data updated: 2026-06-08 11:07:53 UTC
#> # A tibble: 0 × 0
#>
#> $Rebounding
#> ── ESPN MLB Athlete Stats from ESPN.com ───────────── baseballr 2.0.0 ──
#> ℹ Data updated: 2026-06-08 11:07:53 UTC
#> # A tibble: 0 × 0
#>
#> $Shooting
#> ── ESPN MLB Athlete Stats from ESPN.com ───────────── baseballr 2.0.0 ──
#> ℹ Data updated: 2026-06-08 11:07:53 UTC
#> # A tibble: 0 × 0
#>
#> $Misc
#> ── ESPN MLB Athlete Stats from ESPN.com ───────────── baseballr 2.0.0 ──
#> ℹ Data updated: 2026-06-08 11:07:53 UTC
#> # A tibble: 0 × 0
#>
# }
