Just want to report that Vettel has 38 fastest laps and not 37. Did some investigating and you attributed the fastest lap on round 17 of 2017 season (American GP) to Kimi Raikkonnen.
If you could give that fastest lap to Vettel would be great 🙂
Also, i know you don’t have much old info, but since raikkonen is stil driving could you update the database with those missing years? 2001 onwards?
Hi punter42,
The raceId is a primary key used internally by the database – unfortunately it doesn’t relate to anything in the real world. If corrections are made to the race schedule the key may not follow a simple, incremental sequence. This is true for the primary keys of all the database tables. The only reliable identifier of a race is year + round, or the date.
Cheers,
Chris
Hi Tiago,
Thanks for the warning – now corrected.
Unfortunately, adding earlier lap times would be a significant amount of work but I’ll bear it in mind.
Chris
I’m not sure if this is a bug or me misunderstanding something (I’ve read the FAQ/Docs), but shouldn’t https://ergast.com/api/f1/current/last/results return the final round of the previous season if there haven’t been any races yet? I understand that the context of ‘current’ is ‘2021’ so maybe it’s not possible, but I’m trying it with https://ergast.com/api/f1/2020/last/results and it still doesn’t work. Is it because the context of ‘last’ always relates to the current season?
Hi Luke,
Apologies for the confusion. This was a bug I didn’t anticipate, caused by all the recent race cancellations. It should be ok now.
Thanks for the warning.
Chris
Hi Chris,
Your raceId is often matching that on formula1.com but also often not.
E.g. the last race in 2020 on f1.com has raceId 1061: https://www.formula1.com/en/results.html/2020/races/1061/abu-dhabi/race-result.html
But in your db it has id 1047. You also have a race with id 1061 but that one is currently in the future.
Is this an error or should I just not use these raceId to find the same races?
Kind regards,
punter42
Hi,
Just want to report that Vettel has 38 fastest laps and not 37. Did some investigating and you attributed the fastest lap on round 17 of 2017 season (American GP) to Kimi Raikkonnen.
If you could give that fastest lap to Vettel would be great 🙂
Also, i know you don’t have much old info, but since raikkonen is stil driving could you update the database with those missing years? 2001 onwards?
Much appreciated and incredible work
Best regards
Hi punter42,
The raceId is a primary key used internally by the database – unfortunately it doesn’t relate to anything in the real world. If corrections are made to the race schedule the key may not follow a simple, incremental sequence. This is true for the primary keys of all the database tables. The only reliable identifier of a race is year + round, or the date.
Cheers,
Chris
Hi Tiago,
Thanks for the warning – now corrected.
Unfortunately, adding earlier lap times would be a significant amount of work but I’ll bear it in mind.
Chris
I’m not sure if this is a bug or me misunderstanding something (I’ve read the FAQ/Docs), but shouldn’t https://ergast.com/api/f1/current/last/results return the final round of the previous season if there haven’t been any races yet? I understand that the context of ‘current’ is ‘2021’ so maybe it’s not possible, but I’m trying it with https://ergast.com/api/f1/2020/last/results and it still doesn’t work. Is it because the context of ‘last’ always relates to the current season?
Hi Luke,
Apologies for the confusion. This was a bug I didn’t anticipate, caused by all the recent race cancellations. It should be ok now.
Thanks for the warning.
Chris
Hi!
When will the https://ergast.com/api/f1/current be linked to https://ergast.com/api/f1/2021 ?
And can you please update the 3rd race of 2021 to https://en.wikipedia.org/wiki/Portuguese_Grand_Prix ?
I would have submitted a pull-request if i knew where to post it 😉
Fin
Hi Finwe,
> When will the https://ergast.com/api/f1/current be linked to…
It’s explained here: http://ergast.com/mrd/faq/#shortcuts
> And can you please update the 3rd race of 2021
Done. Thanks for flagging the update.
Chris