Skip to contents

Find MLB Player Game Stats - Current Game

Usage

mlb_player_game_stats_current(person_id = NULL)

Arguments

person_id

MLBAMIDs for player of interest.

Value

Returns a tibble with the following columns:

col_nametypesdescription
typecharacterStat type/category (e.g. "gameLog").
groupcharacterStat group (e.g. "hitting", "pitching", "fielding").
stat_assistsintegerAssists.
stat_put_outsintegerPutouts.
stat_errorsintegerErrors.
stat_chancesintegerTotal chances (fielding).
stat_fieldingcharacterFielding percentage.
stat_caught_stealingintegerRunners caught stealing.
stat_passed_ballintegerPassed balls.
stat_stolen_basesintegerStolen bases allowed (catcher/fielding).
stat_stolen_base_percentagecharacterStolen-base percentage.
stat_pickoffsintegerPickoffs.
stat_games_playedintegerGames played.
stat_games_startedintegerGames started.
stat_fly_outsintegerFly outs.
stat_ground_outsintegerGround outs.
stat_air_outsintegerAir outs (fly + line outs).
stat_runsintegerRuns.
stat_doublesintegerDoubles.
stat_triplesintegerTriples.
stat_home_runsintegerHome runs.
stat_strike_outsintegerStrikeouts.
stat_base_on_ballsintegerWalks (bases on balls).
stat_intentional_walksintegerIntentional walks.
stat_hitsintegerHits.
stat_hit_by_pitchintegerHit by pitch.
stat_at_batsintegerAt-bats.
stat_number_of_pitchesintegerNumber of pitches.
stat_innings_pitchedcharacterInnings pitched.
stat_winsintegerWins.
stat_lossesintegerLosses.
stat_savesintegerSaves.
stat_save_opportunitiesintegerSave opportunities.
stat_holdsintegerHolds.
stat_blown_savesintegerBlown saves.
stat_earned_runsintegerEarned runs.
stat_batters_facedintegerBatters faced.
stat_outsintegerOuts recorded.
stat_games_pitchedintegerGames pitched.
stat_complete_gamesintegerComplete games.
stat_shutoutsintegerShutouts.
stat_pitches_thrownintegerPitches thrown.
stat_ballsintegerBalls thrown.
stat_strikesintegerStrikes thrown.
stat_strike_percentagecharacterStrike percentage.
stat_hit_batsmenintegerHit batsmen.
stat_balksintegerBalks.
stat_wild_pitchesintegerWild pitches.
stat_rbiintegerRuns batted in.
stat_games_finishedintegerGames finished.
stat_runs_scored_per9characterRuns scored per nine innings.
stat_home_runs_per9characterHome runs allowed per nine innings.
stat_inherited_runnersintegerInherited runners.
stat_inherited_runners_scoredintegerInherited runners who scored.
stat_catchers_interferenceintegerCatcher's interference.
stat_sac_buntsintegerSacrifice bunts.
stat_sac_fliesintegerSacrifice flies.
stat_ground_into_double_playintegerGrounded into double plays.
stat_ground_into_triple_playintegerGrounded into triple plays.
stat_plate_appearancesintegerPlate appearances.
stat_total_basesintegerTotal bases.
stat_left_on_baseintegerRunners left on base.
stat_at_bats_per_home_runcharacterAt-bats per home run.
game_typecharacterGame type (e.g. regular season, postseason).
num_teamsintegerNumber of teams represented in the split.
stat_avgcharacterBatting average.
stat_obpcharacterOn-base percentage.
stat_slgcharacterSlugging percentage.
stat_opscharacterOn-base plus slugging.
stat_outs_pitchedintegerOuts pitched.
stat_whipcharacterWalks plus hits per inning pitched.
stat_ground_outs_to_airoutscharacterGround-out to air-out ratio.
stat_pitches_per_inningcharacterPitches per inning.
stat_strikeout_walk_ratiocharacterStrikeout-to-walk ratio.
stat_strikeouts_per9inncharacterStrikeouts per nine innings.
stat_walks_per9inncharacterWalks per nine innings.
stat_hits_per9inncharacterHits per nine innings.
team_idintegerTeam id (MLBAM).
team_namecharacterTeam name.
team_linkcharacterMLB Stats API relative link for the team.
opponent_idintegerOpponent team id.
opponent_namecharacterOpponent team name.
opponent_linkcharacterMLB Stats API relative link for the opponent.
pitcher_idintegerPitcher MLBAMID.
pitcher_full_namecharacterPitcher full name.
pitcher_linkcharacterMLB Stats API relative link for the pitcher.
pitcher_first_namecharacterPitcher first name.
pitcher_last_namecharacterPitcher last name.
batter_idintegerBatter MLBAMID.
batter_full_namecharacterBatter full name.
batter_linkcharacterMLB Stats API relative link for the batter.
batter_first_namecharacterBatter first name.
batter_last_namecharacterBatter last name.
total_splitsintegerNumber of stat splits returned.
type_display_namecharacterDisplay name of the stat type.
group_display_namecharacterDisplay name of the stat group.
player_idnumericPlayer MLBAMID.
game_pknumericGame primary key (MLBAM game id).

Examples

# \donttest{
  try(mlb_player_game_stats_current(person_id = 660271))
#> ── MLB Player Game Stats - Current Game data from MLB.com ──────────────
#>  Data updated: 2026-06-12 14:09:45 UTC
#> # A tibble: 0 × 0
# }