Leagues
Season teams
GET/v2/leagues/{id}/teamsAll plans
The teams taking part in one season of the league — also for cups and competitions without a table.
Parameters
id
our numeric id (positive integer)
season
a season id from /v2/leagues/{id}/seasons
Response
- data
TeamRef[]- meta
- season, count
- errors
- 403 history_not_in_plan — the season ended before your plan’s history404 not_found — season is not one of this league’s seasons
Every /v2 call can also answer the common errors.
$ curl -H "Authorization: Bearer sk_live_…" \ "https://api.sportsapi.app/v2/leagues/{id}/teams?season=…"
Example
{ "data": [ { "id": 18, "name": "Arsenal", "code": "ARS", … }, { "id": 17, "name": "Leeds United", "code": "LEE", … }, … ], "meta": { "season": 200386, "count": 20 } }