Site
Home / Forum / Developers / Skip cancelled events on API

Skip cancelled events on API


Posted: 28 Feb 2023 16:42
alberto88


Posts: 19
Joined: 2021

Hello everyone!

Apologies if this have been explained before but I've checked latest posts and couldn't find something similar to this.

Please, when using the url https://www.thesportsdb.com/api/v1/json/{APIKEY}/eventspastleague.php?id={COMPETITION} to display the latest 15 events by League id is there any way to not show cancelled events?

For example I'm trying to display latests highlights and scores from LPGA and season 2022 (https://www.thesportsdb.com/season.php?l=4553&s=2022) includes Buick LPGA Shanghai & Taiwan Swinging Skirts LPGA which were cancelled due covid.

Would there be a way to skip these not played events?

Thank you for your time!

Posted: 03 Mar 2023 22:19

zag


Posts: 3,511
Joined: 2020

No easy way I can think of.

Cancelled events can generally be deleted by Mods though. I doubt it happens too often.

alberto88

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 2 (Total: 2)