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

> Per-plate-appearance detail for a known `player_id` and season; take `play_id` or `game_pk` into further lookups.

## Request contract

* **Method and path:** POST /apis/v1/baseballsavant-mlb-com/baseball-statcast/get-player-gamelogs
* **Availability:** enabled
* **Request URL template:** `https://api.aisa.one/apis/v1/baseballsavant-mlb-com/baseball-statcast/get-player-gamelogs`

[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-player-gamelogs",
  "method": "POST",
  "path": "/apis/v1/baseballsavant-mlb-com/baseball-statcast/get-player-gamelogs",
  "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": {
              "limit": 5,
              "player_id": 592450,
              "season": 2026
            }
          }
        },
        "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"
              }
            },
            "limit": {
              "default": 100,
              "description": "Maximum rows per page (default 100, max 500).\n\nProvider reference: minimum 1; maximum 500; default 100.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "max": 500,
                "min": 1
              }
            },
            "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"
            },
            "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"
            }
          },
          "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-player-gamelogs
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-player-gamelogs:
    post:
      tags:
        - MLB Baseball Savant
      summary: Get player gamelogs
      description: >-
        Per-plate-appearance detail for a known `player_id` and season; take
        `play_id` or `game_pk` into further lookups.
      operationId: baseballsavant-mlb-com.baseball-statcast.get-player-gamelogs
      requestBody:
        content:
          application/json:
            examples:
              provider:
                summary: >-
                  Official provider example; checked against AIsa request
                  constraints
                value:
                  limit: 5
                  player_id: 592450
                  season: 2026
            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
                limit:
                  default: 100
                  description: |-
                    Maximum rows per page (default 100, max 500).

                    Provider reference: minimum 1; maximum 500; default 100.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    max: 500
                    min: 1
                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
                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
              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: 5
                    next_cursor: '5'
                    observed_at_ms: 1791156852469
                    plate_appearances:
                      - at_bat_number: 22
                        ball_in_play: false
                        barrel: null
                        batting_team_id: 147
                        event: strikeout
                        event_label: Strikeout
                        exit_velocity_mph: null
                        fielding_team_id: 142
                        game_date: '2026-09-16'
                        game_pk: 823655
                        hard_hit: false
                        hit_distance_ft: null
                        launch_angle_deg: null
                        opponent_pitcher: Matthews, Zebby
                        pitch_name: 4-Seam Fastball
                        pitch_type: FF
                        pitch_velocity_mph: 96.6
                        play_id: c3d764a7-9199-3756-987a-c4d7b0bf6d8a
                        pull_direction: null
                        video_url: >-
                          https://baseballsavant.mlb.com/sporty-videos?playId=c3d764a7-9199-3756-987a-c4d7b0bf6d8a
                        xba: null
                      - at_bat_number: 3
                        ball_in_play: false
                        barrel: null
                        batting_team_id: 147
                        event: strikeout
                        event_label: Strikeout
                        exit_velocity_mph: null
                        fielding_team_id: 142
                        game_date: '2026-09-16'
                        game_pk: 823655
                        hard_hit: false
                        hit_distance_ft: null
                        launch_angle_deg: null
                        opponent_pitcher: Matthews, Zebby
                        pitch_name: Slider
                        pitch_type: SL
                        pitch_velocity_mph: 88.2
                        play_id: a9fb81ca-254c-3ed8-96e6-e832a596fb42
                        pull_direction: null
                        video_url: >-
                          https://baseballsavant.mlb.com/sporty-videos?playId=a9fb81ca-254c-3ed8-96e6-e832a596fb42
                        xba: null
                      - at_bat_number: 59
                        ball_in_play: true
                        barrel: true
                        batting_team_id: 147
                        event: home_run
                        event_label: Home Run
                        exit_velocity_mph: 104.2
                        fielding_team_id: 142
                        game_date: '2026-09-14'
                        game_pk: 823656
                        hard_hit: true
                        hit_distance_ft: 415
                        launch_angle_deg: 36
                        opponent_pitcher: Minter, A.J.
                        pitch_name: Cutter
                        pitch_type: FC
                        pitch_velocity_mph: 88.6
                        play_id: e38adf60-925c-3f22-a931-17c9e76b5f6a
                        pull_direction: Pull
                        video_url: >-
                          https://baseballsavant.mlb.com/sporty-videos?playId=e38adf60-925c-3f22-a931-17c9e76b5f6a
                        xba: 0.586
                      - at_bat_number: 46
                        ball_in_play: false
                        barrel: null
                        batting_team_id: 147
                        event: strikeout
                        event_label: Strikeout
                        exit_velocity_mph: null
                        fielding_team_id: 142
                        game_date: '2026-09-14'
                        game_pk: 823656
                        hard_hit: false
                        hit_distance_ft: null
                        launch_angle_deg: null
                        opponent_pitcher: Hoffman, Jeff
                        pitch_name: Slider
                        pitch_type: SL
                        pitch_velocity_mph: 86.6
                        play_id: 69547a9e-7be5-3476-96c0-24fefeadb505
                        pull_direction: null
                        video_url: >-
                          https://baseballsavant.mlb.com/sporty-videos?playId=69547a9e-7be5-3476-96c0-24fefeadb505
                        xba: null
                      - at_bat_number: 24
                        ball_in_play: false
                        barrel: null
                        batting_team_id: 147
                        event: strikeout
                        event_label: Strikeout
                        exit_velocity_mph: null
                        fielding_team_id: 142
                        game_date: '2026-09-14'
                        game_pk: 823656
                        hard_hit: false
                        hit_distance_ft: null
                        launch_angle_deg: null
                        opponent_pitcher: Kremer, Dean
                        pitch_name: Cutter
                        pitch_type: FC
                        pitch_velocity_mph: 91.3
                        play_id: c8607f01-76b8-3bfb-8e91-5461b44be381
                        pull_direction: null
                        video_url: >-
                          https://baseballsavant.mlb.com/sporty-videos?playId=c8607f01-76b8-3bfb-8e91-5461b44be381
                        xba: null
                    player_id: 592450
                    season: 2026
                    source_url: >-
                      https://baseballsavant.mlb.com/player-services/gamelogs?playerId=592450&season=2026
                    total: 285
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            Every plate appearance of one player in one season from Baseball
            Savant's game logs (`/player-services/gamelogs`): date, game,
            result, final pitch, and Statcast batted-ball metrics (exit
            velocity, launch angle, distance, barrel, xBA) with the play id.
            Newest first; paged with `limit`/`cursor`. An id that exists but has
            no data for the season returns an empty list; an unknown id is
            `not_found`.


            The response contains the tool result directly.


            The provider identifies `plate_appearances` as the primary payload
            key.


            | Documented field | Provider type | Description |

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

            | `at_bat_number` | number |  |

            | `ball_in_play` | boolean |  |

            | `barrel` | boolean | True when Statcast classified the batted ball
            as a barrel; null when not a ball in play. |

            | `batting_team_id` | number |  |

            | `event` | string | Result code, e.g. `strikeout`, `home_run`,
            `field_out`. |

            | `event_label` | string | Human label, e.g. `Home Run`. |

            | `exit_velocity_mph` | number |  |

            | `fielding_team_id` | number |  |

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

            | `game_pk` | number | MLB game id; key for the schedule and game
            feeds. |

            | `hard_hit` | boolean |  |

            | `hit_distance_ft` | number |  |

            | `launch_angle_deg` | number |  |

            | `opponent_pitcher` | string | Pitcher faced (batters) as `Last,
            First`; the batter faced for pitchers. |

            | `pitch_name` | string |  |

            | `pitch_type` | string | Statcast pitch code of the final pitch,
            e.g. `FF`. |

            | `pitch_velocity_mph` | number | Velocity of the final pitch of the
            plate appearance. |

            | `play_id` | string | Statcast play UUID (links to
            `https://baseballsavant.mlb.com/sporty-videos?playId=...`). |

            | `pull_direction` | string | `Pull`, `Straight` or `Oppo` for
            batted balls; null otherwise. |

            | `video_url` | string | Savant play video page; null when the site
            offers none. |

            | `xba` | number | Expected batting average of the batted ball; null
            when not a ball in play. |



            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.