# LiveRoom

> A live room as it is now: whether it is on, its title, host, start time and room-level counts.

Canonical page: https://okdata.online/docs/objects/live_room/

The same shape on every platform. A field a platform does not have is null, and meta.unavailable says why. Use fields= to keep only what you need.

| Field | Type | Description |
|---|---|---|
| `id` | string \| null | The room's ID; the endpoints that read a room take it. Null where the platform names no room: an account that is not live, or a board entry that links to the host only. |
| `url` | string \| null | The room's web page; null where the platform gives the room none. |
| `status` | string | live: streaming now. offline: not streaming (the other fields then describe the last session, where the platform still shows it). |
| `title` | string \| null | ホストが設定したルームのタイトル。 |
| `category` | string \| null | The room's category or game, in the platform's words (Twitch's game, Bilibili's area); null where the platform gives none. |
| `cover_url` | string \| null | カバー画像。 |
| `host` | AccountRef | ホストの公開アカウント。 |
| `started_at` | string \| null | When the current (or last) session started, ISO 8601 in UTC. |
| `rank` | integer \| null | Place on the board, from 1; null outside boards. |
| `metrics` | LiveMetrics | Room-level counts at fetch time; a count the platform does not show is null. |
| `ext` | object | プラットフォーム固有の追加情報。view=full の場合のみ返されます。 |

### AccountRef

| Field | Type | Description |
|---|---|---|
| `id` | string | プラットフォーム上のアカウント ID。 |
| `username` | string \| null | ハンドル（プラットフォームにある場合）。 |
| `name` | string \| null | 表示名。 |
| `avatar_url` | string \| null | アバター画像の URL。 |
| `followers` | integer \| null | 取得時点のフォロワー数。 |
| `verified` | boolean \| null | プラットフォームに認証バッジが表示されているかどうか。 |

### LiveMetrics

| Field | Type | Description |
|---|---|---|
| `viewers` | integer \| null | 現在ルームにいる人数。 |
| `total_viewers` | integer \| null | People who have come into the room since it started; where the platform rounds it (100,000+), the lower bound. |
| `likes` | integer \| null | 開始以降のいいね数。 |
| `heat` | integer \| null | The platform's own popularity score for the room, not a head count (Kuaishou's and Bilibili's). |
| `products` | integer \| null | Products on sale in the room (the shopping bag). |

## Endpoints that return a LiveRoom

- [TikTok アカウントの LIVE 状況](https://okdata.online/apis/tiktok/live/users/get/) (`tiktok.live.users.get`): $0.002 per call
- [Twitch 配信者の配信状況](https://okdata.online/apis/twitch/live/users/get/) (`twitch.live.users.get`): $0.004 per call
- [Douyin ライブルーム](https://okdata.online/apis/douyin/live/rooms/get/) (`douyin.live.rooms.get`): $0.002 per call
- [Douyin アカウントのライブ状況](https://okdata.online/apis/douyin/live/users/get/) (`douyin.live.users.get`): $0.004 per call
- [Douyin ライブ検索](https://okdata.online/apis/douyin/live/rooms/search/) (`douyin.live.rooms.search`): $0.043 per call · about 10 results per page
- [WeChat Channels アカウントの配信状況](https://okdata.online/apis/wechat_channels/live/users/get/) (`wechat_channels.live.users.get`): $0.02 per call
- [WeChat Channels ライブルーム](https://okdata.online/apis/wechat_channels/live/rooms/get/) (`wechat_channels.live.rooms.get`): $0.02 per call
- [Bilibili ライブルーム](https://okdata.online/apis/bilibili/live/rooms/get/) (`bilibili.live.rooms.get`): $0.002 per call
- [Bilibili アカウントのライブ状況](https://okdata.online/apis/bilibili/live/users/get/) (`bilibili.live.users.get`): $0.002 per call
- [Kuaishou アカウントの配信状況](https://okdata.online/apis/kuaishou/live/users/get/) (`kuaishou.live.users.get`): $0.002 per call
- [Kuaishou ライブボード](https://okdata.online/apis/kuaishou/live/rooms/trending/) (`kuaishou.live.rooms.trending`): $0.002 per call · about 50 results per page

## Fields by view

Each view includes the fields of the views above it. `view=compact` is the smallest; `full` adds platform extras under `ext`.

- compact: `id`, `url`, `status`, `title`, `category`, `host`, `started_at`, `rank`, `metrics`
- standard: `cover_url`
- full: `ext`
