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

# Get pitch type summary

> A compact pitch-mix / pitch-outcome profile for a known `player_id` without pulling every pitch.

## 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](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.get-pitch-type-summary",
  "method": "POST",
  "path": "/apis/v1/baseballsavant-mlb-com/baseball-statcast/get-pitch-type-summary",
  "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": {
              "player_id": 592450,
              "season": 2026
            }
          }
        },
        "schema": {
          "additionalProperties": true,
          "properties": {
            "end_date": {
              "description": "Optional last game date inside the season. Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$.",
              "type": "string",
              "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"
            },
            "player_type": {
              "default": "batter",
              "description": "`batter` (default) or `pitcher`.\n\nProvider reference: allowed values [\"batter\", \"pitcher\"]; default \"batter\".",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body",
                "oneOf": [
                  "batter",
                  "pitcher"
                ]
              }
            },
            "season": {
              "description": "Season year. Statcast pitch tracking starts in 2015; the pitch-level search covers 2008 onward.\n\nProvider reference: minimum 2008; maximum 2100.",
              "type": "number"
            },
            "start_date": {
              "description": "Optional first game date inside the season. Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            }
          },
          "required": [
            "player_id",
            "season"
          ],
          "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/get-pitch-type-summary
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/get-pitch-type-summary:
    post:
      tags:
        - MLB Baseball Savant
      summary: Get pitch type summary
      description: >-
        A compact pitch-mix / pitch-outcome profile for a known `player_id`
        without pulling every pitch.
      operationId: baseballsavant-mlb-com.baseball-statcast.get-pitch-type-summary
      requestBody:
        content:
          application/json:
            examples:
              provider:
                summary: >-
                  Official provider example; checked against AIsa request
                  constraints
                value:
                  player_id: 592450
                  season: 2026
            schema:
              additionalProperties: true
              properties:
                end_date:
                  description: >-
                    Optional last game date inside the season. Pattern:
                    ^[0-9]{4}-[0-9]{2}-[0-9]{2}$.
                  type: string
                  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
                player_type:
                  default: batter
                  description: >-
                    `batter` (default) or `pitcher`.


                    Provider reference: allowed values ["batter", "pitcher"];
                    default "batter".
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                    oneOf:
                      - batter
                      - pitcher
                season:
                  description: >-
                    Season year. Statcast pitch tracking starts in 2015; the
                    pitch-level search covers 2008 onward.


                    Provider reference: minimum 2008; maximum 2100.
                  type: number
                start_date:
                  description: >-
                    Optional first game date inside the season. Pattern:
                    ^[0-9]{4}-[0-9]{2}-[0-9]{2}$.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
              required:
                - player_id
                - season
              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: 10
                    end_date: null
                    observed_at_ms: 1791156862497
                    pitch_types:
                      - at_bats: 50
                        avg_exit_velocity_mph: 98.6
                        avg_launch_angle_deg: 25.5
                        avg_spin_rate_rpm: 2355
                        avg_velocity_mph: 95.2
                        ba: 0.2
                        babip: 0.25
                        barrel_percent_bbe: 25
                        barrels: 7
                        bb_percent: 16.1
                        doubles: 2
                        fouls: 67
                        hard_hit_percent: 71.42857142857143
                        hit_by_pitch: 2
                        hits: 10
                        home_runs: 4
                        iso: 0.28
                        k_percent: 35.5
                        obp: 0.355
                        pitch_name: 4-Seam Fastball
                        pitch_percent: 25.6
                        pitch_type: FF
                        pitches: 311
                        plate_appearances: 62
                        run_value: 2.065
                        run_value_per_100: 0.663987138
                        singles: 4
                        slg: 0.48
                        strikeouts: 22
                        swings: 132
                        takes: 179
                        triples: 0
                        walks: 10
                        whiff_percent: 28
                        whiffs: 37
                        woba: 0.366
                        xba: 0.256
                        xobp: 0.4
                        xslg: 0.601
                        xwoba: 0.425
                      - at_bats: 40
                        avg_exit_velocity_mph: 92.2
                        avg_launch_angle_deg: 9.2
                        avg_spin_rate_rpm: 2468
                        avg_velocity_mph: 86.8
                        ba: 0.175
                        babip: 0.24
                        barrel_percent_bbe: 15.384615384615383
                        barrels: 4
                        bb_percent: 6.8
                        doubles: 2
                        fouls: 39
                        hard_hit_percent: 57.692307692307686
                        hit_by_pitch: 0
                        hits: 7
                        home_runs: 1
                        iso: 0.125
                        k_percent: 34.1
                        obp: 0.227
                        pitch_name: Slider
                        pitch_percent: 17.5
                        pitch_type: SL
                        pitches: 213
                        plate_appearances: 44
                        run_value: -2.69
                        run_value_per_100: -1.262910798
                        singles: 4
                        slg: 0.3
                        strikeouts: 15
                        swings: 100
                        takes: 113
                        triples: 0
                        walks: 3
                        whiff_percent: 35
                        whiffs: 35
                        woba: 0.232
                        xba: 0.174
                        xobp: 0.227
                        xslg: 0.345
                        xwoba: 0.248
                      - at_bats: 35
                        avg_exit_velocity_mph: 92
                        avg_launch_angle_deg: -0.4
                        avg_spin_rate_rpm: 2203
                        avg_velocity_mph: 94.3
                        ba: 0.4
                        babip: 0.423
                        barrel_percent_bbe: 17.24137931034483
                        barrels: 5
                        bb_percent: 21.3
                        doubles: 2
                        fouls: 31
                        hard_hit_percent: 58.620689655172406
                        hit_by_pitch: 0
                        hits: 14
                        home_runs: 3
                        iso: 0.314
                        k_percent: 12.8
                        obp: 0.533
                        pitch_name: Sinker
                        pitch_percent: 15.4
                        pitch_type: SI
                        pitches: 188
                        plate_appearances: 47
                        run_value: 7.084
                        run_value_per_100: 3.768085106
                        singles: 9
                        slg: 0.714
                        strikeouts: 6
                        swings: 69
                        takes: 119
                        triples: 0
                        walks: 10
                        whiff_percent: 13
                        whiffs: 9
                        woba: 0.526
                        xba: 0.388
                        xobp: 0.524
                        xslg: 0.731
                        xwoba: 0.524
                      - at_bats: 33
                        avg_exit_velocity_mph: 88.2
                        avg_launch_angle_deg: 5.4
                        avg_spin_rate_rpm: 1760
                        avg_velocity_mph: 84.7
                        ba: 0.121
                        babip: 0.143
                        barrel_percent_bbe: 13.636363636363637
                        barrels: 3
                        bb_percent: 17.5
                        doubles: 1
                        fouls: 22
                        hard_hit_percent: 36.36363636363637
                        hit_by_pitch: 0
                        hits: 4
                        home_runs: 1
                        iso: 0.121
                        k_percent: 27.5
                        obp: 0.275
                        pitch_name: Changeup
                        pitch_percent: 13.7
                        pitch_type: CH
                        pitches: 167
                        plate_appearances: 40
                        run_value: 0.26
                        run_value_per_100: 0.155688623
                        singles: 2
                        slg: 0.242
                        strikeouts: 11
                        swings: 71
                        takes: 96
                        triples: 0
                        walks: 7
                        whiff_percent: 38
                        whiffs: 27
                        woba: 0.249
                        xba: 0.19
                        xobp: 0.332
                        xslg: 0.378
                        xwoba: 0.32
                      - at_bats: 24
                        avg_exit_velocity_mph: 93.3
                        avg_launch_angle_deg: 23.7
                        avg_spin_rate_rpm: 2436
                        avg_velocity_mph: 90
                        ba: 0.333
                        babip: 0.5
                        barrel_percent_bbe: 14.285714285714285
                        barrels: 2
                        bb_percent: 7.7
                        doubles: 1
                        fouls: 17
                        hard_hit_percent: 57.14285714285714
                        hit_by_pitch: 0
                        hits: 8
                        home_runs: 2
                        iso: 0.292
                        k_percent: 38.5
                        obp: 0.385
                        pitch_name: Cutter
                        pitch_percent: 9.1
                        pitch_type: FC
                        pitches: 111
                        plate_appearances: 26
                        run_value: 2.55
                        run_value_per_100: 2.297297297
                        singles: 5
                        slg: 0.625
                        strikeouts: 10
                        swings: 55
                        takes: 56
                        triples: 0
                        walks: 2
                        whiff_percent: 43.6
                        whiffs: 24
                        woba: 0.431
                        xba: 0.216
                        xobp: 0.276
                        xslg: 0.428
                        xwoba: 0.303
                      - at_bats: 23
                        avg_exit_velocity_mph: 95.2
                        avg_launch_angle_deg: 25.5
                        avg_spin_rate_rpm: 2570
                        avg_velocity_mph: 82.9
                        ba: 0.174
                        babip: 0.176
                        barrel_percent_bbe: 11.11111111111111
                        barrels: 2
                        bb_percent: 14.8
                        doubles: 2
                        fouls: 9
                        hard_hit_percent: 50
                        hit_by_pitch: 0
                        hits: 4
                        home_runs: 1
                        iso: 0.217
                        k_percent: 18.5
                        obp: 0.296
                        pitch_name: Sweeper
                        pitch_percent: 8.2
                        pitch_type: ST
                        pitches: 100
                        plate_appearances: 27
                        run_value: 1.559
                        run_value_per_100: 1.559
                        singles: 1
                        slg: 0.391
                        strikeouts: 5
                        swings: 37
                        takes: 63
                        triples: 0
                        walks: 4
                        whiff_percent: 27
                        whiffs: 10
                        woba: 0.306
                        xba: 0.253
                        xobp: 0.363
                        xslg: 0.548
                        xwoba: 0.389
                      - at_bats: 16
                        avg_exit_velocity_mph: 98.9
                        avg_launch_angle_deg: 33.1
                        avg_spin_rate_rpm: 2566
                        avg_velocity_mph: 80.1
                        ba: 0.25
                        babip: 0.4
                        barrel_percent_bbe: 42.857142857142854
                        barrels: 3
                        bb_percent: 11.1
                        doubles: 0
                        fouls: 10
                        hard_hit_percent: 71.42857142857143
                        hit_by_pitch: 0
                        hits: 4
                        home_runs: 2
                        iso: 0.375
                        k_percent: 50
                        obp: 0.333
                        pitch_name: Curveball
                        pitch_percent: 6
                        pitch_type: CU
                        pitches: 73
                        plate_appearances: 18
                        run_value: 2.624
                        run_value_per_100: 3.594520548
                        singles: 2
                        slg: 0.625
                        strikeouts: 9
                        swings: 32
                        takes: 41
                        triples: 0
                        walks: 2
                        whiff_percent: 46.9
                        whiffs: 15
                        woba: 0.404
                        xba: 0.248
                        xobp: 0.332
                        xslg: 0.604
                        xwoba: 0.393
                      - at_bats: 12
                        avg_exit_velocity_mph: 96.7
                        avg_launch_angle_deg: 21.7
                        avg_spin_rate_rpm: 1403
                        avg_velocity_mph: 86.1
                        ba: 0.333
                        babip: 0.5
                        barrel_percent_bbe: 50
                        barrels: 3
                        bb_percent: 0
                        doubles: 0
                        fouls: 4
                        hard_hit_percent: 50
                        hit_by_pitch: 0
                        hits: 4
                        home_runs: 2
                        iso: 0.5
                        k_percent: 50
                        obp: 0.333
                        pitch_name: Split-Finger
                        pitch_percent: 3.5
                        pitch_type: FS
                        pitches: 43
                        plate_appearances: 12
                        run_value: 1.706
                        run_value_per_100: 3.96744186
                        singles: 2
                        slg: 0.833
                        strikeouts: 6
                        swings: 25
                        takes: 18
                        triples: 0
                        walks: 0
                        whiff_percent: 60
                        whiffs: 15
                        woba: 0.49
                        xba: 0.316
                        xobp: 0.316
                        xslg: 0.881
                        xwoba: 0.493
                      - at_bats: 3
                        avg_exit_velocity_mph: 109.8
                        avg_launch_angle_deg: 25.7
                        avg_spin_rate_rpm: 2559
                        avg_velocity_mph: 84.6
                        ba: 0.667
                        babip: 0
                        barrel_percent_bbe: 100
                        barrels: 3
                        bb_percent: 0
                        doubles: 0
                        fouls: 1
                        hard_hit_percent: 100
                        hit_by_pitch: 0
                        hits: 2
                        home_runs: 2
                        iso: 2
                        k_percent: 0
                        obp: 0.667
                        pitch_name: Knuckle Curve
                        pitch_percent: 0.5
                        pitch_type: KC
                        pitches: 6
                        plate_appearances: 3
                        run_value: 1.925
                        run_value_per_100: 32.083333333
                        singles: 0
                        slg: 2.667
                        strikeouts: 0
                        swings: 4
                        takes: 2
                        triples: 0
                        walks: 0
                        whiff_percent: 0
                        whiffs: 0
                        woba: 1.366
                        xba: 0.91
                        xobp: 0.91
                        xslg: 3.27
                        xwoba: 1.715
                      - at_bats: 1
                        avg_exit_velocity_mph: null
                        avg_launch_angle_deg: null
                        avg_spin_rate_rpm: 2245
                        avg_velocity_mph: 83
                        ba: 0
                        babip: null
                        barrel_percent_bbe: null
                        barrels: null
                        bb_percent: 0
                        doubles: 0
                        fouls: 1
                        hard_hit_percent: null
                        hit_by_pitch: 0
                        hits: 0
                        home_runs: 0
                        iso: 0
                        k_percent: 100
                        obp: 0
                        pitch_name: Slurve
                        pitch_percent: 0.4
                        pitch_type: SV
                        pitches: 5
                        plate_appearances: 1
                        run_value: -0.188
                        run_value_per_100: -3.76
                        singles: 0
                        slg: 0
                        strikeouts: 1
                        swings: 2
                        takes: 3
                        triples: 0
                        walks: 0
                        whiff_percent: 50
                        whiffs: 1
                        woba: 0
                        xba: null
                        xobp: null
                        xslg: null
                        xwoba: 0
                    player_id: 592450
                    player_name: Judge, Aaron
                    player_type: batter
                    season: 2026
                    source_url: >-
                      https://baseballsavant.mlb.com/player/pitch_types?warehouse=true&hfPT=&hfGT=R%7C&hfSea=2026%7C&player_type=batter&batters_lookup%5B%5D=592450&hfTeam=&game_date_gt=&game_date_lt=&group_by=name-event&min_pitches=0&min_results=0&min_pas=0&player_event_sort=api_p_release_speed&sort_order=desc&player_id=592450&minors=false&wbc=false
                    start_date: null
                    total_pitches: 1217
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            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.


            | Documented field | Provider type | Description |

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

            | `at_bats` | number |  |

            | `avg_exit_velocity_mph` | number |  |

            | `avg_launch_angle_deg` | number |  |

            | `avg_spin_rate_rpm` | number |  |

            | `avg_velocity_mph` | number | Average pitch velocity. |

            | `ba` | number |  |

            | `babip` | number |  |

            | `barrel_percent_bbe` | number | Barrels per batted-ball event,
            percent. |

            | `barrels` | number |  |

            | `bb_percent` | number |  |

            | `doubles` | number |  |

            | `fouls` | number |  |

            | `hard_hit_percent` | number |  |

            | `hit_by_pitch` | number |  |

            | `hits` | number |  |

            | `home_runs` | number |  |

            | `iso` | number |  |

            | `k_percent` | number |  |

            | `obp` | number |  |

            | `pitch_name` | string |  |

            | `pitch_percent` | number | Share of all pitches seen/thrown. |

            | `pitch_type` | string |  |

            | `pitches` | number | Pitches of this type in the window. |

            | `plate_appearances` | number |  |

            | `run_value` | number | Run value from the searched player's
            perspective (batter: runs added; pitcher: runs saved). |

            | `run_value_per_100` | number |  |

            | `singles` | number |  |

            | `slg` | number |  |

            | `strikeouts` | number |  |

            | `swings` | number |  |

            | `takes` | number |  |

            | `triples` | number |  |

            | `walks` | number |  |

            | `whiff_percent` | number | Whiffs per swing, percent. |

            | `whiffs` | number |  |

            | `woba` | number |  |

            | `xba` | number |  |

            | `xobp` | number |  |

            | `xslg` | number |  |

            | `xwoba` | number |  |



            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.