---
title: "List a league's seasons."
method: GET
path: "/api/league/{league_id}/seasons"
tags: ["League"]
---

# List a league's seasons.

`GET /api/league/{league_id}/seasons`

## 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/{league_id}/seasons`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/sponsorunited/apis/sponsorunited-api/docs/api/league/:league_id/seasons/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns the league with its seasons sorted ascending. The latest released season is flagged as the default/current one. Returns null when the league does not exist.

## Path parameters

- `league_id` integer, required

## Response `200`

The league with its seasons, or null when the league does not exist.

---

[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)
