---
title: "Leaders"
method: POST
path: "/v1/get_leaders"
tags: ["Stats + aggregation"]
---

# Leaders

`POST /v1/get_leaders`

## Request

- Base URL: `https://mcp.fastballapi.com`
- URL: `https://mcp.fastballapi.com/v1/get_leaders`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Use for a season's leaders among qualified players: batting avg, obp, slg, ops, hr, re24, bb_pct, k_pct (3.1 plate appearances per team game) or pitching era, whip, so, k_per_9, bb_per_9 (1 inning per team game). Costs 5 credits.

## Request body

- object
  - `stat` 'avg' | 'obp' | 'slg' | 'ops' | 'hr' | 're24' | 'bb_pct' | 'k_pct' | 'era' | 'whip' | 'so' | 'k_per_9' | 'bb_per_9', required
  - `season` union: Season (a year, e.g. 2025; default: the latest).
    - number
    - string
  - `min_pa` integer: Override the plate-appearance minimum.
  - `min_ip` integer: Override the innings minimum.
  - `limit` integer
  - `league` 'mlb' | 'ncaabase': League. Defaults to mlb. One of: mlb, ncaabase.

## Response `200`

The result, wrapped in data.

- object
  - `data` object, required
    - `stat` string, required
    - `season` number, nullable, required
    - `qualifier` string, required
    - `leaders` object[], required
    - `count` number, required

## Other responses

- `400`: Invalid arguments.
- `401`: Missing or invalid API key.
- `402`: Not enough credits.
- `429`: Rate limited.

---

[API](https://skmtc.dev/fastballapi/apis/fastballapi-api.md) · [All operations](https://skmtc.dev/fastballapi/apis/fastballapi-api/llms.txt) · [OpenAPI document](https://skmtc.dev/fastballapi/apis/fastballapi-api/revisions/ea9aaf113d7f?raw)
