> ## Documentation Index
> Fetch the complete documentation index at: https://aisa.one/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# Search statcast

> Statcast pitch-level data for a known `player_id` (or team abbreviation) in a date window; narrow the window or add `pitch_types` to keep results small.

## 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](https://aisa.one/docs/openapi/baseballsavant-mlb-com.json)

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "baseballsavant-mlb-com.baseball-statcast.search-statcast",
  "method": "POST",
  "path": "/apis/v1/baseballsavant-mlb-com/baseball-statcast/search-statcast",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "requestBody": {
    "content": {
      "application/json": {
        "examples": {
          "provider": {
            "summary": "Official provider example; checked against AIsa request constraints",
            "value": {
              "end_date": "2026-05-08",
              "limit": 5,
              "player_id": 592450,
              "start_date": "2026-05-08"
            }
          }
        },
        "schema": {
          "additionalProperties": true,
          "properties": {
            "cursor": {
              "description": "Continuation cursor from a previous response's `next_cursor`; send it with the same other inputs to get the next page.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "end_date": {
              "description": "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}$.",
              "type": "string"
            },
            "game_type": {
              "default": "R",
              "description": "`R` regular season (default), `F` wild card, `D` division series, `L` league championship, `W` World Series, `S` spring training.\n\nProvider reference: allowed values [\"R\", \"F\", \"D\", \"L\", \"W\", \"S\"]; default \"R\".",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body",
                "oneOf": [
                  "R",
                  "F",
                  "D",
                  "L",
                  "W",
                  "S"
                ]
              }
            },
            "limit": {
              "default": 200,
              "description": "Maximum rows per page (default 200, max 1000).\n\nProvider reference: minimum 1; maximum 1000; default 200.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "max": 1000,
                "min": 1
              }
            },
            "pitch_types": {
              "description": "Statcast pitch codes to keep (FF, SI, FC, SL, ST, SV, CU, KC, CH, FS, KN, ...).",
              "items": {
                "type": "string"
              },
              "type": "array",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "player_id": {
              "description": "MLBAM player id (the `player_id` returned by `search_players`, also used by MLB.com and statsapi.mlb.com).\n\nProvider reference: minimum 1.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "min": 1
              }
            },
            "player_type": {
              "default": "batter",
              "description": "`batter` searches by the batter, `pitcher` by the pitcher (default `batter`).\n\nProvider reference: allowed values [\"batter\", \"pitcher\"]; default \"batter\".",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body",
                "oneOf": [
                  "batter",
                  "pitcher"
                ]
              }
            },
            "start_date": {
              "description": "First game date, YYYY-MM-DD. Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$.",
              "type": "string"
            },
            "team": {
              "description": "Team abbreviation as Savant uses it (e.g. `NYY`); filters the batting or fielding team per `player_type`. Pattern: ^[A-Z]{2,3}$.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            }
          },
          "required": [
            "end_date",
            "start_date"
          ],
          "type": "object"
        }
      }
    },
    "required": true
  },
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## 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.


## OpenAPI

````yaml openapi/baseballsavant-mlb-com.json POST /apis/v1/baseballsavant-mlb-com/baseball-statcast/search-statcast
openapi: 3.1.0
info:
  description: ''
  title: MLB Baseball Savant
  version: '1'
  x-aisa-capabilities:
    idempotency: Idempotency-Key
    max_price: X-AISA-Max-Price-USD
    quote:
      header: X-AISA-Cost-Mode
      value: quote
  x-aisa-catalogs:
    baseballsavant-mlb-com:
      description: ''
      title: MLB Baseball Savant
      x-aisa-capabilities:
        idempotency: Idempotency-Key
        max_price: X-AISA-Max-Price-USD
        quote:
          header: X-AISA-Cost-Mode
          value: quote
      x-aisa-document:
        facts_hash: f76c1bb65eeccf17f3f2ebf23d2f38571a7a5ab6c61c669c28a1e089508b5e07
        generator_version: '3'
        protocol_version: '1'
        schema_version: '1'
        seed_month: 2026-10
      x-aisa-plans:
        builder: 1
        display_plan: payg
        payg: 1
        similarweb_payg: 1
        team: 1
        version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-configured-paths:
    - /apis/v1/baseballsavant-mlb-com/baseball-statcast/get-leaderboard
    - /apis/v1/baseballsavant-mlb-com/baseball-statcast/get-pitch-type-summary
    - /apis/v1/baseballsavant-mlb-com/baseball-statcast/get-player
    - /apis/v1/baseballsavant-mlb-com/baseball-statcast/get-player-gamelogs
    - /apis/v1/baseballsavant-mlb-com/baseball-statcast/get-schedule
    - /apis/v1/baseballsavant-mlb-com/baseball-statcast/search-players
    - /apis/v1/baseballsavant-mlb-com/baseball-statcast/search-statcast
    - /apis/v1/baseballsavant-mlb-com/baseball-statcast/trending-players
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:b56d2fa0c6d4918ed98d5bf9e887a3bf9be9375a7042dd488ed698e902d796ac
    facts_hash: f76c1bb65eeccf17f3f2ebf23d2f38571a7a5ab6c61c669c28a1e089508b5e07
    generator_version: '3'
    protocol_version: '1'
    response_pending: []
    schema_version: '1'
    seed_month: 2026-10
  x-aisa-plans:
    builder: 1
    display_plan: payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: baseballsavant-mlb-com
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/baseballsavant-mlb-com/baseball-statcast/search-statcast:
    post:
      tags:
        - MLB Baseball Savant
      summary: Search statcast
      description: >-
        Statcast pitch-level data for a known `player_id` (or team abbreviation)
        in a date window; narrow the window or add `pitch_types` to keep results
        small.
      operationId: baseballsavant-mlb-com.baseball-statcast.search-statcast
      requestBody:
        content:
          application/json:
            examples:
              provider:
                summary: >-
                  Official provider example; checked against AIsa request
                  constraints
                value:
                  end_date: '2026-05-08'
                  limit: 5
                  player_id: 592450
                  start_date: '2026-05-08'
            schema:
              additionalProperties: true
              properties:
                cursor:
                  description: >-
                    Continuation cursor from a previous response's
                    `next_cursor`; send it with the same other inputs to get the
                    next page.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                end_date:
                  description: >-
                    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}$.
                  type: string
                game_type:
                  default: R
                  description: >-
                    `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".
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                    oneOf:
                      - R
                      - F
                      - D
                      - L
                      - W
                      - S
                limit:
                  default: 200
                  description: |-
                    Maximum rows per page (default 200, max 1000).

                    Provider reference: minimum 1; maximum 1000; default 200.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    max: 1000
                    min: 1
                pitch_types:
                  description: >-
                    Statcast pitch codes to keep (FF, SI, FC, SL, ST, SV, CU,
                    KC, CH, FS, KN, ...).
                  items:
                    type: string
                  type: array
                  x-alexandria-option-metadata:
                    in: body
                player_id:
                  description: >-
                    MLBAM player id (the `player_id` returned by
                    `search_players`, also used by MLB.com and
                    statsapi.mlb.com).


                    Provider reference: minimum 1.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    min: 1
                player_type:
                  default: batter
                  description: >-
                    `batter` searches by the batter, `pitcher` by the pitcher
                    (default `batter`).


                    Provider reference: allowed values ["batter", "pitcher"];
                    default "batter".
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                    oneOf:
                      - batter
                      - pitcher
                start_date:
                  description: >-
                    First game date, YYYY-MM-DD. Pattern:
                    ^[0-9]{4}-[0-9]{2}-[0-9]{2}$.
                  type: string
                team:
                  description: >-
                    Team abbreviation as Savant uses it (e.g. `NYY`); filters
                    the batting or fielding team per `player_type`. Pattern:
                    ^[A-Z]{2,3}$.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
              required:
                - end_date
                - start_date
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              examples:
                provider:
                  description: Published by the provider on 2026-10-04.
                  summary: Official provider example
                  value:
                    count: 5
                    next_cursor: '5'
                    observed_at_ms: 1791156857514
                    pitches:
                      - arm_angle_deg: 29.6
                        at_bat_number: 3
                        away_score: 0
                        away_team: NYY
                        balls: 1
                        bat_speed_mph: 78.3
                        batter_id: 592450
                        bb_type: line_drive
                        delta_home_win_exp: 0.007
                        delta_run_exp: -0.184
                        description: hit_into_play
                        estimated_ba: 0.331
                        estimated_slg: 0.619
                        estimated_woba: 0.401
                        events: field_out
                        game_date: '2026-05-08'
                        game_pk: 823794
                        game_year: 2026
                        hit_distance_ft: 309
                        home_score: 0
                        home_team: MIL
                        inning: 1
                        inning_half: Top
                        launch_angle_deg: 20
                        launch_speed_mph: 99.2
                        outs_when_up: 2
                        p_throws: R
                        pfx_x_ft: -1.07
                        pfx_z_ft: 1.34
                        pitch_name: 4-Seam Fastball
                        pitch_number: 4
                        pitch_type: FF
                        pitcher_id: 694819
                        plate_x_ft: -0.35794275582673185
                        plate_z_ft: 2.093973646259121
                        play_description: Aaron Judge lines out to right fielder Sal Frelick.
                        player_name: Judge, Aaron
                        release_extension_ft: 7.4
                        release_speed_mph: 103.6
                        release_spin_rate_rpm: 2703
                        result_type: X
                        stand: R
                        strikes: 2
                        sv_id: null
                        swing_length_ft: 8.1
                        woba_value: 0
                        zone: 7
                      - arm_angle_deg: 28.7
                        at_bat_number: 3
                        away_score: 0
                        away_team: NYY
                        balls: 0
                        bat_speed_mph: 77.6
                        batter_id: 592450
                        bb_type: null
                        delta_home_win_exp: 0.002
                        delta_run_exp: -0.062
                        description: foul
                        estimated_ba: null
                        estimated_slg: null
                        estimated_woba: null
                        events: null
                        game_date: '2026-05-08'
                        game_pk: 823794
                        game_year: 2026
                        hit_distance_ft: 220
                        home_score: 0
                        home_team: MIL
                        inning: 1
                        inning_half: Top
                        launch_angle_deg: 43
                        launch_speed_mph: 74.3
                        outs_when_up: 2
                        p_throws: R
                        pfx_x_ft: -1.05
                        pfx_z_ft: 1.23
                        pitch_name: 4-Seam Fastball
                        pitch_number: 2
                        pitch_type: FF
                        pitcher_id: 694819
                        plate_x_ft: -0.30442126217486654
                        plate_z_ft: 2.6396527197019664
                        play_description: null
                        player_name: Judge, Aaron
                        release_extension_ft: 7.6
                        release_speed_mph: 103.5
                        release_spin_rate_rpm: 2640
                        result_type: S
                        stand: R
                        strikes: 1
                        sv_id: null
                        swing_length_ft: 7.7
                        woba_value: null
                        zone: 4
                      - arm_angle_deg: 29.5
                        at_bat_number: 3
                        away_score: 0
                        away_team: NYY
                        balls: 0
                        bat_speed_mph: null
                        batter_id: 592450
                        bb_type: null
                        delta_home_win_exp: 0.002
                        delta_run_exp: -0.046
                        description: called_strike
                        estimated_ba: null
                        estimated_slg: null
                        estimated_woba: null
                        events: null
                        game_date: '2026-05-08'
                        game_pk: 823794
                        game_year: 2026
                        hit_distance_ft: null
                        home_score: 0
                        home_team: MIL
                        inning: 1
                        inning_half: Top
                        launch_angle_deg: null
                        launch_speed_mph: null
                        outs_when_up: 2
                        p_throws: R
                        pfx_x_ft: -0.97
                        pfx_z_ft: 1.21
                        pitch_name: 4-Seam Fastball
                        pitch_number: 1
                        pitch_type: FF
                        pitcher_id: 694819
                        plate_x_ft: -0.655273179372026
                        plate_z_ft: 2.1942968523895026
                        play_description: null
                        player_name: Judge, Aaron
                        release_extension_ft: 7.6
                        release_speed_mph: 103.3
                        release_spin_rate_rpm: 2667
                        result_type: S
                        stand: R
                        strikes: 0
                        sv_id: null
                        swing_length_ft: null
                        woba_value: null
                        zone: 7
                      - arm_angle_deg: 31.2
                        at_bat_number: 3
                        away_score: 0
                        away_team: NYY
                        balls: 0
                        bat_speed_mph: null
                        batter_id: 592450
                        bb_type: null
                        delta_home_win_exp: -0.001
                        delta_run_exp: 0.029
                        description: ball
                        estimated_ba: null
                        estimated_slg: null
                        estimated_woba: null
                        events: null
                        game_date: '2026-05-08'
                        game_pk: 823794
                        game_year: 2026
                        hit_distance_ft: null
                        home_score: 0
                        home_team: MIL
                        inning: 1
                        inning_half: Top
                        launch_angle_deg: null
                        launch_speed_mph: null
                        outs_when_up: 2
                        p_throws: R
                        pfx_x_ft: -0.88
                        pfx_z_ft: 1.45
                        pitch_name: 4-Seam Fastball
                        pitch_number: 3
                        pitch_type: FF
                        pitcher_id: 694819
                        plate_x_ft: 0.7647939847092927
                        plate_z_ft: 1.5864706073251795
                        play_description: null
                        player_name: Judge, Aaron
                        release_extension_ft: 7.8
                        release_speed_mph: 103.1
                        release_spin_rate_rpm: 2754
                        result_type: B
                        stand: R
                        strikes: 2
                        sv_id: null
                        swing_length_ft: null
                        woba_value: null
                        zone: 14
                      - arm_angle_deg: 31.2
                        at_bat_number: 44
                        away_score: 0
                        away_team: NYY
                        balls: 1
                        bat_speed_mph: 70.5
                        batter_id: 592450
                        bb_type: null
                        delta_home_win_exp: 0.01
                        delta_run_exp: -0.179
                        description: swinging_strike
                        estimated_ba: null
                        estimated_slg: null
                        estimated_woba: 0
                        events: strikeout
                        game_date: '2026-05-08'
                        game_pk: 823794
                        game_year: 2026
                        hit_distance_ft: null
                        home_score: 5
                        home_team: MIL
                        inning: 6
                        inning_half: Top
                        launch_angle_deg: null
                        launch_speed_mph: null
                        outs_when_up: 1
                        p_throws: R
                        pfx_x_ft: -0.99
                        pfx_z_ft: 1.25
                        pitch_name: 4-Seam Fastball
                        pitch_number: 4
                        pitch_type: FF
                        pitcher_id: 694819
                        plate_x_ft: 0.8239812581726247
                        plate_z_ft: 2.649560513634593
                        play_description: Aaron Judge strikes out swinging.
                        player_name: Judge, Aaron
                        release_extension_ft: 7.7
                        release_speed_mph: 102.4
                        release_spin_rate_rpm: 2736
                        result_type: S
                        stand: R
                        strikes: 2
                        sv_id: null
                        swing_length_ft: 6.7
                        woba_value: 0
                        zone: 6
                    query:
                      end_date: '2026-05-08'
                      game_type: R
                      pitch_types: []
                      player_id: 592450
                      player_type: batter
                      season: 2026
                      start_date: '2026-05-08'
                      team: null
                    source_url: >-
                      https://baseballsavant.mlb.com/statcast_search/csv?hfPT=&hfGT=R%7C&hfSea=2026%7C&player_type=batter&batters_lookup%5B%5D=592450&hfTeam=&game_date_gt=2026-05-08&game_date_lt=2026-05-08&group_by=name-event&min_pitches=0&min_results=0&min_pas=0&player_event_sort=api_p_release_speed&sort_order=desc&type=details&all=true&minors=false&wbc=false
                    total: 13
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            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.


            | Documented field | Provider type | Description |

            | --- | --- | --- |

            | `arm_angle_deg` | number |  |

            | `at_bat_number` | number |  |

            | `away_score` | number |  |

            | `away_team` | string |  |

            | `balls` | number |  |

            | `bat_speed_mph` | number |  |

            | `batter_id` | number |  |

            | `bb_type` | string | Batted-ball type: `ground_ball`,
            `line_drive`, `fly_ball`, `popup`; null when not in play. |

            | `delta_home_win_exp` | number |  |

            | `delta_run_exp` | number |  |

            | `description` | string | Pitch outcome, e.g. `called_strike`,
            `hit_into_play`. |

            | `estimated_ba` | number | xBA of the batted ball. |

            | `estimated_slg` | number |  |

            | `estimated_woba` | number |  |

            | `events` | string | Plate-appearance result on the final pitch
            (e.g. `home_run`); null on other pitches. |

            | `game_date` | string | YYYY-MM-DD. |

            | `game_pk` | number |  |

            | `game_year` | number |  |

            | `hit_distance_ft` | number |  |

            | `home_score` | number |  |

            | `home_team` | string |  |

            | `inning` | number |  |

            | `inning_half` | string | `Top` or `Bot`. |

            | `launch_angle_deg` | number |  |

            | `launch_speed_mph` | number |  |

            | `outs_when_up` | number |  |

            | `p_throws` | string | Pitcher hand `R`/`L`. |

            | `pfx_x_ft` | number | Horizontal movement, feet, catcher's view. |

            | `pfx_z_ft` | number | Vertical movement, feet. |

            | `pitch_name` | string |  |

            | `pitch_number` | number | Pitch number within the plate
            appearance. |

            | `pitch_type` | string | Statcast pitch code (FF, SL, ...). |

            | `pitcher_id` | number |  |

            | `plate_x_ft` | number |  |

            | `plate_z_ft` | number |  |

            | `play_description` | string | Play-by-play sentence; null on
            non-final pitches. |

            | `player_name` | string | The searched player as `Last, First`. |

            | `release_extension_ft` | number |  |

            | `release_speed_mph` | number |  |

            | `release_spin_rate_rpm` | number |  |

            | `result_type` | string | `B` ball, `S` strike, `X` in play. |

            | `stand` | string | Batter side `R`/`L`. |

            | `strikes` | number |  |

            | `sv_id` | string | Statcast tracking id of the pitch when present.
            |

            | `swing_length_ft` | number |  |

            | `woba_value` | number |  |

            | `zone` | number | Statcast zone 1-14. |



            These are the provider's documented fields. Field requiredness,
            nullability and nested object structures are specified only where
            the descriptions explicitly say so.
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
components:
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.