If you identify any API bugs or errors in the data please record them here.
Bug Reports
Comments
853 responses to “Bug Reports”
-
Hi,
Python’s simplejson parser is tripping up on the drivers data because there is a trailing comma on the nationalities property, see here:
http://ergast.com/api/f1/2010/drivers.json
This is not happening in the other api’s I’m using, even the ones that contain driver data, like results for example:
http://ergast.com/api/f1/current/last/results.json
Constructors is a similar api which is also working ok:
http://ergast.com/api/f1/2010/constructors.json
As a workaround I’m pulling driver data from the results api, which is a little inefficient for you so I hope you forgive me 🙂
Thanks for the api, I’m using it to power our little fantasy formula 1 league in the office.
Darren
-
Thanks Darren – it’s now fixed.
-
Hi,
When I query the database for, say, Alonso’s all-time results, I use the following URL: http://ergast.com/api/f1/drivers/alonso/driverStandings
I get his 8 first seasons results, however, the 2010 season does not appear.
Is this intended, or is it a bug?
Which solution is best to get *all* results from up to today for a given driver? Should I add something like http://ergast.com/api/current/f1/drivers/alonso/driverStandings and check if there’s 0 or 1 result? At the end of the season, won’t I be counting the last results twice?Note: this behavior might not be consistent with getting all *race* results with the URL: http://ergast.com/api/f1/drivers/alonso/results
In that case I do get the 2010 race results too.Thanks in advance,
Romain -
Romain,
I’ve considered this issue in the past and neither of the two possible behaviours is ideal in all circumstances. The deciding factor for me was realizing what would happen if you wanted to list all the seasons where a particular driver had won the championship e.g:
http://ergast.com/api/f1/drivers/button/driverStandings/1
You probably wouldn’t want this list to include the current season (which Jenson is currently leading but hasn’t necessarily won). To solve your problem I would make two queries:
http://ergast.com/api/f1/drivers/alonso/driverStandings
http://ergast.com/api/f1/current/drivers/alonso/driverStandingsthen check whether the last season attribute returned by the first query is the same as the season attribute returned by the second. If so, ignore the second query.
Obviously, if the two season attribute values are different it means that the current season is still in progress and therefore the second query is returning interim standings, rather than final standings. Hope that helps.
-
Great work, excellent API. One problem: in 1988 only the top 11 results counted towards a drivers WDC points, so although Prost scored more points than Senna, Senna was champion. The API lists Senna’s position as 2nd.
-
Thanks Bob. Now corrected. The results followed the “Top 11” rule up to the 1981 but not thereafter for some reason. The points have now been corrected 1981-1991. I think 1988 championship was the only place where the problem affected the standings.
-
Seems to be down today?
All of my requests response are,
“scgiwrap: Caller must be the nobody user” -
Apologies for the outtage. There was a major upgrade by the hosting site this weekend which took out all my PHP scripts.
-
HI,
really looking forward to using this with sencha 2 but found the following problem.The jsonp callback has dots like this.
http://ergast.com/api/f1/seasons.json?_dc=1332628009729&node=root&page=1&start=0&limit=25&callback=Ext.data.JsonP.callback2It appears that the dots in the callback function cause a bad request. Is it possible to fix or suggest a work around.
Many thanks
-
Hi Sean,
Ok. It should work now. I was being overly cautious in restricting callbacks to function names.
Let me know if you build something interesting.
-
Nice one admin that has done the trick. I will let you know when I something decent, but don’t hold your breath I have just become a daddy 🙂
-
Round 8 & 9 2012 seem to have the same pit stop data?
-
Hi Chris,
Thanks for the heads-up. You’ve found the first bug in the new intra-race data import code. Should be correct now.
-
Bonjour, dans la liste des constructeur il manque “Alfa Special”. Actuellement les résultats apparaissent sous le nom de Alfa Romeo (par exemple le GP d’Afrique du Sud 1963 avec le pilote “de Klerk” http://ergast.com/api/f1/1963/10/results.json) alors qu’ils devraient être sous le constructeur Alfa Special.
Merci d’avance
-
Many thanks – I’ll look into it. The pre-2000 data has had less scrutiny than more recent material.
-
Re-bonjour, une petite erreur concernant le circuit de Watkins Glen aux Etats Unis (http://ergast.com/api/f1/circuits/watkins_glen) celui-ci est situé à Watkins Glen (état de New York) et non à New York. Il y a environ 400 kilomètres entre les deux.
Merci
-
Many thanks – I’ll make it “New York State”. The locality field is generally the state, county or nearest city. Unfortunately, in the case of New York this is ambiguous.
-
Merci beaucoup, j’attend énormément aussi de Romain 😉
-
Bonjour,
Je rencontre quelques petits problèmes concernant la saison 1952 :
1/ GP d’Allemagne 1952 (http://ergast.com/api/f1/1952/6/results.json?limit=10000)
Il manque les pilotes Willi KRAKAU, Ludwig FISCHER, Peter COLLINS, Harry MERKEL. Ceux-ci sont respectivement normalement aux places 28-31-33 et 34. Ils sont non partants c’est pour cela qu’ils ne sont surement pas dans votre API par contre ce que je ne comprend pas c’est que certains pilotes sont non partants pour d’autres GP mais quand même dans votre API (ex avec le pilote Bill ASTON au GP de Grande Bretagne 1952 http://ergast.com/api/f1/1952/5/results.json?limit=10000)2/ GP des Pays Bas 1952 (http://ergast.com/api/f1/1952/7/results.json?limit=10000)
Vous indiquez que le pilote Robert Manzon est partit 6ème sur la grille hors après quelques recherche je pense qu’il est partit 8ème.3/ GP d’Italie 1952 (http://ergast.com/api/f1/1952/8/results.json?limit=10000)
Le pilote Stirling MOSS est noté dans votre API en position 1 pour la grille de départ alors qu’il est normalement 9ème.
Le pilote Kenneth MCALPINE est noté dans votre API en position 2 pour la grille de départ alors qu’il est normalement 22ème.
Le pilote Alan BROWN est noté dans votre API en position 12 pour la grille de départ alors qu’il est normalement 21ème.
Le pilote Rudi FISCHER est noté dans votre API en position 16 pour la grille de départ alors qu’il est normalement 14ème.
Le pilote Gino BIANCO est noté dans votre API en position 25 pour la grille de départ alors qu’il est normalement 24ème.Merci beaucoup
-
Bonjour, je rencontre encore un petit problème. Cette fois ci concernant la saison 1954. Au GP de Grande Bretagne le record du tour en course est établi par 7 coureurs qui sont Alberto Ascari – Jean Behra – Juan Manuel Fangio – José Froilán González – Mike Hawthorn – Onofre Marimon et Stirling Moss. Ils se partagent donc le point attribué pour le record du tour. Ils reçoivent chacun 1/7 de point soit 0.14 points.
Dans votre classement disponible à cette page http://ergast.com/api/f1/1954/5/results?limit=40 il manque donc 0.14 points pour les pilotes Stirling MOSS – Jean BEHRA et Alberto ASCARI.
Merci beacoup
-
great api! missing only access by https…
-
The SQL dump contains encoding problems (assuming it’s UTF-8), for example Hülkenberg appears as Hülkenberg.
-
The encoding in the SQL dump appears to result from some quirk of MySQL. If you load the database dump (assuming UTF-8 encoding) the character encoding within the recovered database is correct. If anyone can shed light on what’s happening here please let me know.
-
Not totally uncommon to see those sort of ‘bugs’ with data that’s UTF8.
Always create the database with an UTF8 character set, import the data, and then be sure the headers for UTF8 have been set.I’ll run a test later, but I don’t think there’s a problem in the data dump itself.
-
Fantastic api, thanks.
It looks like 2012 Round 18 qualifying results times use a ‘.’ (dot) delimeter between the minute and second rather than the ‘:’ (colon) used everywhere else.
-
Thanks Dom – now fixed.
-
I think there’s a similar issue as @Dom’s, but with season 2012, round 3:
The following is for the winner of the race:
1:36.26.929The offset might be because of the . instead of :
This issue affects the Time value for all drivers in that round. -
Thanks Travis – now fixed. I’ll put a check in the importer.
-
Awesome, thanks a lot!
-
Found a missing bit of data:
Jensen button had 3 pitstops in the malaysia GP 2013, the database only returns 2.
I found the missing data from the Formula 1 site:3 5 Jenson Button McLaren-Mercedes 35 17:06:47 1:44.833 2:28.309
http://www.formula1.com/results/season/2013/894/7197/pit_stop_summary.html
-
Well spotted. Even worse – all pitstops longer than a minute have been omitted (di Resta and Sutil) so there’s a bug somewhere. Thanks!
-
Yeah! I was just compiling and noticed the same thing:
Missing:
malaysia 2013
2 14 Paul di Resta Force India-Mercedes 20 16:41:12 2:03.124 2:46.837
2 15 Adrian Sutil Force India-Mercedes 22 16:44:43 1:29.401 2:07.234spain 2013:
1 15 Adrian Sutil Force India-Mercedes 8 14:15:56 1:14.026 1:14.026 -
Now fixed (also Sutil’s long stop in round 5). Will check preceding years when I’ve got time.
-
I’ve noticed inconsistencies in the race names (field `name` in table `races`):
Some of the races end in “Grand Prix” while others simply use “GP” e.g:
858 2011 18 24 Abu Dhabi GP 2011-11-13 13:00:00 http://en.wikipedia.org/wiki/2011_Abu_Dhabi_Grand_…
877 2012 18 24 Abu Dhabi GP 2012-11-04 13:00:00 http://en.wikipedia.org/wiki/2012_Abu_Dhabi_Grand_…
17 2009 17 24 Abu Dhabi Grand Prix 2009-11-01 11:00:00 http://en.wikipedia.org/wiki/2009_Abu_Dhabi_Grand_…
355 2010 19 24 Abu Dhabi Grand Prix 2010-11-14 13:00:00 http://en.wikipedia.org/wiki/2010_Abu_Dhabi_Grand_…This is probably due to what’s displayed on Wikipedia, but I just thought this would be worth pointing out.
Cheers!
-
Thanks opiates – they should all be “Grand Prix”. I’m very keen on consistency!
-
Hello guys!
I think I found a bug. Maybe not so important but I will tell you it.
In seasons list. If your query does not return a value you get a not well formatted json:
{
“MRData”: {
“xmlns”: “http:\/\/ergast.com\/mrd\/1.2”,
“series”: “f1”,
“url”: “http://ergast.com/api/f1/drivers/alonsok/constructors/renault/seasons.json”,
“limit”: “30”,
“offset”: “0”,
“total”: “0”,
“SeasonTable”: {
“constructorId”: “renault”,
“driverId”: “alonsok”,
}
}
}There is a lost comma just next to driverId string.
Anyways thank you very much for all your work 🙂 -
Thanks Felipe! Now fixed. Not sure why this code was different to the other tables – I hate being inconsistent.
-
Hi
I noticed a bug if you there :
http://ergast.com/api/f1/season/round/resultsThe request will send you something even if you enter a bad round (an integer like 51).
-
Hi Thibault,
At the moment it returns an empty table but I guess it could throw a 404 error. Would that be better? I’ll review this after the end of the season to see if there’s a consistent policy that could be applied.
-
Hi,
the request : http://ergast.com/api/f1/2013/1/qualifying.json
the problem : drivers don’t have the
field (Exemple : 'VET' for Vettel).
-
Thanks for the heads-up – driver codes now added. Note that they’re not always available for early historical data.
-
– in the 2013 Abu Dhabi results Nico Hulkenberg has Williams assigned as his team,
– Pacific team (and their drivers) is missing in the 1994 standings (both drivers and constructors),
– M. Schumacher is classified in 2nd place in 1997 standings, but he was dsq that year (at formula1.com results he is classified last),
– McLaren is missing from 2007 constructor standings. I know they were dsq but I think it would be good to place them last with no points so there would be at least some indication that they took apart in the season.
– From 1993 to 1997 results Sauber is named BMW Sauber.
– In the 2013 Spanish GP results full race times are returned for all not-lapped drivers -
There few more drivers missing in 1994 standings:
– Andrea Montermini
– Taki Inoue
– Hideki Noda
– Philippe Alliot
– Aguri Suzuki
– Jean-Denis Deletraz
– Ayrton Senna
– and Pacific drivers (Bertrand Gachot, Paul Belmondo) -
Hi Pieczar,
Thanks for the heads-up. All these points have now been corrected. To represent excluded or disqualified drivers and teams in the standings I’ve introduced a positionText field which replaces the numeric position with “E” or “D” respectively (as used in the results responses). The existing position files remains numeric.
-
In the 2005 results:
– there are Toyota drivers missing in both race and qualifying results for Spanish Grand Prix,
– for the first 6 rounds there were 2 qualifying sessions – starting positions were determined using combined times from both of them. Currently there are results from 1st session only stored in the database, and starting positions are wrong (ie. in Spanish GP Raikkonen had pole position but he was 3rd after the 1st session). -
All now fixed.
-
Hello,
In this results :
http://ergast.com/api/f1/1956/7/results
The driver “Eugenio Castellotti” have two entries.
Nediar
-
Same problem in this request :
http://ergast.com/api/f1/1996/5/qualifying
“Johnny Herbert” have two entries.
-
Thanks Nediar – both now fixed.
-
Hi,
I have some problems to work with your API. I try a “GET” with angularjs to http://ergast.com/api/f1/2014.json?callback=json and get this message: “No ‘Access-Control-Allow-Origin’ header is present on the requested resource.”. With JSONP I get “jsonp is not defined”.
Can you help?
Thanks!
Leave a Reply