Getting a constructors most recent active drivers #101
-
Is there an endpoint or anything I can do to get the current drivers for a constructor? I've was looking at mapping the /2024/driverconstructors endpoint response as this returns the Driver object with an array of Constructors, the only downside to this is that there isnt anything to specify if the driver is currently active. Eg. Williams would give 3 drivers (Albon, Colapinto and Sargeant) but theres nothing to say who is currently driving. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
You can specifiy the round number to get drivers from, for example: would return: {
"MRData": {
"xmlns": "",
"series": "f1",
"url": "http://api.jolpi.ca/ergast/f1/2024/20/constructors/williams/drivers/",
"limit": "30",
"offset": "0",
"total": "2",
"DriverTable": {
"season": "2024",
"round": "20",
"constructorId": "williams",
"Drivers": [
{
"driverId": "albon",
"permanentNumber": "23",
"code": "ALB",
"url": "http://en.wikipedia.org/wiki/Alexander_Albon",
"givenName": "Alexander",
"familyName": "Albon",
"dateOfBirth": "1996-03-23",
"nationality": "Thai"
},
{
"driverId": "colapinto",
"permanentNumber": "43",
"code": "COL",
"url": "http://en.wikipedia.org/wiki/Franco_Colapinto",
"givenName": "Franco",
"familyName": "Colapinto",
"dateOfBirth": "2003-05-27",
"nationality": "Argentinian"
}
]
}
}
} You can also remove the constructor filter to get a list of all currently active drivers in a given round |
Beta Was this translation helpful? Give feedback.
You can specifiy the round number to get drivers from, for example:
https://api.jolpi.ca/ergast/f1/2024/20/constructors/williams/drivers/
would return: