Site
Home / Forum / Developers / Query league by sport

Query league by sport


Posted: 20 Aug 2019 19:53

shauns2007
Posts: 2
Joined: Aug 2019

Hi There

Sorry if I missed this but is it possible to query leagues by sport id that include the league images?

Thanks!

Posted: 20 Aug 2019 21:17

zag
Posts: 1,558
Joined: Oct 2016

On the API? I don't think so at the moment sorry.

We're always happy to extend the API if you can give an example of what you need.

Posted: 21 Aug 2019 05:05

shauns2007
Posts: 2
Joined: Aug 2019

Something like this

https://www.thesportsdb.com/api/v1/json ... php?id=102

This returns something like this.

Example

{
leagues : [
{
idLeague: "4328",
strLeague: "English Premier League",
strSport: "Soccer",
strLeagueAlternate: "Premier League",
thumbnail: "https://www.thesportsdb.com/images/media/league/logo/4c377s1535214890.png"
},
{
idLeague: "4329",
strLeague: "English League Championship",
strSport: "Soccer",
strLeagueAlternate: "Championship, Sky Bet Championship"
thumbnail: "https://www.thesportsdb.com/images/media/league/logo/4c377s1535214890.png"
},
]
}

Thanks so much!


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