# Get the top of a tournament's rankings (v1)

Returns the top 4 of every ranking in a tournament, such as each UFC weight class. None returns `data: null`.

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

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `tournament_id` | query | yes | integer | Tournament id (uniqueTournament.id), such as 17 for the Premier League. |

## Example request

```bash
curl "https://api.toolzerhub.com/v1/sofascore/rankings/tournament?tournament_id=<tournament_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.
