# Resolve a live room ID

Resolves the `webcast_id` in a live.douyin.com URL to the `room_id` other live endpoints require.

- Platform: Douyin V2
- Request: `GET https://api.toolzerhub.com/v2/douyin/live/room-id`
- 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-room-id

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `webcast_id` | query | yes | string | Douyin webcast id, or a live.douyin.com/ URL. |

## Example request

```bash
curl "https://api.toolzerhub.com/v2/douyin/live/room-id?webcast_id=<webcast_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.
