# Douyin Hot Search List Scraper (`opspilot.cc/douyin-hot-search-list`) Actor

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

## Pricing

$0.10 / 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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Douyin Hot Search List Scraper

**EN — Get the current Douyin hot search list across 5 boards.** 5 boards supported: 热点榜 (default) / 种草榜 / 娱乐榜 / 社会榜 / 挑战榜. Each item includes rank, keyword (`word`), live heat score (`hot_value`), cover image, video count, and metadata. One run = one board snapshot.

**ZH — 抖音热搜榜 — 当前 5 大榜单一键抓取。** 支持 5 种榜单:热点榜(默认)/ 种草榜 / 娱乐榜 / 社会榜 / 挑战榜。每条含排名、关键词、热度值、封面、视频数、关联事件。一次运行 = 一个榜单快照。

Built for **trend monitoring**, **public sentiment analysis**, **competitive intel**, **brand monitoring**, and **editorial planning** on Douyin — China's #1 short-video platform.

**5 free runs / day.** No API key required — the Actor's built-in upstream key is already configured.

### Input

| Field | Type | Required | Default | Notes |
|---|---|---|---|---|
| `boardType` | string | no | `"0"` | Main board. `"0"` = 热点榜 (top hot), `"2"` = sub-boards. |
| `boardSubType` | string | no | `""` | Sub-board when `boardType="2"`. One of `""`, `"seeding"`, `"2"`, `"4"`, `"hotspot_challenge"`. Ignored when `boardType="0"`. |

#### Valid `boardType` × `boardSubType` combinations

| `boardType` | `boardSubType` | Board | 中文 |
|---|---|---|---|
| `"0"` | `""` | Top Hot | 热点榜 |
| `"2"` | `""` | Seeding | 种草榜 |
| `"2"` | `"seeding"` | Seeding (alias) | 种草榜 |
| `"2"` | `"2"` | Entertainment | 娱乐榜 |
| `"2"` | `"4"` | Social | 社会榜 |
| `"2"` | `"hotspot_challenge"` | Challenge | 挑战榜 |

```json
{
  "boardType": "0",
  "boardSubType": ""
}
```

### Output

The Actor pushes one item per trending keyword to the default dataset and writes a `SUMMARY` record.

```json
{
  "rank": 1,
  "word": "黄子韬在王者万象棋现场帅回来了",
  "hot_value": 9876543,
  "group_id": "7683501648006239497",
  "sentence_id": "2644651",
  "video_count": 3,
  "discuss_video_count": 1,
  "event_time": 1789096413,
  "cover_url": "https://p11-sign.douyinpic.com/cover1.jpeg",
  "hotlist_param": "{\"board_type\":3,\"rank\":0}",
  "rawData": { /* full upstream trending_list item */ }
}
```

**`SUMMARY` record:**

```json
{
  "ok": true,
  "boardType": "0",
  "boardSubType": "",
  "boardLabel": "热点榜",
  "activeTime": "2026-09-10 22:30",
  "requests": 1,
  "uniqueItems": 5,
  "note": "1 Run = 1 upstream request. Pass boardType=2 + boardSubType to switch between 5 boards."
}
```

### Use it together with the other Douyin Actors

This Actor is part of the 5-Actor Douyin MVP set. Use it together with:

| Where in the pipeline | Actor | Use it to |
|---:|---|---|
| you are here | **Douyin Hot Search List Scraper (you are here)** | (this Actor) |
| hashtag pipeline — before / step ① | [Douyin Hashtag Search Scraper](../douyin-hashtag-search/README.md) | if a trending word looks interesting, search it as a keyword to get the ch\_id for the full pipeline |
| hashtag pipeline — step ② | [Douyin Hashtag Detail Scraper](../douyin-hashtag-detail/README.md) | follow up on a discovered topic with rich ch\_info |
| hashtag pipeline — step ③ | [Douyin Hashtag Video List Scraper](../douyin-hashtag-video-list/README.md) | walk the full video list of the discovered topic |
| sister Actor | [Douyin Live Hot Search List Scraper](../douyin-live-hot-search-list/README.md) | compare mainstream vs LIVE trends — live often leads mainstream by 30-90 min |

**You are here:** **Douyin Hot Search List Scraper** — run this on its own for the upstream use case described above, or chain it with the other 4 Actors for a full Douyin keyword → hashtag → videos → trends pipeline.

### Use cases

| Persona | Use it for |
|---|---|
| Trend researcher | Snapshot the top 50-100 hot keywords across 5 boards for a daily digest |
| Brand manager | Track whether your brand / campaign is climbing the 热点榜 |
| Public sentiment analyst | Sample keywords from 社会榜 + 娱乐榜 to gauge mood |
| Editorial planner | Surface trending topics for content ideation |
| Competitive intel | Compare board coverage between rivals in the same vertical |

### Why this Actor exists

Douyin's hot search boards drive 90%+ of organic discovery on the platform. Brands, creators, and agencies that miss the early signal spend 3-5x more to catch up later. This Actor is the **step ③** of the 4-Actor Douyin MVP set — perfect for daily trend dashboards and monitoring.

### Pricing

Free users are limited to **5 runs per day**. Paid users (`APIFY_USER_IS_PAYING=1`) have unlimited runs. The Actor itself adds no markup — you pay the upstream provider per request plus the standard Apify compute unit cost.

### Test locally

```bash
cd douyin-hot-search-list
UPSTREAM_API_KEY=... UPSTREAM_BASE_URL=<your-upstream-base-url> npm test
```

- `node test/unit.js` — 6 unit assertions on normalize / extract / board-label lookup.
- `node test/integration.js` — 1 live call against 热点榜 (boardType=0, boardSubType="").

### Output schema

See `.actor/output_schema.json` for the full type schema, or read it at runtime via the Apify API.

### License

MIT

# Actor input Schema

## `boardType` (type: `string`):

0 = 热点榜 (default). 2 = other sub-typed boards (pass board\_sub\_type).

## `boardSubType` (type: `string`):

Required when boardType=2. "seeding" (种草), "2" (娱乐), "4" (社会), "hotspot\_challenge" (挑战). Empty = 热点榜.

## Actor input object example

```json
{
  "boardType": "0",
  "boardSubType": ""
}
```

# Actor output Schema

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

One normalized dataset item per matched item. See output\_schema section of README for the per-actor item shape (topic\_id/ch\_id, hot\_value, engagement metrics, etc.).

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

Run-level summary: input params (keyword / chId / boardType / etc.), requests, uniqueItems, itemsPushed, activeTime, tier (paid/free/free-unchecked), runsToday, dailyLimit, notes.

# 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-hot-search-list").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-hot-search-list").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-hot-search-list --silent --output-dataset

```

## MCP server setup

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

```

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/cNAcF8Yiql86h1Gq9/builds/6clG9mpp06ui3de8M/openapi.json
