# KeywordHistory

> A keyword's index on a platform's trend tool, day by day.

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

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 | Từ khóa. |
| `points` | KeywordPoint[] | Mỗi ngày một mục, cũ nhất trước. |
| `ext` | object | Dữ liệu bổ sung riêng của nền tảng. Chỉ trả về khi view=full. |

### KeywordPoint

| Field | Type | Description |
|---|---|---|
| `date` | string | The day: a calendar day in China time (UTC+8), written as 00:00 UTC of that date. |
| `search_index` | integer \| null | That day's search index: the platform's measure of search interest, not a count of searches; null for a day the index has not published yet. |
| `composite_index` | integer \| null | That day's composite index: the platform's measure of attention to content about the keyword, not a count; null for a day the index has not published yet. |
| `notes` | integer \| null | Số bài đăng về từ khóa trong ngày đó. |
| `impressions` | integer \| null | Số lần các bài đăng đó được hiển thị trong ngày. |
| `views` | integer \| null | Số lần các bài đăng đó được đọc trong ngày. |
| `engagements` | integer \| null | Tương tác với các bài đăng đó trong ngày. |

## Endpoints that return a KeywordHistory

- [Chỉ số tìm kiếm từ khóa Xiaohongshu PGY](https://okdata.online/apis/xiaohongshu/pgy/keywords/history/) (`xiaohongshu.pgy.keywords.history`): $0.04 per call
- [Chỉ số Douyin: xu hướng từ khóa](https://okdata.online/apis/douyin/index/keywords/history/) (`douyin.index.keywords.history`): $0.006 per call · about 1 results per page
- [WeChat Index](https://okdata.online/apis/wechat/index/keywords/history/) (`wechat.index.keywords.history`): $0.15 per call · about 1 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`, `points`
- standard: —
- full: `ext`
