Related keyword object

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

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

A Related keyword is one word linked to the keyword asked about, with how it is linked (relation), its rank and its search index. On Douyin it is a word searched together with the keyword or seen with it in content; on Xiaohongshu, what people search before and after it.

related_to is the keyword asked about. A related word can go straight back in as the keyword of Keyword index history 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 related keyword

related_to text

The keyword it is related to: the one asked about

relation text

How it is related: query (searched together with the keyword asked about), posts (appears together with it in content), prior (searched before it), after (searched after it): query posts prior after

rank integer

Position by relevance among the keywords of the same relation, from 1

relevance number

How closely it is related to the keyword asked about, 0 to 1

search_index integer

Search index of the related keyword: the platform's index, not a count of searches; null where the platform gives no figure for the word

composite_index integer

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

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
rankThe platform's own place by relevance; places may have gaps between themDouyin

What a platform cannot give

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

FieldNot available on
relevanceXiaohongshu (RedNote)
composite_indexXiaohongshu (RedNote)
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 Related keyword

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

EndpointPathPrice
Douyin trend-index related keywordsGET/v1/douyin/index/keywords/related$0.0020
Xiaohongshu PGY related keywordsGET/v1/xiaohongshu/pgy/keywords/related$0.0400

Example

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

Related keyword · douyin.index.keywords.related
{
  "keyword": "露营车",
  "related_to": "露营",
  "relation": "query",
  "rank": 2,
  "relevance": 0.07604021617112115,
  "search_index": 669384,
  "composite_index": 190809
}

The whole response is on the endpoint's page →

Related

Other objects