This endpoint retrieves details about all the drivers in the database. Based on the provided teamId and the current season.
{
"api": "https://f1connectapi.vercel.app",
"url": "https://f1connectapi.vercel.app/api/current/teams/ferrari/drivers?limit=2",
"total": 2,
"limit": "2",
"season": 2024,
"teamId": "ferrari",
"team": {
"teamId": "ferrari",
"teamName": "Scuderia Ferrari",
"country": "Italy",
"constructorsChampionships": 16,
"driversChampionships": 15,
"points": 652,
"position": 2,
"wins": 5,
"url": "https://en.wikipedia.org/wiki/Scuderia_Ferrari"
},
"drivers": [
{
"driver": {
"driverId": "bearman",
"name": "Oliver",
"surname": "Bearman",
"nationality": "Great Britain",
"birthday": "08/05/2005",
"number": 38,
"shortName": "BEA",
"url": "https://en.wikipedia.org/wiki/Oliver_Bearman",
"points": 7,
"position": 18,
"wins": null
}
},
{
"driver": {
"driverId": "leclerc",
"name": "Charles",
"surname": "Leclerc",
"nationality": "Monaco",
"birthday": "16/10/1997",
"number": 16,
"shortName": "LEC",
"url": "https://en.wikipedia.org/wiki/Scuderia_Ferrari",
"points": 356,
"position": 3,
"wins": 3
}
}
]
}| 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. |
| team | object | The team object. |
| teamId | string | A unique identifier for the team. |
| teamName | string | The team name. |
| teamNationality | string | The team nationality. |
| firstAppeareance | number | The year the team first appeared in a Grand Prix. |
| constructorsChampionships | number | null | The number of constructors championships the team has won. |
| driversChampionships | number | null | The number of drivers championships the team has won. |
| points | number | The points scored by the team. |
| position | number | The position of the team in the championship. |
| wins | number | null | Wins of the team in the selected season. |
| url | string | A URL to the Wikipedia page of the team. |
| drivers | array | A list of drivers objects returned from the API. |
| 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 birthday. |
| number | number | null | The driver's number. |
| shortName | string | The driver's short name. |
| url | string | A URL to the Wikipedia page of the driver. |
| points | number | The points scored by the driver. |
| position | number | The position of the driver in the championship. |
| wins | number | null | Wins of the driver in the selected season. |
| 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 |