Multi-table

Plate appearances

Use for plate-appearance play-by-play: a whole game in order, or a batter's, pitcher's or team's season, with the base-out state before, the result, the batted ball (trajectory and location), runs, the win probability after (2019 on) and our run value (RE24). Filter by result, inning or runners in scoring position. Costs 10 credits.

post/v1/get_plate_appearances

Request

  • Base URL: https://mcp.fastballapi.com
  • URL: https://mcp.fastballapi.com/v1/get_plate_appearances
  • Auth: one of:
    • API key in header x-api-key
    • HTTP bearer

Request body

game_idstring
batter_idstring
pitcher_idstring
teamstring

Batting team (id or abbreviation).

season_type'regular' | 'postseason'
resultstring

e.g. home-run, strikeout, walk, single, double, ground-out.

inninginteger
rispboolean

Runners in scoring position only.

limitinteger

Max rows (default 200).

offsetinteger
league'mlb' | 'ncaabase'

League. Defaults to mlb. One of: mlb, ncaabase.

Response

The result, wrapped in data.

Changes

No recorded changes to this operation across all 1 revision of this API.