On this football API documentation page, you can see how the season API endpoint works so you can retrieve a season list and reach historical competition data.
seasons ID values stay persistent and will not change over time.Reaching past and upcoming competition data becomes straightforward when seasons are in play. Most football API endpoints rely on the current competition season by default, yet there are moments when you need older or future data. Take last year group standings as an example. Knowing the season id matters most in that scenario. This endpoint lets you discover the season id values.
The football API handles two season types. The first one is a whole year season and the second one is a split season. With a whole year season, the start and the end fall inside the same calendar year. With a split season, the start happens at some point during one year and the end lands in the next calendar year. A competition that runs as a whole year season is the Allsvenskan (2021) while the UEFA Champions League runs as a split season (2021/2022)
ENDPOINT
Working with this football API endpoint could not be simpler. No parameters are needed and the response returns a compact set of fields.
Check this Football API endpoint in our postman collection. Download it now!
PARAMETERS
RESPONSE
| Name | Type | Example | Description |
|---|---|---|---|
| end | date | 2022-12-31 | A rough end date for the season. This value can differ from one competition to another. |
| id | number | 1 | The season id works as a parameter across other football API endpoints. |
| name | string | 2018/2019 | A label for the season that a human can read. |
| start | date | 2022-01-01 | A rough start date for the season. This value can differ from one competition to another. |
{
"success": true,
"data": {
"seasons": [
{
"id": "12",
"name": "2023",
"start": "2023-01-01",
"end": "2023-12-31"
},
{
"id": "14",
"name": "2022\/2023",
"start": "2022-07-01",
"end": "2023-06-30"
},
{
"id": "11",
"name": "2022",
"start": "2022-01-01",
"end": "2022-12-31"
},
{
"id": "13",
"name": "2021\/2022",
"start": "2021-07-01",
"end": "2022-06-30"
}
]
}
}