# Douyin 抖音 Hot Search Scraper: Trending Topics (`theshark/douyin-hot-search-scraper`) Actor

Scrape Douyin (抖音) hot search lists without a login: all five boards (hot, entertainment, society, challenges, seeding) with rank, heat value, views, video count, cover, label and event time for every trending topic. No input needed. Pay only for results.

- **URL**: https://apify.com/theshark/douyin-hot-search-scraper.md
- **Developed by:** [TheShark](https://apify.com/theshark) (community)
- **Categories:** Social media, Videos, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.59 / 1,000 trending topics

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 抖音 Hot Search Scraper: Trending Topics

Scrape the [Douyin](https://www.douyin.com) (抖音, the Chinese TikTok) hot search lists (抖音热榜): every trending topic on all five boards with its rank, heat value, views, video count, cover, label and event time. One clean row per topic.

No Douyin account, login, cookies or proxies of your own are needed. You pay only for topics that were collected.

### What can you do with Douyin Hot Search Scraper?

- **Follow what China is talking about:** the trending topics right now, with their heat.
- **Track trends over time:** schedule the actor every hour and build your own history of the boards.
- **Plan content:** pick topics and challenges while they are rising.
- **Watch your brand or niche:** see when your topic reaches the boards.
- **Use it as a Douyin API:** start runs and get results from your own code through the Apify API.

### What data can you get from Douyin hot search?

| Data | Fields |
|---|---|
| Topic | text, board, rank, best rank, heat value, label |
| Reach | views, number of videos, number of related videos |
| Media | cover image |
| Time | event time |
| IDs | sentence ID, group ID |

### How to scrape Douyin hot search

1. Choose boards, or leave the field empty for all five.
2. Click **Start**. A row per topic appears in the dataset.
3. Download the results as JSON, CSV, Excel or HTML, or get them through the API.

### Input

| Field | Description |
|---|---|
| Boards | `hot`, `entertainment`, `society`, `challenge`, `seeding`. Empty means all five. |

```json
{
  "boards": ["hot", "entertainment"]
}
```

### Output

| Field | Description |
|---|---|
| `board` | Which board the topic is on (`trending` for rising topics, see below). |
| `board_active_time` | Board snapshot time as Douyin reports it (Beijing time, `YYYY-MM-DD HH:MM:SS`). |
| `position` | Rank on the board (0 = Douyin's pinned top slot, which has no rank or metrics). |
| `max_rank` | Best rank the topic has reached. |
| `word` | The topic text. |
| `hot_value` | Douyin's heat score. |
| `view_count` | Topic views. |
| `video_count` | Videos in the topic. |
| `discuss_video_count` | Videos discussing the topic. |
| `event_time` | When the topic started trending, unix seconds. |
| `event_time_iso` | Same, ISO 8601 UTC. |
| `is_pinned` | Douyin's pinned top slot (置顶; no rank and no metrics). |
| `label` | Douyin badge code, empty when none (`label_url` shows the badge). |
| `label_url` | Badge image URL. |
| `word_cover` | Topic cover image URL. |
| `word_type` | Douyin topic type code (14 = pinned slot). |
| `sentence_id` | Topic ID — use it to drill into the topic on Douyin. |
| `group_id` | Douyin group ID linked to the topic (empty for the pinned slot). |
| `sentence_tag` | Douyin topic category code. |
| `ok` | `true` for a successful row. |

**Rising topics.** When the `hot` board is scraped, Douyin also returns its "实时上升热点" list
(about 5 fast-rising topics). These come as extra rows with `board: "trending"` at no extra cost;
their `position` is the order in that list (Douyin sends no rank for them) and `hot_value` is usually 0.

#### Row statuses

| Row | Meaning | Charged? |
|---|---|---|
| `ok: true` | The topic was collected. | Yes |
| `ok: false` | The board was not collected. `error` and `reason` say why; run it again later. | No |

Rows with `ok: false` carry the `board`.

### How much does it cost to scrape Douyin hot search?

The actor uses pay-per-event pricing: a flat price per collected topic and a small fee per run start. The current prices are on the **Pricing** tab.

| Event | When it is charged |
|---|---|
| Result | One topic collected (`ok: true`). |
| Actor start | Once per run. |

You pay only for what was delivered:

- Only rows with data are charged. Rows with `ok: false` are free.
- Set a maximum cost per run in Apify and the actor stops cleanly when it is reached, keeping everything collected so far.
- Nothing is charged twice in one run, even if Apify restarts or migrates the run.

### Good to know

- **About 250 topics per run** across the five boards.
- **The `hot` board also includes trending topics** (`board: "trending"`), the list Douyin shows under the main board.
- **Data is in Chinese**, exactly as Douyin shows it.

### Integrations and API

- **API:** start runs and download results with the [Apify API](https://docs.apify.com/api/v2) or the Apify clients for Python and JavaScript.
- **Schedules:** run the actor every hour, day or week and keep the numbers fresh.
- **Integrations:** send results to Google Sheets, Slack, Make, Zapier, webhooks and other tools supported by Apify.

### FAQ

**Do I need a Douyin account or proxies?**
No. The actor does not log in and uses its own proxies.

**Do I need to enter anything?**
No. Run it as is to get all five boards.

**How often do the boards change?**
Douyin updates them all the time; schedule the actor as often as you need.

**Do I pay for topics that were not collected?**
No. Only rows with data are charged.

# Actor input Schema

## `boards` (type: `array`):

Hot boards to fetch: hot, entertainment, society, challenge, seeding. Leave empty for all five.

## Actor input object example

```json
{}
```

# Actor output Schema

## `results` (type: `string`):

One row per trending topic on the five boards: rank, heat value, views, video count, cover and label.

# 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("theshark/douyin-hot-search-scraper").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("theshark/douyin-hot-search-scraper").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 theshark/douyin-hot-search-scraper --silent --output-dataset

```

## MCP server setup

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

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/E3QYlS7Sa4wEy9lP2/builds/AJbKtoOu4iw9MUMSy/openapi.json
