List Leagues
list_leaguesList the sports leagues catalogued by TheSportsDB, optionally narrowed by sport name (Soccer, Ice Hockey, Basketball, American Football, Baseball) and by country name. Returns each league id, name, alternate name, sport, and country; the league id feeds league_teams and league_table in this pack. Answers which leagues exist for a sport or a country, and what league id to use next.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sport | No | Sport name (e.g. "Soccer", "Ice Hockey") | |
| country | No | Country name |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||