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

Group: Leagues

The ongoing contest for player of the season: the front-runners ranked by average rating, highest first.

Plans: Requires Pro, Business or Enterprise; a Free or Starter key receives 403 endpoint_not_in_plan.

Note: Our data source shows the leading three. Leagues that have no player-of-the-season race return an empty array.

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `id` | path | yes | league id issued by DataSportsAPI, a positive integer |
| `season` | query | yes | season id, as listed by /v2/leagues/{id}/seasons |

## Response

- `data`: `PlayerOfTheSeasonCandidate[]`
- `meta`: season, count
- Objects: PlayerOfTheSeasonCandidate (https://datasportsapi.com/markdown/reference.md#playeroftheseasoncandidate)

## Errors

- 403 history_not_in_plan — your plan’s history window begins after this season ended
- 404 not_found — the season id does not belong to this league

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/leagues/{id}/player-of-the-season/race?season=…"
```

TypeScript:

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

Python:

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

Go:

```go
res, err := client.Leagues.PlayerOfTheSeasonRace(ctx, id, &datasportsapi.LeaguesPlayerOfTheSeasonRaceParams{Season: season})
```

CLI:

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

## Example response

```json
{ "data": [
    { "player": { "id": 4510, "name": "Jan Paul van Hecke", … }, "team": { "name": "Tottenham Hotspur", … }, "rating": 7.83, "appearances": 9, "playedEnough": true },
    { "player": { "name": "Erling Haaland", … }, "team": { "name": "Manchester City", … }, "rating": 7.79, "appearances": 9, "playedEnough": true }, … ],
  "meta": { "season": 200386, "count": 3 } }
```

---

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/leagues/player-of-the-season-race/ · All docs: https://datasportsapi.com/markdown/docs.md · Data reference: https://datasportsapi.com/markdown/reference.md
