Douyin trend-index related keywords API

Get the keywords related to a keyword on Douyin in one week, from the platform's own keyword tool: those searched together with it and those that appear with it in content, each with its relevance, its place by relevance, its search index and its composite index. An index is the platform's score of volume, not a count of searches. About 170 items a call, 250 at most; $0.0020 per call. Errors and timeouts are not charged; an empty result is charged $0.0020.

GEThttps://api.dataxapi.com/v1/douyin/index/keywords/related
Also known asdouyin related searchesdouyin keyword relationsdouyin keyword expansionIn Chinese: 抖音巨量算数关联词 API
Price$0.0020/ call · Errors and timeouts are not charged
Returnsup to 250 a pageeverything in one answer, no paging
When an upstream failsRetried for youon the same route, or a backup route; never charged

Try it

Change a value and the request on the right follows.
Run · $0.0020

Sign in to run it; it runs on your own balance. New accounts can try this endpoint free, up to 50 calls.

The first 7 rows of a response recorded 2026-10-12 21:52 UTC for 露营车.
FieldValue
keyword露营车
related_to露营
relationquery
rank2
relevance0.08
search_index669,384
composite_index190,809
curl -G "https://api.dataxapi.com/v1/douyin/index/keywords/related" \
  --data-urlencode "keyword=露营" \
  --data-urlencode "until=2026-10-04T00:00:00Z" \
  -H "Authorization: Bearer $DATAXAPI_API_KEY"
{
  "code": "ok",
  "request_id": "c0ec3319-99cf-4ec1-8441-1e77af9db440",
  "data": {
    "items": [
      {
        "keyword": "露营车",
        "related_to": "露营",
        "relation": "query",
        "rank": 2,
        "relevance": 0.07604021617112115,
        "search_index": 669384,
        "composite_index": 190809
      },
      // … 172 more
    ]
  },
  "page": {
    "next_cursor": null,
    "cursor_expires_at": null,
    "has_more": false,
    "returned": 173
  },
  "warnings": [],
  "meta": {
    "capability": "douyin.index.keywords.related",
    "result_status": "complete",
    "fetched_at": "2026-10-12T21:52:26.000Z",
    "cached": false,
    "replayed": false,
    "unavailable": {},
    "billing": {
      "amount": "0.002",
      "currency": "USD",
      "balance_after": "9.998"
    }
  }
}

From a response recorded 2026-10-12 21:52 UTC. Names, text and IDs are examples, and so are the links: none is the recorded one (the page shows no one's personal data); the figures are as recorded. Long lists are cut. The request ID, cursor and balance are made up.

Size as sent: 26.6 KB in the standard view (26.6 KB compact, 34.9 KB full).

{
  "code": "ok",
  "request_id": "6effcad3-d2c9-41ac-8941-5e1c6e798e10",
  "data": { "items": [] },
  "page": {
    "next_cursor": null,
    "cursor_expires_at": null,
    "has_more": false,
    "returned": 0
  },
  "warnings": [],
  "meta": {
    "capability": "douyin.index.keywords.related",
    "result_status": "empty",
    "fetched_at": "2026-10-12T21:52:28.000Z",
    "cached": false,
    "replayed": false,
    "unavailable": {},
    "billing": {
      "amount": "0.002",
      "currency": "USD",
      "balance_after": "9.998"
    }
  }
}

From a response recorded 2026-10-12 21:52 UTC. The request ID and balance are made up.

Size as sent: 412 B in the standard view (412 B compact, 412 B full).

This example as a JSON file

curl -G "https://api.dataxapi.com/v1/douyin/index/keywords/related" \
  --data-urlencode "keyword=露营" \
  --data-urlencode "until=2026-10-04T00:00:00Z" \
  -H "Authorization: Bearer $DATAXAPI_API_KEY"
from dataxapi import DataXAPI

dx = DataXAPI()  # reads DATAXAPI_API_KEY
result = dx.douyin.index.keywords.related(keyword="露营", until="2026-10-04T00:00:00Z")
print(result["data"]["items"])
import { DataXAPI } from "@dataxapi/sdk";

const dx = new DataXAPI(); // reads DATAXAPI_API_KEY
const result = await dx.douyin.index.keywords.related({ keyword: "露营", until: "2026-10-04T00:00:00Z" });
console.log(result.data.items);
dataxapi call douyin.index.keywords.related 'keyword=露营' until=2026-10-04T00:00:00Z
{
  "mcpServers": {
    "dataxapi": {
      "type": "http",
      "url": "https://api.dataxapi.com/mcp",
      "headers": {
        "Authorization": "Bearer ${DATAXAPI_API_KEY}"
      }
    }
  }
}

Add this to your MCP client, then ask your agent to call douyin.index.keywords.related.

Parameters

keywordtextrequired

One keyword; letter case does not matter. Example: 露营.

untiltimerequired

Which week: relations are computed by the week (Monday to Sunday, China time), and the week returned is the last whole one ending on or before this day. The latest week is published early in the next; before that the result is empty. Example: 2026-10-04T00:00:00Z.

viewtext

How much of each item to return. All three cost the same. Values: compact, standard (default), full.

fieldslist of text

Return only these fields. Each by its path, such as author.name.

Known limits

  • About 170 items a page, 250 at most. The page size is the platform's; limit is not accepted.
  • Everything comes in one page; no cursor is issued.

Returned fields

data.items is a list of related keyword objects. Preview: the structure may change, announced beforehand.

keywordtextcompact

The related keyword

related_totextcompact

The keyword it is related to: the one asked about

relationtextcompact

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)querypostspriorafter

rankintegercompact

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

On this platform: The platform's own place by relevance; places may have gaps between them

relevancenumbercompact

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

search_indexintegercompact

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

Show all 12 fields →
composite_indexintegercompact

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

ext.relevance_changenumberfull

Change in relevance against the week before, as a ratio: 0.1 is 10% up; null for a keyword newly related this week

ext.is_newyes/nofull

Whether the keyword is newly related this week

approximatelist of objectcompact

Which numbers of this item are approximate or lower bounds; absent when all are exact

approximate[].fieldtextcompact

Path of the field, such as metrics.views

approximate[].kindtextcompact

Approximate, or a lower boundapproximatelower_bound

Typical size of one item: compact 155 B, standard 155 B, full 204 B (measured on the response recorded 2026-10-12 21:52 UTC).

When you are charged

A result with data$0.0020, once per call
An empty result$0.0020
Invalid parameters, a failure of ours or of the data source, a timeoutnot charged
CaseCharged
The most one call can cost$0.0020 (send X-Max-Price to refuse anything above your own limit)

Prices as read 2026-10-21 09:10 UTC, under price book 2, in effect since 2026-10-17 11:00 UTC; the Playground reads the price in force before a run.

If the object does not exist

A keyword the index does not cover reads like one with no related keywords that week, or a week not published yet: an empty result, never a not-found error.

Errors

What this endpoint can answer with; codes all endpoints share are on the full list.

HTTPCodeMeaningCharged
400invalid_paramsA parameter is invalidRetry: After a fixNo
402insufficient_balanceThe balance is too lowRetry: After a fixNo
502upstream_failedThe data source failedRetry: YesNo
504timeoutThe data did not arrive in time; retry with the same idempotency keyRetry: YesNo

All error codes →

Questions

How much does the Douyin trend-index related keywords API cost?

$0.0020 per call. The most one call can cost is $0.0020.

When am I not charged?

Errors and timeouts are not charged; an empty result is charged $0.0020.

How many items does one call return, and how do I get the next page?

About 170 items a page, 250 at most. The page size is the platform's; limit is not accepted. Everything comes in one page; no cursor is issued.

What happens if the object does not exist?

A keyword the index does not cover reads like one with no related keywords that week, or a week not published yet: an empty result, never a not-found error.

Where do the related keywords come from?

From 巨量算数 (Juliang Suanshu, the Douyin index), which works them out by the week, Monday to Sunday in China time. until picks the latest whole week that ended on or before that day; the newest week usually appears early the next week.

All 34 Douyin endpoints

Douyin trend-index endpoints
Douyin endpoints
Douyin Xingtu endpoints

Use it in your AI

Copy this prompt

Your API key is built in, so there is nothing to configure.

Read https://dataxapi.com/agents.md and set up DataXAPI in this agent. My API key is dx_…; use it for every DataXAPI call.
Sign in to copy it with your key

No account yet? Sign-up takes an email and no card, and a failed call is never charged.

then paste

Paste it into your agent

It reads the page the prompt points to and connects itself.

Your agent
Read https://dataxapi.com/agents.md and set up DataXAPI in this agent. My API key is dx_••••; use it for every DataXAPI call.
DataXAPI connected · 5 tools ready
now try it

Now ask something

Use one of these, or your own words.

Read https://dataxapi.com/apis/douyin/index/keywords/related.md and help me use the DataXAPI endpoint douyin.index.keywords.related (Douyin trend-index related keywords).
Prefer to set it up by hand?
dataxapi setupgives the agents on your machine (Claude Code, Codex, Cursor) the DataXAPI MCP server and the base skill. The key is read from DATAXAPI_API_KEY; none is written into a file.MCP server: https://api.dataxapi.com/mcp. The entry for your client is under MCP in the request examples of this page; then ask your agent to call douyin.index.keywords.related.Other clients →
Ask with this pageSends the Markdown version
Brief for an AIEverything needed to call it, as text
Show the text
Use the DataXAPI endpoint douyin.index.keywords.related (Douyin trend-index related keywords). Get the keywords related to a keyword on Douyin in one week, from the platform's own keyword tool: those searched together with it and those that appear with it in content, each with its relevance, its place by relevance, its search index and its composite index. An index is the platform's score of volume, not a count of searches.
Call GET https://api.dataxapi.com/v1/douyin/index/keywords/related with the header "Authorization: Bearer $DATAXAPI_API_KEY". Read the key from the environment variable DATAXAPI_API_KEY; never write it into code.
Parameters:
- keyword (required): One keyword; letter case does not matter. Example: 露营.
- until (required): Which week: relations are computed by the week (Monday to Sunday, China time), and the week returned is the last whole one ending on or before this day. The latest week is published early in the next; before that the result is empty. Example: 2026-10-04T00:00:00Z.
- view: How much of each item to return. All three cost the same. Values: compact, standard (default), full.
- fields: Return only these fields. Each by its path, such as author.name.
Price: $0.0020 per call. Errors and timeouts are not charged; an empty result is charged $0.0020.
The answer is JSON: data.items holds related keyword; meta.billing.amount is what this call was charged.
Example:
curl -G "https://api.dataxapi.com/v1/douyin/index/keywords/related" \
  --data-urlencode "keyword=露营" \
  --data-urlencode "until=2026-10-04T00:00:00Z" \
  -H "Authorization: Bearer $DATAXAPI_API_KEY"
Full reference in Markdown: https://dataxapi.com/apis/douyin/index/keywords/related.md

Names and identifiers

In Chinese
抖音巨量算数关联词 API
Endpoint ID
douyin.index.keywords.related
Endpoint
GET /v1/douyin/index/keywords/related
Last checked 2026-10-21 09:10 UTC.View the Markdown versionopenapi.jsonllms.txt

Start with one key.

207 endpoints on 21 platforms, from $0.0003 a call. Errors and timeouts are not charged.

Start free