This endpoint retrieves details about a all the circuits in the database. The active and the old circuits.
{ "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" } ] }
Field | Type | Description |
---|---|---|
api | string | The base API URL for the F1 Connect service. |
url | string | The URL used to fetch the drivers data with query parameters for limit and offset. |
limit | number | The number of results returned per request. |
offset | number | The offset used for pagination, i.e., the starting point for the result set. |
total | number | The total number of drivers available in the dataset. |
circuits | array | A list of circuit objects returned from the API. |
circuitId | string | A unique identifier for the circuit. |
circuitName | string | The circuit's name. |
country | string | The circuit's country. |
city | string | The circuit's city. |
circuitLength | number | The circuit's length in kilometers. |
lapRecord | string | The lap record for the circuit. |
firstParticipationYear | number | The year the circuit first hosted a Grand Prix. |
numberOfCorners | number | The number of corners on the circuit. |
fastestLapDriverId | string | The driverId of the fastest lap driver. |
fastestLapTeamId | string | The teamId of the fastest lap team. |
fastestLapYear | number | The year the fastest lap was set. |
url | string | A URL to the Wikipedia page of the circuit. |
Param | Default | Data |
---|---|---|
limit | 30 | Number of records returned per request. |
offset | 0 | Number of records skipped before starting to fetch. |
Status | Description |
---|---|
200 | Successful request |
404 | Resource not found |
500 | Internal server error |