LeaguesEndpoint 70 of 116
Season teams
GET
https://api.datasportsapi.com/
- Plan
- All plans
- Auth
Bearer dsa_live_…- Parameters
- 2 required · 0 optional
- Returns
TeamRef[]
Lists the participants of a single league season; works just as well for cups and other competitions that have no table.
01Parameters
idpathRequiredleague id issued by DataSportsAPI, a positive integer
seasonqueryRequiredseason id, as listed by /v2/leagues/{id}/seasons
02Request
The same call from the command line and each SDK. The SDK lines assume a client created with your key; left out, it is read from DATASPORTSAPI_API_KEY. Installing a client: SDKs & CLI.
curl -H "Authorization: Bearer dsa_live_…" \
"https://api.datasportsapi.com/v2/leagues/{id}/teams?season=…"03Response
The top-level keys of the JSON body. Each object links to its full shape in the data reference.
dataTeamRef[]meta- season, count
ObjectsTeamRef
Example response
1 lines
{ "data": [ { "id": 18, "name": "Arsenal", "code": "ARS", … }, { "id": 17, "name": "Leeds United", "code": "LEE", … }, … ], "meta": { "season": 200386, "count": 20 } }04Errors
- 403
history_not_in_planyour plan’s history window begins after this season ended
- 404
not_foundthe season id does not belong to this league
Any key can also meet401
unauthorized429rate_limited429quota_exceeded500internal_errorEvery error code