# KeywordRelated

> A keyword related to the one asked about, how it is related and how big it is.

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

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 |
|---|---|---|
| `keyword` | string | 関連キーワード。 |
| `related_to` | string | 問い合わせたキーワード。 |
| `relation` | string \| null | How it relates: searched together (query), appears together in content (posts), searched before (prior) or after (after), or suggested as you type (suggestion). |
| `rank` | integer \| null | Position among the keywords of the same relation, from 1. |
| `relevance` | number \| null | 関連度（0〜1）。 |
| `search_index` | integer \| null | Its search index (the platform's measure, not a count); null where the platform gives none. |
| `composite_index` | integer \| null | Its composite index (the platform's measure of attention, not a count). |
| `ext` | object | プラットフォーム固有の追加情報。view=full の場合のみ返されます。 |

## Endpoints that return a KeywordRelated

- [Xiaohongshu 検索候補](https://okdata.online/apis/xiaohongshu/keywords/related/) (`xiaohongshu.keywords.related`): $0.02 per call · about 10 results per page
- [Xiaohongshu PGY 関連キーワード](https://okdata.online/apis/xiaohongshu/pgy/keywords/related/) (`xiaohongshu.pgy.keywords.related`): $0.04 per call · about 98 results per page
- [Douyin 検索サジェスト](https://okdata.online/apis/douyin/keywords/related/) (`douyin.keywords.related`): $0.02 per call · about 10 results per page
- [Douyin 指数：関連キーワード](https://okdata.online/apis/douyin/index/keywords/related/) (`douyin.index.keywords.related`): $0.002 per call · about 170 results per page
- [WeChat 検索の候補](https://okdata.online/apis/wechat/keywords/related/) (`wechat.keywords.related`): $0.15 per call · about 9 results per page
- [Zhihu search suggestions](https://okdata.online/apis/zhihu/keywords/related/) (`zhihu.keywords.related`): $0.02 per call · about 10 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: `keyword`, `related_to`, `relation`, `rank`, `relevance`, `search_index`, `composite_index`
- standard: —
- full: `ext`
