This endpoint retrieves details about a driver in the database. Based on the provided driverId.
{ "api": "https://f1connectapi.vercel.app", "url": "https://f1connectapi.vercel.app/api/drivers/alonso", "total": 1, "driver": [ { "driverId": "alonso", "name": "Fernando", "surname": "Alonso", "nationality": "Spain", "birthday": "29/07/1981", "number": 14, "shortName": "ALO", "url": "https://en.wikipedia.org/wiki/Fernando_Alonso" } ] }
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. |
total | number | The total number of drivers available in the dataset. |
driver | array | A list of driver 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 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. |
No params for this endpoint.
Status | Description |
---|---|
200 | Successful request |
404 | Resource not found |
500 | Internal server error |