GET api/circuits

Try it

This endpoint retrieves details about a all the circuits in the database. The active and the old circuits.

Example Response

{
  "api": "https://f1connectapi.vercel.app",
  "url": "https://f1connectapi.vercel.app/api/circuits?limit=1&offset=0",
  "limit": 1,
  "offset": 0,
  "total": 1,
  "circuits": [
    {
      "circuitId": "bahrein",
      "circuitName": "Bahrein International Circuit",
      "country": "Bahrein",
      "city": "Sakhir",
      "circuitLength": 5412,
      "lapRecord": "1:31:447",
      "firstParticipationYear": 2004,
      "numberOfCorners": 15,
      "fastestLapDriverId": "de_la_rosa",
      "fastestLapTeamId": "mclaren",
      "fastestLapYear": 2005,
      "url": "https://en.wikipedia.org/wiki/Bahrain_International_Circuit"
    }
  ]
}

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 drivers available in the dataset.
circuitsarrayA list of circuit objects returned from the API.
circuitIdstringA unique identifier for the circuit.
circuitNamestringThe circuit's name.
countrystringThe circuit's country.
citystringThe circuit's city.
circuitLengthnumberThe circuit's length in kilometers.
lapRecordstringThe lap record for the circuit.
firstParticipationYearnumberThe year the circuit first hosted a Grand Prix.
numberOfCornersnumberThe number of corners on the circuit.
fastestLapDriverIdstringThe driverId of the fastest lap driver.
fastestLapTeamIdstringThe teamId of the fastest lap team.
fastestLapYearnumberThe year the fastest lap was set.
urlstringA URL to the Wikipedia page of the circuit.

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