# KeywordRelated

> 與所查關鍵詞相關的詞、相關方式和熱度。

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

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

| 欄位 | 型別 | 說明 |
|---|---|---|
| `keyword` | string | 關聯詞。 |
| `related_to` | string | 所查的關鍵詞。 |
| `relation` | string \| null | 關聯方式：一起被搜（query）、在內容裡一起出現（posts）、之前搜（prior）、之後搜（after），或輸入時的聯想詞（suggestion）。 |
| `rank` | integer \| null | 在同一關聯方式下的排名，從 1 開始。 |
| `relevance` | number \| null | 相關程度，0 到 1。 |
| `search_index` | integer \| null | 它的搜尋指數（平台的度量，不是次數）；平台未給出時為 null。 |
| `composite_index` | integer \| null | 它的綜合指數（平台對關注度的度量，不是次數）。 |
| `ext` | object | 平台特有欄位，只在 view=full 時返回。 |

## 返回 KeywordRelated 的介面

- [抖音搜尋框聯想詞](https://okdata.online/zh/apis/douyin/keywords/related/) (`douyin.keywords.related`): $0.02/次 · 每頁約 10 條結果
- [抖音巨量算數關聯詞](https://okdata.online/zh/apis/douyin/index/keywords/related/) (`douyin.index.keywords.related`): $0.002/次 · 每頁約 170 條結果
- [小紅書搜尋聯想詞](https://okdata.online/zh/apis/xiaohongshu/keywords/related/) (`xiaohongshu.keywords.related`): $0.02/次 · 每頁約 10 條結果
- [小紅書蒲公英關聯詞](https://okdata.online/zh/apis/xiaohongshu/pgy/keywords/related/) (`xiaohongshu.pgy.keywords.related`): $0.04/次 · 每頁約 98 條結果
- [微信搜一搜推薦詞](https://okdata.online/zh/apis/wechat/keywords/related/) (`wechat.keywords.related`): $0.15/次 · 每頁約 9 條結果
- [知乎搜尋聯想詞](https://okdata.online/zh/apis/zhihu/keywords/related/) (`zhihu.keywords.related`): $0.02/次 · 每頁約 10 條結果

## 各 view 返回的欄位

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

- compact：`keyword`, `related_to`, `relation`, `rank`, `relevance`, `search_index`, `composite_index`
- standard：—
- full：`ext`
