# Get an MMA weight class ranking (v1)

Returns the champion and top 15 of a weight class in every organization, or in one with `tournament_id`, such as UFC (19906). Nothing found returns `data: null`.

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

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `weight_class` | query | yes | string | Weight class, such as fly, bantam, feather, light, welter, middle, lightheavy, heavy or straw. |
| `gender` | query | no | enum: m, f | m for men, f for women. Default: m. |
| `tournament_id` | query | no | integer | Organization id, such as 19906 for UFC; omit for all. |

## Example request

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