# Rank a team's players by rating (v1)

Returns one team's players ranked by average rating in a season, with appearances. No ratings returns `data: null`.

- Platform: Sofascore
- Request: `GET https://api.toolzerhub.com/v1/sofascore/tournament/season/top-ratings`
- Auth: `x-api-key` header
- Cost: 1 credit per successful request. Failed requests are not billed.
- Page: https://docs.toolzerhub.com/reference/sofascore/seasons/get-sports-team-player-ratings

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `id` | query | yes | integer | Tournament id (uniqueTournament.id), such as 17 for the Premier League. Find one with Search Sports. |
| `season_id` | query | yes | integer | Season id. List seasons with Get Sports Tournament (seasons). |
| `team_id` | query | yes | integer | Team id (homeTeam.id or awayTeam.id on an event). |
| `split` | query | no | enum: overall, regularSeason, playoffs, top16 | Statistics split. overall covers every match; regularSeason, playoffs and top16 apply only where the season has them. Default: overall. |

## Example request

```bash
curl "https://api.toolzerhub.com/v1/sofascore/tournament/season/top-ratings?id=<id>&season_id=<season_id>&team_id=<team_id>" \
  -H "x-api-key: $TOOLZERHUB_API_KEY"
```

Success responses are wrapped as `{ "data": ... }`. Errors return `{ "error": { "code", "status", "message", "retryable", "details" } }`. See https://docs.toolzerhub.com/docs/responses-and-errors.
