Keyword index history object

2 endpoints on 2 platforms return the Keyword index history object with the same 8 fields, so code written for one platform reads the others unchanged. A call costs $0.0060 to $0.0400. It is a preview structure and may still change.

Preview object · Updated 2026-10-17Open in ChatGPTOpen in Claude

Keyword index history is a keyword's index day by day, from the platform's own keyword tool: Douyin's trend-index (巨量算数) or Xiaohongshu's PGY (蒲公英). Each entry of points is one China-time day with its search_index, an index and not a count of searches; Douyin adds composite_index, Xiaohongshu the day's notes, impressions, reads and engagements.

keyword identifies it. Related keyword gives the words to track next, and on Douyin Keyword audience says who is behind the word; the two platforms' indexes are not on one scale, so compare a keyword with itself or with another keyword on the same platform.

Fields

A field the platform cannot give is left out of the item and named in meta.unavailable. It is never filled with a guess or a zero.

keyword text

The keyword

points list of object

The figures day by day, one entry a day, oldest first

points[].date time

The day: a calendar day in China time (UTC+8), written as midnight UTC of its date (8 a.m. that day in China); passed back as since or until it asks for that same day

points[].search_index integer

Search index of the day: the platform's index of how much the keyword was searched, not a count of searches

points[].composite_index integer

Composite index of the day: the platform's index of how much attention content about the keyword drew, not a count

points[].notes integer standard

Posts about the keyword that day

points[].impressions integer standard

Times those posts were shown that day

points[].views integer standard

Times those posts were read that day

points[].engagements integer standard

Engagements with those posts that day

Where each number comes from

The same field name does not always mean the same act on every platform. This table says which of the platform's own numbers goes into the field.

FieldWhat it holds thereOn
keywordAs the platform writes it: Latin letters in lower caseDouyin

What a platform cannot give

A platform stands against a field when none of its endpoints gives it.

FieldNot available on
points[].composite_indexXiaohongshu (RedNote)
points[].notesDouyin
points[].impressionsDouyin
points[].viewsDouyin
points[].engagementsDouyin
One endpoint may still leave out a field another gives: each endpoint's page lists what it cannot give, and every answer says so in meta.unavailable.

Endpoints that return Keyword index history

The number beside each platform is how many of its endpoints return it.

EndpointPathPrice
Douyin trend-index keyword trendsGET/v1/douyin/index/keywords/history$0.0060
Xiaohongshu PGY keyword search indexGET/v1/xiaohongshu/pgy/keywords/history$0.0400

Example

One item from douyin.index.keywords.history, as recorded 2026-10-12 21:47 UTC. Names, text, IDs and links are examples; the figures are as recorded.

Keyword index history · douyin.index.keywords.history
{
  "keyword": "咖啡",
  "points": [
    {
      "date": "2026-09-01T00:00:00Z",
      "search_index": 4542097,
      "composite_index": 1627826
    },
    {
      "date": "2026-09-02T00:00:00Z",
      "search_index": 4430237,
      "composite_index": 1603543
    },
    {
      "date": "2026-09-03T00:00:00Z",
      "search_index": 4439049,
      "composite_index": 1606224
    },
    {
      "date": "2026-09-04T00:00:00Z",
      "search_index": 4590172,
      "composite_index": 1648872
    },
    {
      "date": "2026-09-05T00:00:00Z",
      "search_index": 5608382,
      "composite_index": 1966637
    },
    {
      "date": "2026-09-06T00:00:00Z",
      "search_index": 5341970,
      "composite_index": 1888380
    },
    {
      "date": "2026-09-07T00:00:00Z",
      "search_index": 5098808,
      "composite_index": 1808789
    },
    // … 23 more
  ]
}

The whole response is on the endpoint's page →

Related

Other objects