World Cup API

Data

sports data api

SHOW HN2018

141points
41comments
#296of 2,155 in 2018
Top 14%of 2018 by points

How HN took it

RoastedHalf or more of the comments are critical

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 HN
    • Nice. 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 HN
    • 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 HN
    • At 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 HN
    • Yes, 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 HN
    • I 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 HN
    • Time 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 HN
    • I'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
  • 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

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 HN
    • The 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 HN
    • Hey guys, I just created an API with my App for WhoScored. Its currently running very 15mins.…
      garyjob on HN

Category, keywords, summaries and labels on this page were made by AI (Thread Reader v2) and not checked by hand. Each point links to the comments it came from.

Add a badge to your READMEShown on HackerShow
[![Shown on HackerShow](https://hackershow.org/badge.svg)](https://hackershow.org/show/17310483)