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

Group: Teams

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.

Plans: Every plan, Free included.

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

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `id` | path | yes | DataSportsAPI team id, a positive integer |

## Response

- `data`: `PlayerLeagueSeasons[]`
- `meta`: count
- Objects: PlayerLeagueSeasons (https://datasportsapi.com/markdown/reference.md#playerleagueseasons)

## Errors

- 404 not_found — DataSportsAPI has never assigned this id

Plus the common errors (https://datasportsapi.com/markdown/docs.md#errors).

## Request

cURL:

```bash
curl -H "Authorization: Bearer sk_live_…" \
    "https://api.datasportsapi.com/v2/teams/{id}/top-players/seasons"
```

TypeScript:

```ts
const { data, meta } = await client.teams.topPlayersSeasons(id);
```

Python:

```python
res = client.teams.top_players_seasons(id)
```

Go:

```go
res, err := client.Teams.TopPlayersSeasons(ctx, id)
```

CLI:

```bash
$ dsa teams top-players-seasons <id>
```

## Example response

```json
{ "data": [ { "league": { "id": 200001, "name": "Premier League", … }, "seasons": [ … ] } ], "meta": { "count": 6 } }
```

---

Base URL: https://api.datasportsapi.com. Authenticate each /v2 call with the header `Authorization: Bearer <key>` (secret keys begin with `sk_live_`).
HTML: https://datasportsapi.com/docs/teams/top-players-seasons/ · All docs: https://datasportsapi.com/markdown/docs.md · Data reference: https://datasportsapi.com/markdown/reference.md
