allanbrrll
Posts: 1
Joined: Thu Mar 07, 2019 11:53 am

search_all_leagues doesn't show all the division 1

Thu Mar 07, 2019 11:59 am

Hey!

I am wondering why the search_all_leagues with params (c=England and s=Soccer) doesn't show the division 1?

Thank you
https://www.thesportsdb.com/api/v1/json ... d&s=Soccer

User avatar
zag
Site Admin
Posts: 762
Joined: Tue Oct 11, 2016 9:43 am

Re: search_all_leagues doesn't show all the division 1

Thu Mar 07, 2019 4:10 pm

Oh nice find, the reason was because the Premiership was classed as a "UK" league not "England".

I've changed it to "England" now for consistency even though it has a few welsh teams these days ;)

Return to “Developers”