mlb_playbyplay
Get a complete pitch-by-pitch account of any MLB game: each plate appearance's result, pitch counts, runners, and scoring-play flags. Use with a game ID to analyze plays.
Instructions
Pitch-by-pitch / play-by-play log — every plate appearance with result, pitches, counts, runners and scoring-play flags.
Returns: {allPlays:[{result, about:{inning,halfInning,isScoringPlay}, matchup:{batter,pitcher}, playEvents:[...], count}], scoringPlays, currentPlay}
Auth: none needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gamePk | Yes | Game id. Required — part of the URL path. | |
| timecode | No | Point-in-time snapshot (YYYYMMDD_HHMMSS). |