V2 API List
List Teams by League ID
List all teams in a paritcular league by its unique ID.
get/list/teams/{idLeague}
Request
- Base URLhttps://www.thesportsdb.com/api/v2/json
- AuthAPI key in header X-API-KEY
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idLeagueinteger required
The ID of the league to list teams for.
Response
List of teams in the specified league
Example response
{
"list": [
{
"idTeam": "133612",
"strTeam": "Manchester United",
"idLeague": "4328",
"strLeague": "English Premier League",
"strBadge": "https://r2.thesportsdb.com/images/media/team/badge/xzqdr11517660252.png",
"strCountry": "England",
"strGender": "Male",
"strLocation": "Trafford, Greater Manchester",
"strSport": "Soccer"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.