Documentation/Games
GET /v1/{league}/games/{id}/plays | Baseball Data API
Every plate appearance of one game in order, with the pitches where they were recorded.Free keyMCP tool: get_plays
GEThttps://api.baseballapi.net/v1/{league}/games/{id}/plays
Try it
Returns
| Field | What it holds |
|---|---|
seq | integer: order in the game, from 1 |
inning | integer |
half | string: top or bottom |
batter | object: id (pl_..., where held) and name |
pitcher | object: id and name |
outs_before | integer or null |
balls | integer or null |
strikes | integer or null: the final count |
pitches | array or null: each pitch as ball, called_strike, swinging_strike, foul, in_play, hit_by_pitch or other |
result | string: single, double, triple, home_run, walk, intentional_walk, strikeout, hit_by_pitch, out, error, fielders_choice, sacrifice, catcher_interference or other |
batted_ball | string or null: ground, line, fly or popup |
runs | integer: runs scored on the play |
rbi | integer or null |
away_score | integer or null |
home_score | integer or null: the score after the play |
Example answer
The example is being collected; it appears here once the daily sample job has run.
Errors
Every endpoint can answer unauthorized, unknown_parameter, rate_limited, quota_exceeded and server_error, and not_found for an id or league that is not ours. See Errors.