GET api/[driverId]

Try it

This endpoint retrieves details about a driver in the database. Based on the provided driverId.

Example Response

{
  "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"
    }
  ]
}

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.
totalnumberThe total number of drivers available in the dataset.
driverarrayA list of driver objects returned from the API.
driverIdstringA unique identifier for the driver.
namestringThe driver's first name.
surnamestringThe driver's surname.
nationalitystringThe driver's nationality.
birthdaystringThe driver's birthdate in DD/MM/YYYY format.
numbernumberThe driver's racing number.
shortNamestringThe driver's abbreviated name, often used in standings or graphics.
urlstringA URL to the Wikipedia page of the driver.

Response Params

No params for this endpoint.

Response Status

StatusDescription
200Successful request
404Resource not found
500Internal server error