MLB

Get a single at_bat by id

get/api/v1/mlb/at_bats/{id}

Request

  • Base URL: https://api.stat-api.com
  • URL: https://api.stat-api.com/api/v1/mlb/at_bats/{id}
  • Auth: HTTP bearer

Path parameters

idinteger required

Primary Key

Primary key (id) of the at_bats row.

Response

Single at_bats row.

at_bat_numberinteger required
ballsinteger required
bat_sidestring nullable

Batter side for this matchup (L/R) — per-PA truth, resolves switch hitters

batter_idinteger required
end_outsinteger required
end_runnersinteger required
end_timestring date-time nullable

Wall-clock end of the plate appearance, as the league records it

expected_batting_avgnumber double nullable
expected_wobanumber double nullable
game_idinteger required
hit_coord_xnumber float nullable
hit_coord_ynumber float nullable
hit_distanceinteger nullable
hit_exit_velocitynumber float nullable
hit_launch_anglenumber float nullable
hit_locationstring nullable
hit_typestring nullable
idinteger required

Primary Key

inning_idinteger required
is_barrelboolean nullable
is_flare_burnerboolean nullable

Launch angle 10-25 AND exit velocity < 95

is_hard_hitboolean nullable
is_solid_contactboolean nullable

Launch angle 20-25 AND exit velocity 95-100

is_sweet_spotboolean nullable

Launch angle between 8-32 degrees

is_toppedboolean nullable

Launch angle < 10 AND exit velocity < 90

is_underboolean nullable

Launch angle less than 10 degrees

launch_speed_angle_zoneinteger nullable
pitch_countinteger required
pitch_handstring nullable

Pitcher hand for this matchup (L/R)

pitcher_idinteger required
resultstring required
runs_scoredinteger required
spray_anglenumber float nullable

Horizontal angle from center field (degrees)

start_outsinteger required
start_runnersinteger required
start_timestring date-time nullable

Wall-clock start of the plate appearance, as the league records it

statcast_quality_scorenumber double nullable

Statcast data quality score (0.0-1.0)

strikesinteger required
tracking_confidencenumber double nullable

Confidence in tracking data accuracy

Changes

No recorded changes to this operation across all 3 revisions of this API.