This endpoint retrieves details about all the drivers in the database. Based on the provided year.
{
"api": "https://f1connectapi.vercel.app",
"url": "https://f1connectapi.vercel.app/api/2010/drivers?limit=1",
"limit": 1,
"offset": 0,
"total": 1,
"season": "2010",
"championshipId": "f1_2010",
"drivers": [
{
"driverId": "vettel",
"name": "Sebastian",
"surname": "Vettel",
"nationality": "Germany",
"birthday": "03/07/1987",
"number": 5,
"shortName": "VET",
"url": "https://en.wikipedia.org/wiki/Sebastian_Vettel",
"teamId": "red_bull"
}
]
}| 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. |
| season | string | The season of the championship. |
| championshipId | string | The championship id. |
| drivers | array | The drivers array of driver objects. |
| driverId | string | A unique identifier for the driver. |
| name | string | The driver's first name. |
| surname | string | The driver's surname. |
| nationality | string | The driver's nationality. |
| birthday | string | The driver's birthdate in DD/MM/YYYY format. |
| number | number | The driver's racing number. |
| shortName | string | The driver's abbreviated name, often used in standings or graphics. |
| url | string | A URL to the Wikipedia page of the driver. |
| teamId | string | The team id. |
| 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 |