Get ESPN MLB player stats data
Value
Returns a tibble with the player stats data
| col_name | types | description |
| athlete_id | integer | Unique ESPN athlete identifier. |
| athlete_uid | character | Athlete uid. |
| athlete_guid | character | Athlete guid. |
| athlete_type | character | Athlete type. |
| sdr | integer | Sdr. |
| first_name | character | First name. |
| last_name | character | Last name. |
| full_name | character | Full name. |
| display_name | character | Display name. |
| nickname | character | Team nickname. |
| short_name | character | Short display name. |
| weight | numeric | Weight. |
| display_weight | character | Display weight. |
| height | numeric | Height. |
| display_height | character | Display height. |
| age | integer | Age. |
| date_of_birth | character | Date of birth. |
| debut_year | integer | Debut year. |
| slug | character | Slug. |
| headshot_href | character | Headshot href. |
| headshot_alt | character | Headshot alt. |
| jersey | character | Jersey. |
| position_id | integer | Position id. |
| position_name | character | Position name. |
| position_display_name | character | Position display name. |
| position_abbreviation | character | Position abbreviation. |
| position_leaf | logical | Position leaf. |
| positions_x_ref | character | Positions x ref. |
| positions_id | character | Positions id. |
| positions_name | character | Positions name. |
| positions_display_name | character | Positions display name. |
| positions_abbreviation | character | Positions abbreviation. |
| positions_leaf | logical | Positions leaf. |
| positions_x_ref_1 | character | Positions x ref 1. |
| positions_x_ref_2 | character | Positions x ref 2. |
| positions_x_ref_3 | character | Positions x ref 3. |
| positions_id_1 | character | Positions id 1. |
| positions_name_1 | character | Positions name 1. |
| positions_display_name_1 | character | Positions display name 1. |
| positions_abbreviation_1 | character | Positions abbreviation 1. |
| positions_leaf_1 | logical | Positions leaf 1. |
| positions_x_ref_4 | character | Positions x ref 4. |
| positions_x_ref_5 | character | Positions x ref 5. |
| positions_x_ref_6 | character | Positions x ref 6. |
| positions_id_2 | character | Positions id 2. |
| positions_name_2 | character | Positions name 2. |
| positions_display_name_2 | character | Positions display name 2. |
| positions_abbreviation_2 | character | Positions abbreviation 2. |
| positions_leaf_2 | logical | Positions leaf 2. |
| positions_x_ref_7 | character | Positions x ref 7. |
| positions_x_ref_8 | character | Positions x ref 8. |
| positions_x_ref_9 | character | Positions x ref 9. |
| positions_id_3 | character | Positions id 3. |
| positions_name_3 | character | Positions name 3. |
| positions_display_name_3 | character | Positions display name 3. |
| positions_abbreviation_3 | character | Positions abbreviation 3. |
| positions_leaf_3 | logical | Positions leaf 3. |
| positions_x_ref_10 | character | Positions x ref 10. |
| positions_x_ref_11 | character | Positions x ref 11. |
| linked | logical | Linked. |
| ...and 216 further ESPN stat columns (full batting / pitching / fielding stat set). |
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_v3(),
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{
try(espn_mlb_player_stats(athlete_id = 33192, year = 2022))
#> ── ESPN MLB Player Season Stats from ESPN.com ─────── baseballr 2.0.0 ──
#> ℹ Data updated: 2026-06-08 11:07:53 UTC
#> # A tibble: 1 × 276
#> athlete_id athlete_uid athlete_guid athlete_type sdr first_name
#> <int> <chr> <chr> <chr> <int> <chr>
#> 1 33192 s:1~l:10~a:331… e3e39e69-28… baseball 3.09e6 Aaron
#> # ℹ 270 more variables: last_name <chr>, full_name <chr>,
#> # display_name <chr>, nickname <chr>, short_name <chr>, weight <dbl>,
#> # display_weight <chr>, height <dbl>, display_height <chr>,
#> # age <int>, date_of_birth <chr>, debut_year <int>, slug <chr>,
#> # headshot_href <chr>, headshot_alt <chr>, jersey <chr>,
#> # position_id <int>, position_name <chr>,
#> # position_display_name <chr>, position_abbreviation <chr>, …
# }
