Multi-table

Spray chart

Use for where a batter or team hits the ball: balls in play by trajectory (ground ball, line drive, fly ball, pop-up) and by field (left, center, right), with hit rates; include_balls adds each ball's location for drawing. Counts the regular season and postseason together unless season_type says otherwise (get_player's batting line is the regular season alone). Costs 10 credits.

post/v1/get_spray_chart

Request

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

Request body

batter_idstring
teamstring
include_ballsboolean

Add each ball in play's x/y (up to 3,000).

season_type'regular' | 'postseason' | 'all'

regular, postseason, or all (default): which games' balls in play to count.

Response

The result, wrapped in data.

Changes

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