# Get a gift ranking

Returns the gift-giver ranking for a live room.

- Platform: Douyin V2
- Request: `GET https://api.toolzerhub.com/v2/douyin/live/gift-ranking`
- Auth: `x-api-key` header
- Cost: 2 credits per successful request. Failed requests are not billed.
- Page: https://docs.toolzerhub.com/reference/douyin-v2/live/get-douyin-live-gift-ranking

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `room_id` | query | yes | string | Douyin live room id. |
| `rank_type` | query | no | integer | Ranking board type. Default: 30. |

## Example request

```bash
curl "https://api.toolzerhub.com/v2/douyin/live/gift-ranking?room_id=<room_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.
