Skip to main content
POST
Get pitch type summary

Request contract

  • Method and path: POST /apis/v1/baseballsavant-mlb-com/baseball-statcast/get-pitch-type-summary
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/baseballsavant-mlb-com/baseball-statcast/get-pitch-type-summary
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

Usage-based pricing. Default request estimate: $0.0005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
player_id
number
required

MLBAM player id (the player_id returned by search_players, also used by MLB.com and statsapi.mlb.com).

Provider reference: minimum 1.

season
number
required

Season year. Statcast pitch tracking starts in 2015; the pitch-level search covers 2008 onward.

Provider reference: minimum 2008; maximum 2100.

end_date
string

Optional last game date inside the season. Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$.

player_type
string
default:batter

batter (default) or pitcher.

Provider reference: allowed values ["batter", "pitcher"]; default "batter".

start_date
string

Optional first game date inside the season. Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$.

Response

Per-pitch-type Statcast aggregates for one batter or pitcher (/player/pitch_types): usage, results (BA/SLG/wOBA and expected versions), plate discipline (swings, whiffs, K%, BB%), batted-ball quality (hard-hit %, barrels, exit velocity) and run value, for a season or a date window inside it. An existing player with no data returns an empty list; an unknown id is not_found.

The response contains the tool result directly.

The provider identifies pitch_types as the primary payload key.

These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.