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.

GETPOSThttps://api.dataxapi.com/v1/douyin/index/keywords/history
Also known asDouyin keyword index APIOcean Engine indexJuliang Suanshu keyword indexdouyin keyword trenddouyin search indexdouyin index historyIn Chinese: 抖音巨量算数关键词热度趋势 API
Price$0.0060/ call · Errors and timeouts are not charged
Returnsup to 5 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.0060

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

The first 7 rows of a response recorded 2026-10-12 21:47 UTC for 咖啡.
search_indexcomposite_index9/1 – 9/7
9/19/29/39/49/59/69/7
7-day average · search_index4,864,388
Highest · 9/5 · search_index5,608,382
Lowest · 9/2 · search_index4,430,237
As a table
datesearch_indexcomposite_index
2026-09-014,542,0971,627,826
2026-09-024,430,2371,603,543
2026-09-034,439,0491,606,224
2026-09-044,590,1721,648,872
2026-09-055,608,3821,966,637
2026-09-065,341,9701,888,380
2026-09-075,098,8081,808,789
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).

This example as a JSON file

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

keywordtextgive exactly one of keywords, keyword

One keyword, at most 50 characters and without a comma; letter case does not matter. Example: 咖啡.

keywordslist of textgive exactly one of keywords, keyword

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"].

sincetimerequired

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.

untiltimerequired

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.

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.

A request with keywords is a POST with a JSON body; every other request is a GET.

Known limits

Returned fields

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

keywordtextcompact

The keyword

On this platform: As the platform writes it: Latin letters in lower case

pointslist of objectcompact

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

points[].datetimecompact

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_indexintegercompact

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

points[].composite_indexintegercompact

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

points[].notesintegerstandardThe platform has none

Posts about the keyword that day

Show all 18 fields →
points[].impressionsintegerstandardThe platform has none

Times those posts were shown that day

points[].viewsintegerstandardThe platform has none

Times those posts were read that day

points[].engagementsintegerstandardThe platform has none

Engagements with those posts that day

ext.composite_averageintegerfull

Daily average of the composite index over the period asked for

ext.search_averageintegerfull

Daily average of the search index over the period asked for

ext.previous_composite_averageintegerfull

Daily average of the composite index over the period of the same length before it

ext.previous_search_averageintegerfull

Daily average of the search index over the period of the same length before it

ext.year_ago_composite_averageintegerfull

Daily average of the composite index over the same period a year earlier

ext.year_ago_search_averageintegerfull

Daily average of the search index over the same period a year earlier

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 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 none
points[].impressionsThe platform has none
points[].viewsThe platform has none
points[].engagementsThe platform has none

When you are charged

A result with data$0.0060, once per call
An empty result$0.0060
Invalid parameters, a failure of ours or of the data source, a timeoutnot charged
CaseCharged
The most one call can cost$0.0060 (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 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.

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

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/history.md and help me use the DataXAPI endpoint douyin.index.keywords.history (Douyin trend-index keyword trends).
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 →
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.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.md

Names and identifiers

In Chinese
抖音巨量算数关键词热度趋势 API
Endpoint ID
douyin.index.keywords.history
Endpoint
GET / POST /v1/douyin/index/keywords/history
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