Skip to main content
POST
Search statcast

Request contract

  • Method and path: POST /apis/v1/baseballsavant-mlb-com/baseball-statcast/search-statcast
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/baseballsavant-mlb-com/baseball-statcast/search-statcast
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
end_date
string
required

Last game date, YYYY-MM-DD; same season as start_date, at most 31 days later. Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$.

start_date
string
required

First game date, YYYY-MM-DD. Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$.

cursor
string

Continuation cursor from a previous response's next_cursor; send it with the same other inputs to get the next page.

game_type
string
default:R

R regular season (default), F wild card, D division series, L league championship, W World Series, S spring training.

Provider reference: allowed values ["R", "F", "D", "L", "W", "S"]; default "R".

limit
number
default:200

Maximum rows per page (default 200, max 1000).

Provider reference: minimum 1; maximum 1000; default 200.

pitch_types
string[]

Statcast pitch codes to keep (FF, SI, FC, SL, ST, SV, CU, KC, CH, FS, KN, ...).

player_id
number

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

Provider reference: minimum 1.

player_type
string
default:batter

batter searches by the batter, pitcher by the pitcher (default batter).

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

team
string

Team abbreviation as Savant uses it (e.g. NYY); filters the batting or fielding team per player_type. Pattern: ^[A-Z]{2,3}$.

Response

Pitch-by-pitch Statcast search (/statcast_search/csv, the site's CSV export) for one batter or pitcher, or one team, over a date window of at most 31 days in one season: pitch type, velocity, spin, movement, location, count, result, and batted-ball metrics (exit velocity, launch angle, distance, xBA/xwOBA, bat speed). Rows are returned as the site orders them and paged with limit/cursor. The export has no play UUID; use get_player_gamelogs for play_id.

The response contains the tool result directly.

The provider identifies pitches 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.