Douyin trend-index keyword trends API
Get the day-by-day search index and composite index of a keyword, or of one to five keywords at once, on Douyin over a date range, from 巨量算数 (the Douyin index), with the daily averages of the period, of the one before and of a year earlier. An index is the platform's score of volume, not a count of searches; days are calendar days in China time (UTC+8). About 1 item a call, 5 at most; $0.0060 per call. Errors and timeouts are not charged; an empty result is charged $0.0060.
Try it
Change a value and the request on the right follows.Sign in to run it; it runs on your own balance. New accounts can try this endpoint free, up to 16 calls.
Used to call POST /v1/douyin/index/keyword-interpretation / POST /v1/douyin/index/keyword-trends? It is this address now. What changed for old endpoints
search_indexcomposite_index9/1 – 9/7search_index4,864,388search_index5,608,382search_index4,430,237As a table
curl "https://api.dataxapi.com/v1/douyin/index/keywords/history" \ -H "Authorization: Bearer $DATAXAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{"since":"2026-09-01T00:00:00Z","until":"2026-09-30T00:00:00Z","keywords":["咖啡","CityWalk"]}'
{
"code": "ok",
"request_id": "53564b2f-0976-4ff1-bacd-8f35e1e89865",
"data": {
"items": [
{
"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
]
},
// … 1 more
]
},
"page": {
"next_cursor": null,
"cursor_expires_at": null,
"has_more": false,
"returned": 2
},
"warnings": [],
"meta": {
"capability": "douyin.index.keywords.history",
"result_status": "complete",
"fetched_at": "2026-10-12T21:47:47.000Z",
"cached": false,
"replayed": false,
"unavailable": {
"points.notes": "platform",
"points.impressions": "platform",
"points.views": "platform",
"points.engagements": "platform"
},
"billing": {
"amount": "0.006",
"currency": "USD",
"balance_after": "9.994"
}
}
}From a response recorded 2026-10-12 21:47 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: 5.2 KB in the standard view (5.2 KB compact, 5.6 KB full).
{
"code": "ok",
"request_id": "2f84dceb-a3e5-448e-906d-070c3e66e29d",
"data": { "items": [] },
"page": {
"next_cursor": null,
"cursor_expires_at": null,
"has_more": false,
"returned": 0
},
"warnings": [],
"meta": {
"capability": "douyin.index.keywords.history",
"result_status": "empty",
"fetched_at": "2026-10-12T21:47:49.000Z",
"cached": false,
"replayed": false,
"unavailable": {
"points.notes": "platform",
"points.impressions": "platform",
"points.views": "platform",
"points.engagements": "platform"
},
"billing": {
"amount": "0.006",
"currency": "USD",
"balance_after": "9.994"
}
}
}From a response recorded 2026-10-12 21:47 UTC. The request ID and balance are made up.
Size as sent: 527 B in the standard view (527 B compact, 527 B full).
curl "https://api.dataxapi.com/v1/douyin/index/keywords/history" \ -H "Authorization: Bearer $DATAXAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{"since":"2026-09-01T00:00:00Z","until":"2026-09-30T00:00:00Z","keywords":["咖啡","CityWalk"]}'
from dataxapi import DataXAPI dx = DataXAPI() # reads DATAXAPI_API_KEY result = dx.douyin.index.keywords.history(since="2026-09-01T00:00:00Z", until="2026-09-30T00:00:00Z", keywords=["咖啡", "CityWalk"]) print(result["data"]["items"])
import { DataXAPI } from "@dataxapi/sdk";
const dx = new DataXAPI(); // reads DATAXAPI_API_KEY
const result = await dx.douyin.index.keywords.history({ since: "2026-09-01T00:00:00Z", until: "2026-09-30T00:00:00Z", keywords: ["咖啡", "CityWalk"] });
console.log(result.data.items);dataxapi call douyin.index.keywords.history since=2026-09-01T00:00:00Z until=2026-09-30T00:00:00Z 'keywords=咖啡,CityWalk'{
"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.history.
Parameters
keywords, keywordOne keyword, at most 50 characters and without a comma; letter case does not matter. Example: 咖啡.
keywords, keywordOne to five keywords, each at most 50 characters and without a comma; letter case does not matter. One item comes back per keyword that has figures; a keyword the index does not cover is not in the answer. Example: ["咖啡","CityWalk"].
The first day wanted: the China-time (UTC+8) calendar day this moment falls on; 2026-09-01 means 1 September. Example: 2026-09-01T00:00:00Z.
The last day wanted, read the same way. The platform publishes a day or two late: a day it has no figure for yet has a null index. Example: 2026-09-30T00:00:00Z.
How much of each item to return. All three cost the same. Values: compact, standard (default), full.
Return only these fields. Each by its path, such as author.name.
A request with keywords is a POST with a JSON body; every other request is a GET.
Known limits
- About 1 item a page, 5 at most. The page size is the platform's;
limitis not accepted. - Everything comes in one page; no cursor is issued.
- 4 fields of the object are not available from this endpoint
Returned fields
data.items is a list of keyword index history objects. Preview: the structure may change, announced beforehand.
The keyword
On this platform: As the platform writes it: Latin letters in lower case
The figures day by day, one entry a day, oldest first
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
Search index of the day: the platform's index of how much the keyword was searched, not a count of searches
Composite index of the day: the platform's index of how much attention content about the keyword drew, not a count
Posts about the keyword that day
Show all 18 fields →
Times those posts were shown that day
Times those posts were read that day
Engagements with those posts that day
Daily average of the composite index over the period asked for
Daily average of the search index over the period asked for
Daily average of the composite index over the period of the same length before it
Daily average of the search index over the period of the same length before it
Daily average of the composite index over the same period a year earlier
Daily average of the search index over the same period a year earlier
Which numbers of this item are approximate or lower bounds; absent when all are exact
Path of the field, such as metrics.views
Approximate, or a lower boundapproximatelower_bound
Typical size of one item: compact 2.3 KB, standard 2.3 KB, full 2.5 KB (measured on the response recorded 2026-10-12 21:47 UTC).
What this endpoint cannot give
points[].notesThe platform has nonepoints[].impressionsThe platform has nonepoints[].viewsThe platform has nonepoints[].engagementsThe platform has noneWhen you are charged
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 is not in the answer; when none of the keywords asked for has figures the result is empty, never a not-found error. Asking only for days the platform has not published yet is an empty result too.
Errors
What this endpoint can answer with; codes all endpoints share are on the full list.
invalid_paramsA parameter is invalidRetry: After a fixNoinsufficient_balanceThe balance is too lowRetry: After a fixNoupstream_failedThe data source failedRetry: YesNotimeoutThe data did not arrive in time; retry with the same idempotency keyRetry: YesNoQuestions
How much does the Douyin trend-index keyword trends API cost?
$0.0060 per call. The most one call can cost is $0.0060.
When am I not charged?
Errors and timeouts are not charged; an empty result is charged $0.0060.
How many items does one call return, and how do I get the next page?
About 1 item a page, 5 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 is not in the answer; when none of the keywords asked for has figures the result is empty, never a not-found error. Asking only for days the platform has not published yet is an empty result too.
Where do the figures come from?
From 巨量算数 (Juliang Suanshu, also called the Douyin index), Douyin's own keyword index tool: the search index and the composite index it shows for the keyword, day by day. No Douyin or advertiser account is needed.
How often is it updated?
One figure per calendar day in China time (UTC+8). The platform publishes a day or two late: a day it has no figure for yet comes back with a null index.
How long a range can I ask for?
Any run of whole days from since to until, both included; one call costs the same whatever the range. The example asks for September 2026. Each keyword also comes with the daily averages of the period, of the period before and of the same period a year earlier.
How many keywords can one call take?
One with keyword, or one to five with keywords (a POST). The price is per call, $0.0060, so five keywords cost the same as one. A keyword the index does not cover is left out of the answer.
How do I use it in ChatGPT or Claude?
Connect DataXAPI once (one prompt with your key, on the agents page), then ask in plain words: "Get the Douyin index of 咖啡 for September 2026 with DataXAPI." The agent calls douyin.index.keywords.history and each call is charged $0.0060.
All 34 Douyin endpoints
Use it in your AI
Copy this prompt
Your API key is built in, so there is nothing to configure.
No account yet? Sign-up takes an email and no card, and a failed call is never charged.
Paste it into your agent
It reads the page the prompt points to and connects itself.
Now ask something
Use one of these, or your own words.
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.history.Other clients →Show the text
Use the DataXAPI endpoint douyin.index.keywords.history (Douyin trend-index keyword trends). Get the day-by-day search index and composite index of a keyword, or of one to five keywords at once, on Douyin over a date range, from 巨量算数 (the Douyin index), with the daily averages of the period, of the one before and of a year earlier. An index is the platform's score of volume, not a count of searches; days are calendar days in China time (UTC+8).
Call POST https://api.dataxapi.com/v1/douyin/index/keywords/history 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: One keyword, at most 50 characters and without a comma; letter case does not matter. Example: 咖啡.
- keywords: One to five keywords, each at most 50 characters and without a comma; letter case does not matter. One item comes back per keyword that has figures; a keyword the index does not cover is not in the answer. Example: ["咖啡","CityWalk"].
- since (required): The first day wanted: the China-time (UTC+8) calendar day this moment falls on; 2026-09-01 means 1 September. Example: 2026-09-01T00:00:00Z.
- until (required): The last day wanted, read the same way. The platform publishes a day or two late: a day it has no figure for yet has a null index. Example: 2026-09-30T00: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.0060 per call. Errors and timeouts are not charged; an empty result is charged $0.0060.
The answer is JSON: data.items holds keyword index history; meta.billing.amount is what this call was charged.
Example:
curl "https://api.dataxapi.com/v1/douyin/index/keywords/history" \
-H "Authorization: Bearer $DATAXAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"since":"2026-09-01T00:00:00Z","until":"2026-09-30T00:00:00Z","keywords":["咖啡","CityWalk"]}'
Full reference in Markdown: https://dataxapi.com/apis/douyin/index/keywords/history.mdNames and identifiers
- In Chinese
- 抖音巨量算数关键词热度趋势 API
- Endpoint ID
douyin.index.keywords.history- Endpoint
GET / POST /v1/douyin/index/keywords/history
Start with one key.
207 endpoints on 21 platforms, from $0.0003 a call. Errors and timeouts are not charged.