Discussion about this post

User's avatar
Sanjay Raisoni's avatar

I like this project! I would recommend changing to fetch(), to tell the browser to fetch new data every 60 seconds (60,000 milliseconds)

setInterval(function() {

fetch('https://api.example-sports-data.com/worldcup2026/knockouts')

.then(response => response.json())

.then(liveData => {

// Re-draw the bracket with the liveData

renderBracket(liveData);

});

}, 60000);

Also, Use GitHub World Cup 2026 Repository API for live scores.

For a project requiring zero API keys or authentication for read access, this open-source REST API is hosted via GitHub. [1] https://github.com/rezarahiminia/worldcup2026

No posts

Ready for more?