World Cup API
Data
sports data api
SHOW HN2018
How HN took it
4 positive, 5 neutral or asking, 0 mixed, 9 critical, out of 18 comments about the project. Thread score -0.21.
Execution: 1 for, 8 againstIdea: 1 for, 0 againstDocs: 0 for, 1 against
The thread, comment by comment
Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.
positive neutral or mixed critical about another commenter or something else the maker
What HN said
What people liked
Useful free data source for World Cup projects
From 2 comments
Nice! I built a World Cup IRC bot back in 2014 but couldn't find a reliable API. In the end I found the only way I could get realtime results was by streaming from the official…
tallytarik on HNNice. Build a little py script for work. :] https://gist.github.com/int9h/83373326174ce8dab25a333a9c36f0d3
manuw on HN
Objections
Timezone offsets are wrong in match timestamps
From 3 comments
Timezones look wrong. This is the stamp for today's match: 2018-06-14T17:00:00.000-05:00 Moscow is GMT+3, and kick-off is 18h local time (i.e. 15h GMT). Not sure what combination…
ealexhudson on HNhttp://worldcup.sfg.io/matches The time zone seems off. I get "datetime": "2018-06-14T17:00:00.000-05:00" for the first match. It should however be 17:00 for CEST (UTC +2)
sschueller on HNAt least on my server, I needed to run ``` pip2 install worldcup # didn't like Python3 watch -cn 60 worldcup today # -c for colours ``` Also the time handling seems wrong - it…
zimpenfish on HN
Scores lag or are missing during live matches
From 2 comments
There are a quite a few problems with this. We are 31 minutes into the first game (Russia vs Saudi A) and it is 1 - nil. This feed (although updated each minute) is not…
chunkyslink on HNYes, the minutely update seems to be off by 2 hrs at least. The first match is already 3:0, but the API still has 0:0
rurban on HN
HTTPS certificate error on the domain
From 2 comments
I tried loading over HTTPS and got the following error: ``` This server could not prove that it is worldcup.sfg.io; its security certificate is from *.herokuapp.com. This may be…
daw___ on HNI have the same issue. Can't use inside my Preact component running on a https site.
sorenso on HN
Country endpoint returns internal server error for lowercase codes
From 1 comment
http://worldcup.sfg.io/matches/country?fifa_code=cro Internal Server Error? I was expecting 404 in the worst case, but parameter case conversion (upper to low and vice versa)…
Ylodi on HN
Requests
Fix timezone handling
From 2 comments
http://worldcup.sfg.io/matches The time zone seems off. I get "datetime": "2018-06-14T17:00:00.000-05:00" for the first match. It should however be 17:00 for CEST (UTC +2)
sschueller on HNTime zones are always a pain, I'll check into it now that I got all the events working!
llamataboot on HN
Fix HTTPS certificate
From 2 comments
I tried loading over HTTPS and got the following error: ``` This server could not prove that it is worldcup.sfg.io; its security certificate is from *.herokuapp.com. This may be…
daw___ on HNI'll look into HTTPS, heroku says it is configured fine for worldcup.sfg.io, browser says it isn't, browser wins :)
llamataboot on HN
Accept case-insensitive country codes
From 1 comment
http://worldcup.sfg.io/matches/country?fifa_code=cro Internal Server Error? I was expecting 404 in the worst case, but parameter case conversion (upper to low and vice versa)…
Ylodi on HN
Faster refresh rate for live data
From 1 comment
Hey guys, I just created an API with my App for WhoScored. Its currently running very 15mins.…
garyjob on HN
Questions
Is there an official API?
From 1 comment
Is there no official API?
Double_a_92 on HN
Pros and cons versus football-data.org
From 1 comment
I’ve been using https://www.football-data.org which is also an API for the World Cup, does anyone know the pros and cons of the 2?
jayflux on HN
Is there an endpoint for the champion?
From 1 comment
Nice, is there an end point to get the champion?
ZuLuuuuuu on HN
Alternatives named
football-data.org
From 1 comment
I’ve been using https://www.football-data.org which is also an API for the World Cup, does anyone know the pros and cons of the 2?
jayflux on HN
FIFA API
From 2 comments
there's an api used by the official mobile app. https://api.fifa.com/worldcup/ If someone has reversed it and could share any documentation, pls write in comments
wklm on HNThe FIFA API is hard to understand but has all of the info as well. Here's a list of all matches in the group stages; I don't believe the round of 16 matches have been generated…
dmlittle on HN
Opta Sports
From 1 comment
There probably is but with FIFA you most definitely have to pay. https://www.optasports.com/
sschueller on HN
WhoScored and StatsZone
From 2 comments
WhoScored and the StatsZone app are both wonderful to scrape if anybody wanted to poke around harder for more detailed data.
thom on HNHey guys, I just created an API with my App for WhoScored. Its currently running very 15mins.…
garyjob on HN