| | Posted: 07 Feb 2022 22:18 | |
drestauro
![](/images/forum/ranks2/member.png) Posts: 16 Joined: 2022
| | 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?
| |
![](/images/transparent.png) |
| | Posted: 10 Feb 2022 11:29 | |
![](https://www.thesportsdb.com/images/forum/avatars/england.png) zag
![](/images/forum/ranks2/donator.png) Posts: 3,551 Joined: 2020
| | 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.
| |
![](/images/transparent.png) |
| | Posted: 10 Feb 2022 11:35 | |
![](https://www.thesportsdb.com/images/forum/avatars/england.png) zag
![](/images/forum/ranks2/donator.png) Posts: 3,551 Joined: 2020
| | 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.
| |
![](/images/transparent.png) |
| | Posted: 14 Feb 2022 16:21 | |
drestauro
![](/images/forum/ranks2/member.png) Posts: 16 Joined: 2022
| | 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.
| |
![](/images/transparent.png) |
| | Posted: 14 Feb 2022 16:38 | |
curswine
![](/images/forum/ranks2/donator.png) Posts: 947 Joined: 2020
| | 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 | |
![](/images/transparent.png) |
| | Posted: 04 Mar 2022 16:47 | |
drestauro
![](/images/forum/ranks2/member.png) Posts: 16 Joined: 2022
| | 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.
| |
![](/images/transparent.png) |