GET api/current/drivers/[driverId]

Try it

This endpoint retrieves details about a driver and his race results. Based on the provided driverId and the current season.

Example Response

{
  "api": "https://f1connectapi.vercel.app",
  "url": "https://f1connectapi.vercel.app/api/current/drivers?limit=1",
  "offset": 0,
  "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": "bahrein_2024",
        "name": "Gulf Air Bahrain Grand Prix 2024",
        "round": 1,
        "date": "2024-03-02",
        "circuit": {
          "circuitId": "bahrein",
          "name": "Bahrein International Circuit",
          "country": "Bahrein",
          "city": "Sakhir",
          "length": 5412,
          "lapRecord": "1:31:447",
          "firstParticipationYear": 2004,
          "numberOfCorners": 15,
          "fastestLapDriverId": "de_la_rosa",
          "fastestLapTeamId": "mclaren",
          "fastestLapYear": 2005
        }
      },
      "result": {
        "finishingPosition": 9,
        "gridPosition": 6,
        "raceTime": "+1:14.887",
        "pointsObtained": 2,
        "retired": null
      },
      "sprintResult": 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.
seasonnumberThe season of the championship.
championshipIdstringThe championship id.
driverobjectThe driver object.
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.
teamobjectThe team object.
teamIdstringThe team id.
teamNamestringThe team name.
teamNationalitystringThe team country.
firstAppeareancestring | nullThe year the team first appeared in the championship.
constructorsChampionshipsstring | nullThe number of constructors championships the team has won.
driversChampionshipsstring | nullThe number of drivers championships the team has won.
resultsarrayArray with the results of the races.
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.
urlstringA URL to the Wikipedia page of the circuit.
resultobjectResult of the driver in each race.
finishingPositionnumberThe finishing position of the driver in the race.
gridPositionnumberThe grid position of the driver in the race.
raceTimenumberThe time of the driver in the race.
pointsObtainednumberThe points obtained by the driver in the race.
retiredbooleanWhether the driver retired or not.
sprintResultobject | nullResult of the driver in the sprint race.

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