# Get events tied to a ranking (v1)

Returns up to 5 featured events linked to a ranking. None returns `data: null`.

- Platform: Sofascore
- Request: `GET https://api.toolzerhub.com/v1/sofascore/rankings/featured-events`
- 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-ranking-featured-events

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `ranking_id` | query | yes | integer | Ranking id, from Get Sports Ranking Types: 1 UEFA countries, 2 FIFA, 5 ATP, 6 WTA, 9 UEFA clubs. |

## Example request

```bash
curl "https://api.toolzerhub.com/v1/sofascore/rankings/featured-events?ranking_id=<ranking_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.
