Skip to main content

MLB — MLB Statcast (Baseball Savant) — Other

mlb_statcast_gamefeed​

GET /gf — Savant per-game JSON feed (pitch-by-pitch tracking).

Endpoint URL: GET https://baseballsavant.mlb.com/gf

Valid URL: https://baseballsavant.mlb.com/gf

API ParameterPythonPatternRequiredNullableDescription
game_pkgame_pkYgame_pk query parameter.
at_bat_numberat_bat_numberYat_bat_number query parameter.

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
typecharacterRecord/pitch type.
yearcharacterSeason year.
sport_idcharacterSport id.
play_idcharacterStatcast play UUID.
inningcharacterInning.
half_inningcharacterHalf inning.
ab_numbercharacterAb number.
cap_indexcharacterCap index.
outscharacterOuts.
batterintegerMLBAM id of the batter.
standcharacterBatter stance side (R/L).
batter_namecharacterBatter name.
pitcherintegerMLBAM id of the pitcher.
p_throwscharacterPitcher throwing hand (R/L).
pitcher_namecharacterPitcher name.
catchercharacterCatcher.
catcher_namecharacterCatcher name.
team_battingcharacterTeam batting.
team_fieldingcharacterTeam fielding.
team_batting_idcharacterTeam batting id.
team_fielding_idcharacterTeam fielding id.
resultcharacterResult.
descharacterDes.
eventscharacterEvents.
strikescharacterStrikes.
ballscharacterBalls.
pre_strikescharacterPre strikes.
pre_ballscharacterPre balls.
callcharacterCall.
call_namecharacterCall name.
pitch_typecharacterPitch type code.
pitch_namecharacterPitch type name.
descriptioncharacterDescription.
result_codecharacterResult code.
pitch_callcharacterPitch call.
is_strike_swingingcharacterIs strike swinging.
balls_and_strikescharacterBalls and strikes.
start_speedcharacterStart speed.
end_speedcharacterEnd speed.
sz_topcharacterSz top.
sz_botcharacterSz bot.
extensioncharacterRelease extension (ft).
plate_timecharacterPlate time.
zonecharacterZone.
spin_ratecharacterSpin rate (rpm).
break_xcharacterBreak x.
induced_break_zcharacterInduced break z.
break_zcharacterBreak z.
pxcharacterPx.
pzcharacterPz.
pfx_xcharacterHorizontal movement (in, pitcher perspective).
pfx_zcharacterInduced vertical movement (in).
is_bip_outcharacterIs bip out.
pitch_numbercharacterPitch number.
plate_xcharacterPlate x.
plate_zcharacterPlate z.
hit_speedcharacterHit speed.
hit_distancecharacterHit distance.
xbacharacterExpected batting average.
hit_anglecharacterHit angle.
is_barrelcharacterIs barrel.
hc_xcharacterHc x.
hc_ycharacterHc y.
launch_speedcharacterExit velocity of the batted ball (mph).
launch_anglecharacterLaunch angle (deg).
game_total_pitchescharacterGame total pitches.
game_pkintegerMLBAM game id.

return_parsed=False — the raw JSON Dict payload, unparsed.

Example​

mlb_statcast_gamefeed()

Last validated n/a.

mlb_statcast_schedule​

GET /schedule — Savant schedule feed (one row per game).

Endpoint URL: GET https://baseballsavant.mlb.com/schedule

Valid URL: https://baseballsavant.mlb.com/schedule

API ParameterPythonPatternRequiredNullableDescription
datedateYdate query parameter.

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
game_pkintegerMLBAM game id.
game_guidcharacterGame GUID.
linkcharacterStats API resource link.
game_typecharacterGame type code (R/F/D/L/W/S/E/A).
seasoncharacterSeason year.
game_datecharacterGame date/time (ISO 8601, UTC offset).
official_datecharacterOfficial game date (YYYY-MM-DD).
game_numberintegerGame number (1, or 2 for the nightcap of a doubleheader).
public_facinglogicalPublic facing.
double_headercharacterDoubleheader flag (Y/N/S).
gameday_typecharacterGameday type.
tiebreakercharacterTiebreaker.
calendar_event_idcharacterCalendar event id.
season_displaycharacterSeason display.
day_nightcharacterDay or night game.
scheduled_inningsintegerScheduled innings (usually 9).
reverse_home_away_statuslogicalReverse home away status.
inning_break_lengthintegerInning break length.
games_in_seriesintegerTotal games in the series.
series_game_numberintegerGame number within the series.
series_descriptioncharacterSeries description.
record_sourcecharacterRecord source.
if_necessarycharacterIf necessary.
if_necessary_descriptioncharacterIf necessary description.
status_abstract_game_statecharacterStatus abstract game state.
status_coded_game_statecharacterStatus coded game state.
status_detailed_statecharacterStatus detailed state.
status_status_codecharacterStatus status code.
status_start_time_tbdlogicalStatus start time tbd.
status_abstract_game_codecharacterStatus abstract game code.
teams_away_team_spring_league_idintegerAway team team spring league id.
teams_away_team_spring_league_namecharacterAway team team spring league name.
teams_away_team_spring_league_linkcharacterAway team team spring league link.
teams_away_team_spring_league_abbreviationcharacterAway team team spring league abbreviation.
teams_away_team_all_star_statuscharacterAway team team all star status.
teams_away_team_idintegerAway team team id.
teams_away_team_namecharacterAway team team name.
teams_away_team_linkcharacterAway team team link.
teams_away_team_seasonintegerAway team team season.
teams_away_team_venue_idintegerAway team team venue id.
teams_away_team_venue_namecharacterAway team team venue name.
teams_away_team_venue_linkcharacterAway team team venue link.
teams_away_team_spring_venue_idintegerAway team team spring venue id.
teams_away_team_spring_venue_linkcharacterAway team team spring venue link.
teams_away_team_team_codecharacterAway team team team code.
teams_away_team_file_codecharacterAway team team file code.
teams_away_team_abbreviationcharacterAway team team abbreviation.
teams_away_team_team_namecharacterAway team team team name.
teams_away_team_location_namecharacterAway team team location name.
teams_away_team_first_year_of_playcharacterAway team team first year of play.
teams_away_team_league_idintegerAway team team league id.
teams_away_team_league_namecharacterAway team team league name.
teams_away_team_league_linkcharacterAway team team league link.
teams_away_team_division_idintegerAway team team division id.
teams_away_team_division_namecharacterAway team team division name.
teams_away_team_division_linkcharacterAway team team division link.
teams_away_team_sport_idintegerAway team team sport id.
teams_away_team_sport_linkcharacterAway team team sport link.
teams_away_team_sport_namecharacterAway team team sport name.
teams_away_team_short_namecharacterAway team team short name.
teams_away_team_franchise_namecharacterAway team team franchise name.
teams_away_team_club_namecharacterAway team team club name.
teams_away_team_activelogicalAway team team active.
teams_away_league_record_winsintegerAway team league record wins.
teams_away_league_record_lossesintegerAway team league record losses.
teams_away_league_record_tiesintegerAway team league record ties.
teams_away_league_record_pctcharacterAway team league record rate.
teams_away_probable_pitcher_idintegerAway team probable pitcher id.
teams_away_probable_pitcher_full_namecharacterAway team probable pitcher full name.
teams_away_probable_pitcher_linkcharacterAway team probable pitcher link.
teams_away_probable_pitcher_first_namecharacterAway team probable pitcher first name.
teams_away_probable_pitcher_last_namecharacterAway team probable pitcher last name.
teams_away_probable_pitcher_primary_numbercharacterAway team probable pitcher primary number.
teams_away_probable_pitcher_birth_datecharacterAway team probable pitcher birth date.
teams_away_probable_pitcher_current_ageintegerAway team probable pitcher current age.
teams_away_probable_pitcher_birth_citycharacterAway team probable pitcher birth city.
teams_away_probable_pitcher_birth_state_provincecharacterAway team probable pitcher birth state province.
teams_away_probable_pitcher_birth_countrycharacterAway team probable pitcher birth country.
teams_away_probable_pitcher_heightcharacterAway team probable pitcher height.
teams_away_probable_pitcher_weightintegerAway team probable pitcher weight.
teams_away_probable_pitcher_activelogicalAway team probable pitcher active.
teams_away_probable_pitcher_primary_position_codecharacterAway team probable pitcher primary position code.
teams_away_probable_pitcher_primary_position_namecharacterAway team probable pitcher primary position name.
teams_away_probable_pitcher_primary_position_typecharacterAway team probable pitcher primary position type.
teams_away_probable_pitcher_primary_position_abbreviationcharacterAway team probable pitcher primary position abbreviation.
teams_away_probable_pitcher_use_namecharacterAway team probable pitcher use name.
teams_away_probable_pitcher_use_last_namecharacterAway team probable pitcher use last name.
teams_away_probable_pitcher_middle_namecharacterAway team probable pitcher middle name.
teams_away_probable_pitcher_boxscore_namecharacterAway team probable pitcher boxscore name.
teams_away_probable_pitcher_gendercharacterAway team probable pitcher gender.
teams_away_probable_pitcher_is_playerlogicalAway team probable pitcher is player.
teams_away_probable_pitcher_is_verifiedlogicalAway team probable pitcher is verified.
teams_away_probable_pitcher_draft_yearintegerAway team probable pitcher draft year.
teams_away_probable_pitcher_mlb_debut_datecharacterAway team probable pitcher mlb debut date.
teams_away_probable_pitcher_bat_side_codecharacterAway team probable pitcher bat side code.
teams_away_probable_pitcher_bat_side_descriptioncharacterAway team probable pitcher bat side description.
teams_away_probable_pitcher_pitch_hand_codecharacterAway team probable pitcher pitch hand code.
teams_away_probable_pitcher_pitch_hand_descriptioncharacterAway team probable pitcher pitch hand description.
teams_away_probable_pitcher_name_first_lastcharacterAway team probable pitcher name first last.
teams_away_probable_pitcher_name_slugcharacterAway team probable pitcher name slug.
teams_away_probable_pitcher_first_last_namecharacterAway team probable pitcher first last name.
teams_away_probable_pitcher_last_first_namecharacterAway team probable pitcher last first name.
teams_away_probable_pitcher_last_init_namecharacterAway team probable pitcher last init name.
teams_away_probable_pitcher_init_last_namecharacterAway team probable pitcher init last name.
teams_away_probable_pitcher_full_fml_namecharacterAway team probable pitcher full fml name.
teams_away_probable_pitcher_full_lfm_namecharacterAway team probable pitcher full lfm name.
teams_away_probable_pitcher_strike_zone_topnumericAway team probable pitcher strike zone top.
teams_away_probable_pitcher_strike_zone_bottomnumericAway team probable pitcher strike zone bottom.
teams_away_split_squadlogicalAway team split squad.
teams_away_series_numberintegerAway team series number.
teams_away_spring_league_idintegerAway team spring league id.
teams_away_spring_league_namecharacterAway team spring league name.
teams_away_spring_league_linkcharacterAway team spring league link.
teams_away_spring_league_abbreviationcharacterAway team spring league abbreviation.
teams_home_team_spring_league_idintegerHome team team spring league id.
teams_home_team_spring_league_namecharacterHome team team spring league name.
teams_home_team_spring_league_linkcharacterHome team team spring league link.
teams_home_team_spring_league_abbreviationcharacterHome team team spring league abbreviation.
teams_home_team_all_star_statuscharacterHome team team all star status.
teams_home_team_idintegerHome team team id.
teams_home_team_namecharacterHome team team name.
teams_home_team_linkcharacterHome team team link.
teams_home_team_seasonintegerHome team team season.
teams_home_team_venue_idintegerHome team team venue id.
teams_home_team_venue_namecharacterHome team team venue name.
teams_home_team_venue_linkcharacterHome team team venue link.
teams_home_team_spring_venue_idintegerHome team team spring venue id.
teams_home_team_spring_venue_linkcharacterHome team team spring venue link.
teams_home_team_team_codecharacterHome team team team code.
teams_home_team_file_codecharacterHome team team file code.
teams_home_team_abbreviationcharacterHome team team abbreviation.
teams_home_team_team_namecharacterHome team team team name.
teams_home_team_location_namecharacterHome team team location name.
teams_home_team_first_year_of_playcharacterHome team team first year of play.
teams_home_team_league_idintegerHome team team league id.
teams_home_team_league_namecharacterHome team team league name.
teams_home_team_league_linkcharacterHome team team league link.
teams_home_team_division_idintegerHome team team division id.
teams_home_team_division_namecharacterHome team team division name.
teams_home_team_division_linkcharacterHome team team division link.
teams_home_team_sport_idintegerHome team team sport id.
teams_home_team_sport_linkcharacterHome team team sport link.
teams_home_team_sport_namecharacterHome team team sport name.
teams_home_team_short_namecharacterHome team team short name.
teams_home_team_franchise_namecharacterHome team team franchise name.
teams_home_team_club_namecharacterHome team team club name.
teams_home_team_activelogicalHome team team active.
teams_home_league_record_winsintegerHome team league record wins.
teams_home_league_record_lossesintegerHome team league record losses.
teams_home_league_record_tiesintegerHome team league record ties.
teams_home_league_record_pctcharacterHome team league record rate.
teams_home_probable_pitcher_idintegerHome team probable pitcher id.
teams_home_probable_pitcher_full_namecharacterHome team probable pitcher full name.
teams_home_probable_pitcher_linkcharacterHome team probable pitcher link.
teams_home_probable_pitcher_first_namecharacterHome team probable pitcher first name.
teams_home_probable_pitcher_last_namecharacterHome team probable pitcher last name.
teams_home_probable_pitcher_primary_numbercharacterHome team probable pitcher primary number.
teams_home_probable_pitcher_birth_datecharacterHome team probable pitcher birth date.
teams_home_probable_pitcher_current_ageintegerHome team probable pitcher current age.
teams_home_probable_pitcher_birth_citycharacterHome team probable pitcher birth city.
teams_home_probable_pitcher_birth_state_provincecharacterHome team probable pitcher birth state province.
teams_home_probable_pitcher_birth_countrycharacterHome team probable pitcher birth country.
teams_home_probable_pitcher_heightcharacterHome team probable pitcher height.
teams_home_probable_pitcher_weightintegerHome team probable pitcher weight.
teams_home_probable_pitcher_activelogicalHome team probable pitcher active.
teams_home_probable_pitcher_primary_position_codecharacterHome team probable pitcher primary position code.
teams_home_probable_pitcher_primary_position_namecharacterHome team probable pitcher primary position name.
teams_home_probable_pitcher_primary_position_typecharacterHome team probable pitcher primary position type.
teams_home_probable_pitcher_primary_position_abbreviationcharacterHome team probable pitcher primary position abbreviation.
teams_home_probable_pitcher_use_namecharacterHome team probable pitcher use name.
teams_home_probable_pitcher_use_last_namecharacterHome team probable pitcher use last name.
teams_home_probable_pitcher_middle_namecharacterHome team probable pitcher middle name.
teams_home_probable_pitcher_boxscore_namecharacterHome team probable pitcher boxscore name.
teams_home_probable_pitcher_nick_namecharacterHome team probable pitcher nick name.
teams_home_probable_pitcher_gendercharacterHome team probable pitcher gender.
teams_home_probable_pitcher_is_playerlogicalHome team probable pitcher is player.
teams_home_probable_pitcher_is_verifiedlogicalHome team probable pitcher is verified.
teams_home_probable_pitcher_draft_yearintegerHome team probable pitcher draft year.
teams_home_probable_pitcher_mlb_debut_datecharacterHome team probable pitcher mlb debut date.
teams_home_probable_pitcher_bat_side_codecharacterHome team probable pitcher bat side code.
teams_home_probable_pitcher_bat_side_descriptioncharacterHome team probable pitcher bat side description.
teams_home_probable_pitcher_pitch_hand_codecharacterHome team probable pitcher pitch hand code.
teams_home_probable_pitcher_pitch_hand_descriptioncharacterHome team probable pitcher pitch hand description.
teams_home_probable_pitcher_name_first_lastcharacterHome team probable pitcher name first last.
teams_home_probable_pitcher_name_slugcharacterHome team probable pitcher name slug.
teams_home_probable_pitcher_first_last_namecharacterHome team probable pitcher first last name.
teams_home_probable_pitcher_last_first_namecharacterHome team probable pitcher last first name.
teams_home_probable_pitcher_last_init_namecharacterHome team probable pitcher last init name.
teams_home_probable_pitcher_init_last_namecharacterHome team probable pitcher init last name.
teams_home_probable_pitcher_full_fml_namecharacterHome team probable pitcher full fml name.
teams_home_probable_pitcher_full_lfm_namecharacterHome team probable pitcher full lfm name.
teams_home_probable_pitcher_strike_zone_topnumericHome team probable pitcher strike zone top.
teams_home_probable_pitcher_strike_zone_bottomnumericHome team probable pitcher strike zone bottom.
teams_home_split_squadlogicalHome team split squad.
teams_home_series_numberintegerHome team series number.
teams_home_spring_league_idintegerHome team spring league id.
teams_home_spring_league_namecharacterHome team spring league name.
teams_home_spring_league_linkcharacterHome team spring league link.
teams_home_spring_league_abbreviationcharacterHome team spring league abbreviation.
linescore_scheduled_inningsintegerLinescore scheduled innings.
linescore_inningscharacterLinescore innings.
linescore_defense_team_idintegerLinescore defense team id.
linescore_defense_team_namecharacterLinescore defense team name.
linescore_defense_team_linkcharacterLinescore defense team link.
linescore_offense_team_idintegerLinescore offense team id.
linescore_offense_team_namecharacterLinescore offense team name.
linescore_offense_team_linkcharacterLinescore offense team link.
venue_idintegerMLBAM venue id.
venue_namecharacterBallpark name.
venue_linkcharacterVenue link.
content_linkcharacterContent link.

return_parsed=False — the raw JSON Dict payload, unparsed.

Example​

mlb_statcast_schedule()

Last validated n/a.