Site
Home / Forum / General Discussion / Livescores v2 Filter

Livescores v2 Filter


Posted: 18 Jan 2021 15:25
Stridermgn

Posts: 2
Joined: 2020

Hi everyone. I'm looking at the Livescore v2 queries now. Is there a way to use the URL to limit the returned leagues?

As an example, this returns the scores for all active soccer leagues:
https://www.thesportsdb.com/api/v2/json/APIKEY/livescore.php?s=Soccer

Instead, is it possible to do something like below to return only one league? I tried this query but it still returns everything.
https://www.thesportsdb.com/api/v2/json/APIKEY/livescore.php?s=Soccer&idLeague=4791

MaximeGo31
Posted: 18 Jan 2021 19:45

zag


Posts: 3,527
Joined: 2020

Seems like a nice feature request to me

Try this:

https://www.thesportsdb.com/api/v2/json/APIKEY/livescore.php?s=Soccer&l=4399
You can also do this actually which is probably easier:

https://www.thesportsdb.com/api/v2/json/APIKEY/livescore.php?l=4399
I will update the developer docs now.

MaximeGo31

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)