-
I would like to get all the results for each season that a driver has had in his entire career. How can I get this? I want this to get all the world championships that a driver has { (i write this) and all the results of each season for only one driver on the url. I tryed this "/ergast/f1/drivers/hamilton/seasons/" but only shows the season and the url like this: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You can get race results for a specific driver by specifying the following: However, you can't do the same for driverstandings/constructorstandings currently, which is one of our known differences from ergast. So you'd likely have to go season by season, and cache it on your end if you're doing this for many drivers. I know this isn't ideal, but if you'd like to take a shot at implementing it we'd welcome a PR! |
Beta Was this translation helpful? Give feedback.
You can get race results for a specific driver by specifying the following:
https://api.jolpi.ca/ergast/f1/drivers/alonso/results/
However, you can't do the same for driverstandings/constructorstandings currently, which is one of our known differences from ergast. So you'd likely have to go season by season, and cache it on your end if you're doing this for many drivers.
https://github.com/jolpica/jolpica-f1/blob/main/docs/ergast_differences.md#standings
I know this isn't ideal, but if you'd like to take a shot at implementing it we'd welcome a PR!