---
title: "Fetch aggregated statistics filtered by leagues and/or scouting markets."
method: GET
path: "/api/league/statistics"
tags: ["League"]
---

# Fetch aggregated statistics filtered by leagues and/or scouting markets.

`GET /api/league/statistics`

## Request

- Base URL: `https://api.sponsorunited.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.sponsorunited.com/api/league/statistics`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/sponsorunited/apis/sponsorunited-api/docs/api/league/statistics/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns aggregated statistics for teams matching the provided leagues and/or scouting markets. At least one of league_ids or scouting_markets must be provided.

## Query parameters

- `league_ids` integer[]
- `scouting_markets` integer[]
- `season` integer

## Response `200`

Successful response. Returns aggregated statistics.

## Other responses

- `422`: Validation failed. Neither league_ids nor scouting_markets provided, or invalid parameters.

---

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