# Get ICC player or team rankings (v1)

Returns the ICC rankings for Tests, ODIs and T20Is: rank, rating, trend and country per player or team.

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

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `category` | query | no | enum: batting, bowling, all-rounder, teams | batting, bowling, all-rounder or teams. Default: batting. |
| `gender` | query | no | enum: men, women | men or women. Default: men. |

## Example request

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