# Get ATP, WTA, FIFA and other rankings (v1)

Returns a ranking table, such as ATP, WTA, FIFA or UEFA club coefficients, with rank, points, previous rank and best rank.

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

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `type` | query | no | enum: atp, wta, atp-race, wta-race, fifa, uefa-countries, uefa-clubs, rugby-men, rugby-women | atp, wta, atp-race, wta-race, fifa, uefa-countries, uefa-clubs, rugby-men or rugby-women. Default: atp. |

## Example request

```bash
curl "https://api.toolzerhub.com/v1/sofascore/rankings" \
  -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.
