V2 API List
List Seasons by League ID
List all seasons available for a league using its unique ID.
get/list/seasons/{idLeague}
Request
- Base URLhttps://www.thesportsdb.com/api/v2/json
- AuthAPI key in header X-API-KEY
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idLeagueinteger required
The ID of the league to list seasons for.
Response
List of seasons for the specified league
Example response
{
"list": [
{
"strSeason": "2024-2025"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.