Site
Home / Forum / General Discussion / World Cup Schedule

World Cup Schedule


Posted: 15 Nov 2022 22:46
gjenkin
Posts: 11
Joined: 2022-09-23

Hi all. Is there an endpoint for the complete world cup 2022 schedule?

The next 15 events is working:
https://www.thesportsdb.com/api/v1/json/2/eventsnextleague.php?id=4429

But the full set of events for the season is not:
https://www.thesportsdb.com/api/v1/json/2/eventsseason.php?l=4429&s=2022

I'm getting "SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data"

Is there another endpoint I should be using?

Best,
G

Posted: 15 Nov 2022 22:50
gjenkin
Posts: 11
Joined: 2022-09-23

I guess I can just cycle through every day from 2022-11-20 ...
https://www.thesportsdb.com/api/v1/json/2/eventsday.php?d=2022-11-20&l=4429

That should work.

Posted: 16 Nov 2022 10:33

zag
Posts: 3,331
Joined: 2020-03-23

As per the instructions, Use 'ID' not 'L'

https://www.thesportsdb.com/api/v1/json/2/eventsseason.php?id=4429&s=2022

*Free tier is limited to 100 events.

I fixed the error/warning as well when you use the wrong parameter.

Posted: 17 Nov 2022 00:10
gjenkin
Posts: 11
Joined: 2022-09-23

Thank you! Sorry, yes I missed the "id instead of l".


Who is Online?

In total there are 68 users online :: 3 registered, 0 hidden and 65 guests (based on users active over the past 5 minutes) Most users ever online was 424 on Fri Nov 10, 2017 9:02 pm

About Us

Discussion forum for TheSportsDB.com site and related topics

Rules

- Be Polite
- Respect other users
- Always post log files with issues
- Try to be helpful
- No Piracy discussion

Showing 0 to 4 (Total: 4)