Skip to content
datasportsAPI

TeamsSquad statistics seasons

Documentation

/

Type to filter the docs by title or path.

TeamsEndpoint 40 of 116

Squad statistics seasons

GET

/v2/teams/{id}/top-players/seasons

Plan
All plans
Auth
Bearer dsa_live_…
Parameters
1 required · 0 optional
Returns
PlayerLeagueSeasons[]

Lists the leagues and seasons where squad (player) statistics exist for the team — the inputs for /v2/teams/{id}/top-players. Available since 2026-11-04.

Worth knowing

Uses the response shape of /v2/teams/{id}/statistics/seasons.

01Parameters

  • idpathRequired

    DataSportsAPI team id, a positive integer

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/teams/{id}/top-players/seasons"

03Response

The top-level keys of the JSON body. Each object links to its full shape in the data reference.

data
PlayerLeagueSeasons[]
meta
count
Example response
{ "data": [ { "league": { "id": 200001, "name": "Premier League", … }, "seasons": [ … ] } ], "meta": { "count": 6 } }

04Errors

  • 404not_found

    DataSportsAPI has never assigned this id

Any key can also meet401unauthorized429rate_limited429quota_exceeded500internal_errorEvery error code