GET api/drivers/search

Try it

Search with a q parameter for a driver or a list of drivers. Based on his name or surname.

Example Response

{
  "api": "https://f1api.dev",
  "url": "https://f1api.dev/api/drivers/search?q=verstappen",
  "query": "verstappen",
  "limit": 30,
  "offset": 0,
  "total": 2,
  "drivers": [
    {
      "driverId": "max_verstappen",
      "name": "Max",
      "surname": "Verstappen",
      "nationality": "Netherlands",
      "birthday": "30/09/1997",
      "number": 33,
      "shortName": "VER",
      "url": "https://en.wikipedia.org/wiki/Max_Verstappen"
    },
    {
      "driverId": "verstappen",
      "name": "Jos",
      "surname": "Verstappen",
      "nationality": "Dutch",
      "birthday": "1972-03-04",
      "number": null,
      "shortName": null,
      "url": "http://en.wikipedia.org/wiki/Jos_Verstappen"
    }
  ]
}

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.
limitnumberThe number of results returned per request.
offsetnumberThe offset used for pagination, i.e., the starting point for the result set.
totalnumberThe total number of drivers available in the dataset.
driversarrayA 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

ParamDefaultData
limit30Number of records returned per request.
offset0Number of records skipped before starting to fetch.
qSearch query, can be a driver name or surname.

Response Status

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