---
title: "Player leaders"
method: POST
path: "/v1/get_player_leaders"
tags: ["Stats + aggregation"]
---

# Player leaders

`POST /v1/get_player_leaders`

## Request

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

Use to rank players on any weekly stat over a season: passing_yards, passing_tds, rushing_yards, receiving_yards, receptions, targets, def_sacks, def_interceptions, fantasy_points_ppr, passing_epa, rushing_epa, receiving_epa, and ~130 more. Counting stats are summed, rate stats averaged. Filter by position, team, minimum games. Costs 5 credits.

## Request body

- object
  - `stat` string, required: Weekly stat column to rank by (e.g. passing_yards, receiving_epa, def_sacks)
  - `season` union: Season year. Defaults to current.
    - string
    - number
  - `season_type` 'REG' | 'POST': Regular season (default) or postseason
  - `position` string: Position filter, e.g. QB, RB, WR, TE
  - `team` string: Team code filter
  - `min_games` integer: Minimum games with a stat line (default 1)
  - `limit` integer: Max results (default 20)

## Response `200`

The result, wrapped in data.

- object
  - `data` object, required
    - `stat` string, required
    - `aggregation` string, required
    - `season` number, required
    - `season_type` string, required
    - `leaders` object[], required
      - `rank` number, required
      - `player_id` string, nullable
      - `name` string, nullable
      - `position` string, nullable
      - `team` string, nullable
      - `games` number, nullable
      - `value` number, nullable
    - `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/endzoneapi/apis/endzoneapi-api.md) · [All operations](https://skmtc.dev/endzoneapi/apis/endzoneapi-api/llms.txt) · [OpenAPI document](https://skmtc.dev/endzoneapi/apis/endzoneapi-api/revisions/14fa4d187e75?raw)
