WorldCupBot will notify a Slack channel/group for every matches during a FIFA World Cup.
The API haven't changed since the Russia World Cup 2018.
Which means you can use that bot for every FIFA World Cup, you just need to update ID_COMPETITION
& ID_SEASON
.
World Cup | ID_COMPETITION |
ID_SEASON |
---|---|---|
FIFA World Cup Russia 2018™ | 17 | 254645 |
FIFA U-20 World Cup Poland 2019 | 104 | 281971 |
FIFA Women's World Cup France 2019™ | 103 | 278513 |
FIFA World Cup Qatar 2022™ | 17 | 255711 |
If the competition you are looking for isn't defined below, here is how you can find these numbers:
2022-11-19T00:00:00Z
)https://api.fifa.com/api/v3/calendar/matches?from=DATE_START&language=en&count=500
and replace DATE_START
with the previous date (be careful to use the same format)FIFA World Cup Qatar 2022
)IdSeason
IdCompetition
That bot is using the "unofficial" FIFA json API (the one used for their mobile apps).
It will post a message :
Here is a preview of the United States vs Wales match (during the 2022 edition).
https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX
and put it in SLACK_URL
Set up a cron to run every minute:
The code is ugly but it works.
Everything is posted in french, but feel free to fork and use your own language. FYI, FIFA API can provide text in en/fr/de/es/pt.