GET api/[year]/drivers/[driverId]

Try it

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

Example Response

{
  "api": "https://f1connectapi.vercel.app",
  "url": "https://f1connectapi.vercel.app/api/2024/drivers/alonso?limit=1&offset=4",
  "limit": 1,
  "offset": 4,
  "total": 1,
  "season": "2024",
  "championshipId": "f1_2024",
  "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"
  },
  "team": {
    "teamId": "aston_martin",
    "teamName": "Aston Martin F1 Team",
    "teamNationality": "Great Britain",
    "firstAppeareance": 1959,
    "constructorsChampionships": null,
    "driversChampionships": null,
    "url": "https://en.wikipedia.org/wiki/Aston_Martin_in_Formula_One"
  },
  "results": [
    {
      "race": {
        "raceId": "china_2024",
        "name": "Lenovo Chinese Grand Prix 2024",
        "round": 5,
        "date": "2024-04-21",
        "circuit": {
          "circuitId": "shangai",
          "name": "Shangai International Circuit",
          "country": "China",
          "city": "Shangai",
          "length": 5451,
          "lapRecord": "1:32:238",
          "firstParticipationYear": 2004,
          "numberOfCorners": 16,
          "fastestLapDriverId": "michael_schumacher",
          "fastestLapTeamId": "ferrari",
          "fastestLapYear": 2004
        }
      },
      "result": {
        "finishingPosition": 7,
        "gridPosition": 3,
        "raceTime": "+43.414",
        "pointsObtained": 7,
        "retired": null
      },
      "sprintResult": {
        "finishingPosition": 17,
        "gridPosition": 18,
        "raceTime": "+42.998\t",
        "pointsObtained": 0,
        "retired": null
      }
    }
  ]
}

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.
seasonstringThe season of the championship.
championshipIdstringThe championship id.
driverobjectThe driver object.
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.
teamobjectThe team object.
teamIdstringThe team id.
teamNamestringThe team name.
teamNationalitystringThe team nationality.
firstAppeareancenumberThe year the team first appeared in a Grand Prix.
constructorsChampionshipsnumberThe number of constructors championships the team has won.
driversChampionshipsnumberThe number of drivers championships the team has won.
urlstringA URL to the Wikipedia page of the team.
resultsarrayA list of results objects returned from the API.
raceobjectThe race object.
raceIdstringThe race id.
namestringThe race name.
roundnumberThe race round.
datestringThe race date in YYYY-MM-DD format.
circuitobjectThe circuit object.
circuitIdstringThe circuit id.
namestringThe circuit name.
countrystringThe circuit country.
citystringThe circuit city.
lengthnumberThe circuit length in kilometers.
lapRecordstringThe lap record for the circuit.
firstParticipationYearnumberThe year the circuit first hosted a Grand Prix.
numberOfCornersnumberThe number of corners on the circuit.
fastestLapDriverIdstringThe driverId of the fastest lap driver.
fastestLapTeamIdstringThe teamId of the fastest lap team.
fastestLapYearnumberThe year the fastest lap was set.
resultobjectThe result object.
finishingPositionnumberThe finishing position of the driver.
gridPositionnumberThe grid position of the driver.
raceTimestringThe race time of the driver.
pointsObtainednumberThe points obtained by the driver.
retiredbooleanWhether the driver retired or not.
sprintResultobjectThe sprint result object.
finishingPositionnumberThe finishing position of the driver.
gridPositionnumberThe grid position of the driver.
raceTimestringThe race time of the driver.
pointsObtainednumberThe points obtained by the driver.
retiredbooleanWhether the driver retired or not.
sprintResultobjectThe sprint result object.
finishingPositionnumberThe finishing position of the driver.
gridPositionnumberThe grid position of the driver.
raceTimestringThe race time of the driver.
pointsObtainednumberThe points obtained by the driver.
retiredbooleanWhether the driver retired or not.

Response Params

ParamDefaultData
limit30Number of records returned per request.
offset0Number of records skipped before starting to fetch.

Response Status

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