# Topic

> 一個話題（標籤）頁及其資料。

網頁版：https://okdata.online/zh/docs/objects/topic/

所有平台同一種結構。平台沒有的欄位為 null，meta.unavailable 會說明原因。用 fields= 只取需要的欄位。

| 欄位 | 型別 | 說明 |
|---|---|---|
| `id` | string | ID，可原樣傳給需要它的介面。 |
| `name` | string | 話題名稱。 |
| `url` | string \| null | 話題頁連結。 |
| `description` | string \| null | 話題簡介；沒有時為 null。 |
| `metrics` | TopicMetrics | 抓取時的資料。 |
| `ext` | object | 平台特有欄位，只在 view=full 時返回。 |

### TopicMetrics

| 欄位 | 型別 | 說明 |
|---|---|---|
| `views` | integer \| null | 話題瀏覽量。 |
| `posts` | integer \| null | 話題下的內容數。 |

## 返回 Topic 的介面

- [小紅書話題詳情](https://okdata.online/zh/apis/xiaohongshu/topics/get/) (`xiaohongshu.topics.get`): $0.02/次
- [微博話題搜尋](https://okdata.online/zh/apis/weibo/topics/search/) (`weibo.topics.search`): $0.002/次 · 每頁約 20 條結果
- [抖音話題搜尋](https://okdata.online/zh/apis/douyin/hashtags/search/) (`douyin.hashtags.search`): $0.02/次 · 每頁約 20 條結果
- [知乎話題搜尋](https://okdata.online/zh/apis/zhihu/topics/search/) (`zhihu.topics.search`): $0.002/次 · 每頁約 20 條結果

## 各 view 返回的欄位

每一級 view 都包含上一級的欄位。`view=compact` 最精簡；`full` 會在 `ext` 里加上平台特有欄位。

- compact：`id`, `name`, `url`, `description`, `metrics`
- standard：—
- full：`ext`
