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

> Season-level rankings across players; take `player_id` into the player functions. Boards not listed here are not supported.

## Request contract

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

[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-leaderboard",
  "method": "POST",
  "path": "/apis/v1/baseballsavant-mlb-com/baseball-statcast/get-leaderboard",
  "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": {
              "board": "expected_statistics",
              "limit": 5,
              "season": 2026
            }
          }
        },
        "schema": {
          "additionalProperties": true,
          "properties": {
            "board": {
              "description": "Which leaderboard.\n\nProvider reference: allowed values [\"expected_statistics\", \"statcast\", \"sprint_speed\", \"outs_above_average\", \"pitch_arsenals\"].",
              "type": "string"
            },
            "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": 50,
              "description": "Maximum rows per page (default 50, max 1000).\n\nProvider reference: minimum 1; maximum 1000; default 50.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "max": 1000,
                "min": 1
              }
            },
            "min": {
              "description": "Qualification threshold as the site accepts it: `q` for qualified (default on `expected_statistics`, `statcast`, `outs_above_average`) or a number (plate appearances / batted balls / competitive runs / pitches; default 10 on `sprint_speed`, 100 on `pitch_arsenals`). Pattern: ^(q|[0-9]{1,5})$.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "player_type": {
              "default": "batter",
              "description": "`batter` (default) or `pitcher`; applies to `expected_statistics` and `statcast` only.\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"
            }
          },
          "required": [
            "board",
            "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-leaderboard
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-leaderboard:
    post:
      tags:
        - MLB Baseball Savant
      summary: Get leaderboard
      description: >-
        Season-level rankings across players; take `player_id` into the player
        functions. Boards not listed here are not supported.
      operationId: baseballsavant-mlb-com.baseball-statcast.get-leaderboard
      requestBody:
        content:
          application/json:
            examples:
              provider:
                summary: >-
                  Official provider example; checked against AIsa request
                  constraints
                value:
                  board: expected_statistics
                  limit: 5
                  season: 2026
            schema:
              additionalProperties: true
              properties:
                board:
                  description: >-
                    Which leaderboard.


                    Provider reference: allowed values ["expected_statistics",
                    "statcast", "sprint_speed", "outs_above_average",
                    "pitch_arsenals"].
                  type: string
                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: 50
                  description: |-
                    Maximum rows per page (default 50, max 1000).

                    Provider reference: minimum 1; maximum 1000; default 50.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    max: 1000
                    min: 1
                min:
                  description: >-
                    Qualification threshold as the site accepts it: `q` for
                    qualified (default on `expected_statistics`, `statcast`,
                    `outs_above_average`) or a number (plate appearances /
                    batted balls / competitive runs / pitches; default 10 on
                    `sprint_speed`, 100 on `pitch_arsenals`). Pattern:
                    ^(q|[0-9]{1,5})$.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                player_type:
                  default: batter
                  description: >-
                    `batter` (default) or `pitcher`; applies to
                    `expected_statistics` and `statcast` only.


                    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
              required:
                - board
                - 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:
                    board: expected_statistics
                    columns:
                      - year
                      - pa
                      - bip
                      - ba
                      - est_ba
                      - est_ba_minus_ba_diff
                      - slg
                      - est_slg
                      - est_slg_minus_slg_diff
                      - woba
                      - est_woba
                      - est_woba_minus_woba_diff
                    count: 5
                    min: q
                    next_cursor: '5'
                    observed_at_ms: 1791156867556
                    player_type: batter
                    rows:
                      - metrics:
                          ba: 0.28
                          bip: 444
                          est_ba: 0.264
                          est_ba_minus_ba_diff: 0.016000000000000014
                          est_slg: 0.508
                          est_slg_minus_slg_diff: 0.061999999999999944
                          est_woba: 0.374
                          est_woba_minus_woba_diff: 0.026000000000000023
                          pa: 726
                          slg: 0.57
                          woba: 0.4
                          year: 2026
                        name: Crow-Armstrong, Pete
                        player_id: 691718
                      - metrics:
                          ba: 0.241
                          bip: 472
                          est_ba: 0.249
                          est_ba_minus_ba_diff: -0.008000000000000007
                          est_slg: 0.39
                          est_slg_minus_slg_diff: -0.008000000000000007
                          est_woba: 0.336
                          est_woba_minus_woba_diff: -0.007000000000000006
                          pa: 717
                          slg: 0.382
                          woba: 0.329
                          year: 2026
                        name: Herrera, Iván
                        player_id: 671056
                      - metrics:
                          ba: 0.242
                          bip: 440
                          est_ba: 0.233
                          est_ba_minus_ba_diff: 0.00899999999999998
                          est_slg: 0.402
                          est_slg_minus_slg_diff: -0.009000000000000008
                          est_woba: 0.331
                          est_woba_minus_woba_diff: 0.0020000000000000018
                          pa: 710
                          slg: 0.393
                          woba: 0.333
                          year: 2026
                        name: Busch, Michael
                        player_id: 683737
                      - metrics:
                          ba: 0.278
                          bip: 509
                          est_ba: 0.264
                          est_ba_minus_ba_diff: 0.014000000000000012
                          est_slg: 0.445
                          est_slg_minus_slg_diff: -0.015000000000000013
                          est_woba: 0.355
                          est_woba_minus_woba_diff: 0.0020000000000000018
                          pa: 707
                          slg: 0.43
                          woba: 0.357
                          year: 2026
                        name: McGonigle, Kevin
                        player_id: 805808
                      - metrics:
                          ba: 0.289
                          bip: 503
                          est_ba: 0.296
                          est_ba_minus_ba_diff: -0.007000000000000006
                          est_slg: 0.5
                          est_slg_minus_slg_diff: -0.030000000000000027
                          est_woba: 0.379
                          est_woba_minus_woba_diff: -0.02100000000000002
                          pa: 704
                          slg: 0.47
                          woba: 0.358
                          year: 2026
                        name: Tatis Jr., Fernando
                        player_id: 665487
                    season: 2026
                    source_url: >-
                      https://baseballsavant.mlb.com/leaderboard/expected_statistics?type=batter&year=2026&position=&team=&filterType=bip&min=q&sort=0&sortDir=asc&csv=true
                    total: 246
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            One Baseball Savant leaderboard as the site's CSV export
            (`/leaderboard/{board}?...&csv=true`): `expected_statistics`
            (xBA/xSLG/xwOBA, batters or pitchers), `statcast` (exit velocity and
            barrels, batters or pitchers), `sprint_speed`, `outs_above_average`
            (fielders) and `pitch_arsenals` (average velocity per pitch type,
            pitchers). All qualified rows are fetched and paged with
            `limit`/`cursor`; `columns` names the board-specific metric columns.


            The response contains the tool result directly.


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


            | Documented field | Provider type | Description |

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

            | `metrics` | object | Every other CSV column of the board, keyed by
            the site's column name (e.g. `est_woba`, `sprint_speed`,
            `outs_above_average`, `ff_avg_speed`); numeric cells are numbers,
            blank cells null, anything else a string. Column names are listed in
            `columns`. |

            | `name` | string | `Last, First` as the board prints it. |

            | `player_id` | number | MLBAM player id. |



            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.