GET api/seasons

Try it

This endpoint retrieves details about a all the seasons in the database.

Example Response

{
  "api": "https://f1connectapi.vercel.app",
  "url": "https://f1connectapi.vercel.app/api/seasons?limit=1&offset=0",
  "limit": 1,
  "offset": 0,
  "total": 1,
  "championships": [
    {
      "championshipId": "f1_2025",
      "championshipName": "2025 Formula 1 World Championship",
      "url": "https://en.wikipedia.org/wiki/2025_Formula_One_World_Championship",
      "year": 2025
    }
  ]
}

Response Types

FieldTypeDescription
apistringThe base API URL for the F1 Connect service.
urlstringThe URL used to fetch the drivers data with query parameters for limit and offset.
limitnumberThe number of results returned per request.
offsetnumberThe offset used for pagination, i.e., the starting point for the result set.
totalnumberThe total number of seasons available in the dataset.
championshipsarrayA list of championship objects returned from the API.
championshipIdstringA unique identifier for the championship.
championshipNamestringThe championship's name.
urlstringA URL to the Wikipedia page of the championship.
yearnumberThe year the championship was held.

Response Params

ParamDefaultData
limit30Number of records returned per request.
offset0Number of records skipped before starting to fetch.

Response Status

StatusDescription
200Successful request
404Resource not found
500Internal server error