---
title: "Team stats"
method: POST
path: "/v1/get_team_stats"
tags: ["Stats + aggregation"]
---

# Team stats

`POST /v1/get_team_stats`

## Request

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

Use for one team's season: totals (passing, rushing, receiving, defense, kicking, penalties), EPA per play, yards per attempt/carry, the standings row, and every weekly stat line. Costs 5 credits.

## Request body

- object
  - `team` string, required: Team code (e.g. KC, BUF, PHI)
  - `season` union: Season year (e.g. 2025). Defaults to current.
    - string
    - number
  - `season_type` 'REG' | 'POST': Regular season (default) or postseason

## Response `200`

The result, wrapped in data.

- object
  - `data` object, required
    - `team` object, nullable, required
    - `season` number, required
    - `season_type` string, required
    - `record` object, nullable, required
    - `totals` object, required
    - `weeks` 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/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)
