FeedMCP

Data APIs / Douyin

Douyin keyword index API

Daily composite and search index of 1–5 keywords on Douyin, the last 30 days by default, optionally by province.

Item Value
Endpoint GET https://api.feedmcp.com/v1/douyin/index/keywords/history
ID douyin.index.keywords.history
Price $0.006 / call
Returns A page of Stats objects
Auth Authorization: Bearer $FEEDMCP_API_KEY

One per keyword per day: composite_index and search_index, with the keyword as subject_id. Without dates, the 30 days to yesterday.

Parameters

Name Type Required Description
keywords string yes Up to five keywords, separated by commas
start_date string no Start date, YYYYMMDD or YYYY-MM-DD; defaults to the last 30 days
end_date string no End date, default yesterday
region string no Only these provinces, comma separated; nationwide by default

Every endpoint also takes view=full to include the platform's raw data as raw, at the same price.

Returned fields

data.items is a list of Stats objects, with the same fields on every platform:

Field Type Description
platform string Platform
subject_id string Whose figures these are: creator ID or keyword
period string | null Period covered; for day-by-day lists, the day (YYYY-MM-DD)
metrics object The figures, named on each endpoint page; rates are 0–1 and money is CNY

When you are charged

$0.006 per successful call, including an empty result (an empty search is still an answer). Bad parameters, platform errors and timeouts are free.

Each answer carries meta.billing: what this call cost and the balance left.

Request

cURL

curl "https://api.feedmcp.com/v1/douyin/index/keywords/history?keywords=%E9%9C%B2%E8%90%A5" \
  -H "Authorization: Bearer $FEEDMCP_API_KEY"

Python

import os, requests

r = requests.get(
    "https://api.feedmcp.com/v1/douyin/index/keywords/history",
    params={"keywords": "露营"},
    headers={"Authorization": f"Bearer {os.environ['FEEDMCP_API_KEY']}"},
    timeout=30,
)
print(r.json())

JavaScript

const res = await fetch("https://api.feedmcp.com/v1/douyin/index/keywords/history?keywords=%E9%9C%B2%E8%90%A5", {
  headers: { Authorization: `Bearer ${process.env.FEEDMCP_API_KEY}` },
});
console.log(await res.json());

MCP

From an AI with FeedMCP installed, the call tool:

{
  "endpoint": "douyin.index.keywords.history",
  "params": {
    "keywords": "露营"
  },
  "max_price": "0.006"
}

Response

The data below is made up; the shape is the real one.

{
  "code": "ok",
  "request_id": "req_7Qm2kXb9TzLp",
  "data": {
    "items": [
      {
        "platform": "douyin",
        "subject_id": "露营",
        "period": "2026-10-20",
        "metrics": {
          "composite_index": 328557,
          "search_index": 745293
        }
      },
      {
        "platform": "douyin",
        "subject_id": "露营",
        "period": "2026-10-21",
        "metrics": {
          "composite_index": 318599,
          "search_index": 701234
        }
      }
    ]
  },
  "page": {
    "next_cursor": null,
    "has_more": false
  },
  "warnings": [],
  "meta": {
    "endpoint": "douyin.index.keywords.history",
    "platform": "douyin",
    "fetched_at": "2026-11-19T08:00:00.000Z",
    "source": "FeedMCP",
    "catalog_revision": "d09a736bd39e8b3f",
    "billing": {
      "charged": true,
      "amount": "0.006",
      "currency": "USD",
      "balance": "9.98"
    }
  }
}

Errors are described in Errors: each says whether you were charged (charged) and whether to retry (retry).

Other Douyin endpoints

Questions

How much does the Douyin keyword index endpoint cost?

$0.006 per successful call, including an empty result (an empty search is still an answer). Bad parameters, platform errors and timeouts are free.

Do I need a platform account?

No. Only public data is read.

A video ID is the number after /video/; an account is the sec_user_id after /user/, not the Douyin handle.

How do I get more items?

When the answer has page.next_cursor, pass it back as cursor for the next page. Each page is billed on its own.

How do I use it from an AI?

Install the MCP server and ask; your AI calls douyin.index.keywords.history.