Site
Home / Forum / General Discussion / Endpoint for eventstv.php not pulling complete data

Endpoint for eventstv.php not pulling complete data


Posted: 07 Feb 2022 22:18
drestauro
Posts: 16
Joined: 2022-01-19

I'm looking at the next 24 hours for eventstv.php=Peacock_Premium. If I look at the Peacock Premium Page (https://www.thesportsdb.com/channel/7000) it shows me the upcoming English Prem League matches. However, when I pull the API https://www.thesportsdb.com/api/v1/json//eventstv.php?c=Peacock_Premium it doesn't return the EPL matches. It just shows rugby matches happening 3 months from now. Is this a bug?

Posted: 10 Feb 2022 11:29

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

I'm looking at the next 24 hours for eventstv.php=Peacock_Premium. If I look at the Peacock Premium Page (https://www.thesportsdb.com/channel/7000) it shows me the upcoming English Prem League matches. However, when I pull the API https://www.thesportsdb.com/api/v1/json//eventstv.php?c=Peacock_Premium it doesn't return the EPL matches. It just shows rugby matches happening 3 months from now. Is this a bug?

Its because there was a limit of 10 events on that endpoint. Its best to filter by a date as well or at least a sport.

Saying that, I agree it needs to be more now we have more data, I have increased the limit to 50 now for Patreon supporters.

The issue is because there is so many TV listings now, only Rugby shows as its the furthest event in the future. Best to use filters.

Posted: 10 Feb 2022 11:35

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

Just playing around with this some more, I added a new method

https://www.thesportsdb.com/api/v1/json/APIKEY/eventstv.php?f=Peacock%20Premium

This should show all events in the future sorted by date ascending.

Posted: 14 Feb 2022 16:21
drestauro
Posts: 16
Joined: 2022-01-19

Great! Thank you. I coded around it by grabbing by date for a few days out, but the future sort is very helpful for ensuring good data on channels I'm targeting most.

Posted: 14 Feb 2022 16:38
curswine
Posts: 870
Joined: 2020-06-17

Great! Thank you. I coded around it by grabbing by date for a few days out, but the future sort is very helpful for ensuring good data on channels I'm targeting most.

Are there any channels missing that I can look into adding for you?

zag
Posted: 04 Mar 2022 16:47
drestauro
Posts: 16
Joined: 2022-01-19

It's really based on sport, which is complicated in the US due to licensing. Generally, the major broadcast (ABC, CBS, NBC, Fox) and then the cable channels that air sports (ESPN /2/U/+/3, FS1/2, TNT, TBS, USA, etc). Regional sports networks are the most cumbersome to deal with since they are team dependent, but I've been able to code around it.




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