---
title: "List Seasons by League ID"
method: GET
path: "/list/seasons/{idLeague}"
tags: ["V2 API List"]
---

# List Seasons by League ID

`GET /list/seasons/{idLeague}`

## Request

- Base URL: `https://www.thesportsdb.com/api/v2/json`
- URL: `https://www.thesportsdb.com/api/v2/json/list/seasons/{idLeague}`
- Auth: API key in header `X-API-KEY`
- TypeScript: <https://skmtc.dev/thesportsdb/apis/thesportsdb-v2-api/docs/list/seasons/:idLeague/get.ts> (a function with typed inputs; its response is checked against the schema)

List all seasons available for a league using its unique ID.

## Path parameters

- `idLeague` integer, required

## Response `200`

List of seasons for the specified league

- SeasonList
  - `list` object[]
    - `strSeason` string

---

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