# Douyin Topic Radar (`opspilot.cc/douyin-topic-radar`) Actor

🔥 Douyin Topic Radar | Know what to post this week One run pulls today's Douyin hot-search board (900+ live words), gives each word a 14-day trend, sorts by current heat or by rising momentum, flags the words that overlap your niche, and pulls sample videos for the ones worth writing about.

- **URL**: https://apify.com/opspilot.cc/douyin-topic-radar.md
- **Developed by:** [wang wei](https://apify.com/opspilot.cc) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$0.25 / actor start

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## 🔥 Douyin Topic Radar

Know what to post on Douyin (抖音) **this week** — one run pulls today's hot-search board (900+ words live), gives the 14-day trend for every word, sorts by current heat **or rising momentum**, flags words that overlap your niche, and pulls daily search-index curves for the keywords you're tracking.

Built for content creators, MCN teams, and e-commerce sellers planning what to post on Douyin this week — and for spotting topics *on the way up* before they peak.

### ✨ What you get

| Output | What it tells you | Decision it powers |
|---|---|---|
| **Hot-search board** | Top-N words with current `searchScore` and a full 14-day trend array | What is China's biggest short-video platform searching today? |
| **Momentum ranking** | `momentumPercent` — last 7 days vs the prior 7 | Which words are *rising*, not just big? |
| **Niche matching** | Hot words containing YOUR product/category terms, flagged with `nicheMatches[]` | Ready-made topic ideas for my niche |
| **Keyword index curves** | Daily search index for up to 3 tracked keywords, with `latestIndex` / `peakIndex` / `changePercent` | Is my target keyword climbing or falling — post now or wait? |

### 💼 Use cases

- **Deciding what to post this week versus next month** — sorting the board by `momentum` surfaces words already climbing, while sorting by `search_score` shows what is big today. A word with a positive `momentumPercent` is worth a video now; the same word sitting flat on heat is not an opportunity.
- **Catching a topic on the way up** — the 14-day `trend14d` array per word tells you whether today's `searchScore` is a spike or the start of a curve. That is the difference between riding a trend and chasing its tail.
- **Checking whether your own keyword is climbing or falling** — up to 3 tracked keywords come back as daily index curves with `latestIndex`, `peakIndex` and `changePercent`, so "post now or wait" becomes a read off the curve rather than a guess.
- **Getting a topic list for a niche in one pass** — `nicheKeywords` matching flags hot words that contain your product or category terms and collects them in `topNicheMatches[]`, which is a ready-made content calendar for a team that needs ideas by Friday.

### ✅ Who this is for

- **Content teams and creator-side accounts** planning a Douyin (抖音) weekly calendar and needing evidence for which topic to commit a production slot to.
- **MCN and agency content strategists** who must brief several client accounts at once and need the hot-search board rather than one creator's back catalogue.
- **E-commerce sellers** deciding when to open a seasonal campaign window on Douyin, where being one week late on a rising term costs the whole slot.
- **Overseas brands researching Chinese consumer interest** who cannot read the board themselves but need to know which terms Chinese users are actually searching.

### ❌ Who this is NOT for

- **The full hot-search board** — the platform returns at most 50 words per page while the board itself holds ~900+ words. This is a decision-focused top 50; if you need a specific word outside it, it will not be here.
- **Anyone wanting Douyin view counts (播放量) or post-level performance** — this actor works on the search side of the hot-search board and keyword index. It says nothing about how a video performed once published; that is a different actor.
- **Reading `momentumPercent` as a quality score** — it is a 7-days-vs-prior-7-days growth number. A negative value means the word peaked more than 7 days ago and is cooling off, which is usually the wrong week to invest in it.
- **Batch keyword tracking at scale** — index curves are capped at 3 keywords per run, with windows up to 30 days. A 20-keyword watchlist is 7 runs, not one.
- **Cross-platform trend decisions** — a Douyin hot word is not a Xiaohongshu or Weibo trend. Do not use this board to decide whether to enter a topic on another platform; the audiences and the vocabulary differ.

### 🚀 Quick start

Catch rising words in your niche and time a topic:

```json
{ "boardSize": 50, "sortBy": "momentum", "nicheKeywords": ["美妆", "防晒"], "keywords": ["防晒衣"], "trendDays": 14 }
```

You get up to 50 hotword items (each with trend + momentum + niche flags) and one index curve per tracked keyword.

### 📥 Input parameters

| Field | Type | Default | Description |
|---|---|---|---|
| `boardSize` | integer | `30` | Top-N hot words to fetch (max 50 per page). |
| `sortBy` | select | `search_score` | `search_score` = current heat; `momentum` = fastest-rising first. |
| `nicheKeywords` | stringList | — | Up to 10 words describing your product/category — free client-side matching. |
| `keywords` | stringList | — | Optional: up to 3 keywords get daily index curves (one data call covers all). |
| `trendDays` | integer | `14` | Index window for tracked keywords (2-30). |

### 📤 Output

Dataset items:

- **`hotword`** — `rank`, `keyword`, `searchScore`, `trend14d[]`, `momentumPercent`, `nicheMatches[]` (when it overlaps your niche)
- **`keyword_index`** — for tracked keywords: daily index curve, `latestIndex`, `peakIndex`, `changePercent`

#### Example item

```json
{
    "type": "hotword",
    "rank": 4,
    "keyword": "抖音游戏",
    "searchScore": 994918,
    "trend14d": [
        { "date": "20260918", "value": 499918 },
        { "date": "20260919", "value": 744778 }
    ],
    "momentumPercent": 41.8,
    "nicheMatches": []
}
```

#### Run summary

The **SUMMARY** key-value store entry holds: `totalWordsOnBoard`, `boardReturned`, `sortBy`, `nicheMatches` count, `topNicheMatches[]`, `trackedKeywords`, `keywordsTracked`, `apiCalls`, `warnings[]`.

### ⚙️ How it works

1. **Board pull** — fetches the live Douyin hot-search board (one call, `boardSize` words) with each word's recent trend history.
2. **Momentum math** — computes 7-day vs prior-7-day growth per word so you can sort by heat *or* trajectory.
3. **Niche matching & curves** — client-side matching against your niche keywords (free), plus daily index curves for your tracked keywords.

### 💰 Billing

Pay-per-result on the Apify platform — you only pay for what you run. **There is no daily run cap.**

### ❓ FAQ

**Why is the board capped at 50?** The hot-search board returns at most 50 words per page; the full board has ~900+ words and our decision-focused top-50 keeps runs fast and focused.

**Can I get the index for any keyword?** Yes — up to 3 per run, any past window up to 30 days.

**What does a negative `momentumPercent` mean?** The word peaked more than 7 days ago and is cooling off — usually not the week to invest in a video about it.

### 📚 Resources

- [Changelog](./CHANGELOG.md)
- [Apify API docs](https://docs.apify.com/api/v2) — export results as JSON / CSV / XML
- Feedback: open an issue on this actor's Issues tab

*Built by [opspilot.cc](https://opspilot.cc).*

# Changelog

This Actor's version history is a separate document: https://apify.com/opspilot.cc/douyin-topic-radar/changelog.md

# Actor input Schema

## `boardSize` (type: `integer`):

How many hot-search words to fetch, ranked by the board. Default 30, max 50 (per page).

## `sortBy` (type: `string`):

'search_score' = current heat (board order); 'momentum' = fastest-rising first (7d vs previous 7d) to catch words on the way up.

## `nicheKeywords` (type: `array`):

Words describing your product/category, e.g. \["美妆", "穿搭"]. Hot words containing any of these are flagged in nicheMatches. Max 10. Free (no extra data calls).

## `keywords` (type: `array`):

Optional. Up to 3 keywords get a daily search-index curve (one data call covers all). Use to time your content around a specific topic.

## `trendDays` (type: `integer`):

How many days of daily index for tracked keywords. Default 14, max 30.

## Actor input object example

```json
{
  "boardSize": 30,
  "sortBy": "search_score",
  "trendDays": 14
}
```

# Actor output Schema

## `dataset` (type: `string`):

hotword items + keyword_index items.

## `summary` (type: `string`):

Run-level digest: board size, niche match highlights, tracked keywords, warnings.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("opspilot.cc/douyin-topic-radar").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("opspilot.cc/douyin-topic-radar").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call opspilot.cc/douyin-topic-radar --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,opspilot.cc/douyin-topic-radar"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/ku08lO1r2cEC9PXQg/builds/Z9aYWd8TgMNYlWsKR/openapi.json
