# KeywordAudience

> Who searches for or reads about a keyword, by age, gender, place and interest.

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

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 | キーワード。 |
| `age` | KeywordSegment[] \| null | 年齢層別。 |
| `gender` | KeywordSegment[] \| null | 性別別。 |
| `province` | KeywordSegment[] \| null | 省別。 |
| `city` | KeywordSegment[] \| null | By city: the largest only, so the shares need not add up to 1. |
| `city_tier` | KeywordSegment[] \| null | 都市階層別。 |
| `interest` | KeywordSegment[] \| null | By interest; the shares need not add up to 1. |
| `ext` | object | プラットフォーム固有の追加情報。view=full の場合のみ返されます。 |

### KeywordSegment

| Field | Type | Description |
|---|---|---|
| `label` | string | グループ（プラットフォームの表記どおり）。 |
| `share` | number \| null | The group's share of the keyword's audience, 0 to 1. |
| `tgi` | number \| null | TGI: how strongly the group leans to the keyword; 100 is the platform average. |

## Endpoints that return a KeywordAudience

- [Douyin 指数：キーワードのオーディエンス](https://okdata.online/apis/douyin/index/keywords/audience/get/) (`douyin.index.keywords.audience.get`): $0.002 per call

## 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`, `age`, `gender`, `province`, `city`, `city_tier`, `interest`
- standard: —
- full: `ext`
