# KeywordAudience

> 搜尋或關注一個關鍵詞的人群：年齡、性別、地域和興趣。

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

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

| 欄位 | 型別 | 說明 |
|---|---|---|
| `keyword` | string | 關鍵詞。 |
| `age` | KeywordSegment[] \| null | 按年齡段。 |
| `gender` | KeywordSegment[] \| null | 按性別。 |
| `province` | KeywordSegment[] \| null | 按省份。 |
| `city` | KeywordSegment[] \| null | 按城市：只列佔比最高的，加起來不一定是 1。 |
| `city_tier` | KeywordSegment[] \| null | 按城市等級。 |
| `interest` | KeywordSegment[] \| null | 按興趣；加起來不一定是 1。 |
| `ext` | object | 平台特有欄位，只在 view=full 時返回。 |

### KeywordSegment

| 欄位 | 型別 | 說明 |
|---|---|---|
| `label` | string | 人群分組名，平台原文。 |
| `share` | number \| null | 該組在關鍵詞人群中的佔比，0 到 1。 |
| `tgi` | number \| null | TGI：該組對關鍵詞的偏好程度，100 為平台平均。 |

## 返回 KeywordAudience 的介面

- [抖音巨量算數關鍵詞人群畫像](https://okdata.online/zh/apis/douyin/index/keywords/audience/get/) (`douyin.index.keywords.audience.get`): $0.002/次

## 各 view 返回的欄位

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

- compact：`keyword`, `age`, `gender`, `province`, `city`, `city_tier`, `interest`
- standard：—
- full：`ext`
