# GET /v2/leagues/{id}/player-of-the-season

Group: Leagues

The source’s player of the season of a finished league season: the best average match rating among the players who played enough, with his team and appearances.

Plans: Pro + Business only (other plans get 403 endpoint_not_in_plan).

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `id` | path | yes | our numeric id (positive integer) |
| `season` | query | yes | a season id from /v2/leagues/{id}/seasons |

## Response

- `data`: `PlayerOfTheSeason`
- `meta`: season
- Objects: PlayerOfTheSeason (https://sportsapi.app/markdown/en/reference.md#playeroftheseason)

## Errors

- 403 history_not_in_plan — the season ended before your plan’s history
- 404 no_data — the season is still running (see /player-of-the-season/race) or the league has none; 404 not_found — season is not one of this league’s seasons

Plus the common errors (https://sportsapi.app/markdown/en/docs.md#errors).

## Request

cURL:

```bash
curl -H "Authorization: Bearer sk_live_…" \
    "https://api.sportsapi.app/v2/leagues/{id}/player-of-the-season?season=…"
```

TypeScript:

```ts
const { data, meta } = await client.leagues.playerOfTheSeason(id, { season });
```

Python:

```python
res = client.leagues.player_of_the_season(id, season=season)
```

Go:

```go
res, err := client.Leagues.PlayerOfTheSeason(ctx, id, &sportsapi.LeaguesPlayerOfTheSeasonParams{Season: season})
```

CLI:

```bash
$ sportsapi leagues player-of-the-season <id> --season <season>
```

## Example response

```json
{ "data": { "player": { "id": 4022, "name": "Bruno Fernandes", … }, "team": { "id": 35, "name": "Manchester United", … }, "rating": 7.61, "appearances": 35 },
  "meta": { "season": 180212 } }
```

---

Base URL: https://api.sportsapi.app. Send your API key as `Authorization: Bearer <key>` on every /v2 request; keys are created in the dashboard (https://sportsapi.app/dashboard).
HTML: https://sportsapi.app/docs/leagues/player-of-the-season · All docs: https://sportsapi.app/markdown/en/docs.md
