# Douyin Search Scraper - 抖音 Videos by Keyword (`seemuapps/douyin-search-scraper`) Actor

Search Douyin (抖音, TikTok China) videos by keyword: captions, hashtags, likes, comments, shares, creators, music and watermark-free MP4 links. No login.

- **URL**: https://apify.com/seemuapps/douyin-search-scraper.md
- **Developed by:** [Seemu Scraping](https://apify.com/seemuapps) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $9.00 / 1,000 videos

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 Search Scraper - 抖音 Videos by Keyword

Search Douyin (抖音, the Chinese version of TikTok) by keyword and export every matching video with its caption, hashtags, likes, comments, shares, saves, creator and music, plus a watermark-free MP4 link. Filter by publish date and video length, sort by relevance, most liked or newest. No login, no Chinese phone number and no Douyin account needed.

### What you get

One row per video:

- **Video**: video ID and URL, description, hashtags, post date, duration, cover image, photo-post flag and image URLs, the province it was posted from
- **Engagement**: likes, comments, shares and saves (collections)
- **Creator**: user ID, sec_uid, Douyin ID, nickname, follower count, verification label and profile URL
- **Music**: sound ID, title, artist and original-sound flag
- **Media**: watermark-free MP4 URL, plus an optional permanent copy of the MP4 in your run's storage
- **Search context**: the keyword and the video's position in the results

### Use cases

- **China market research**: see what Chinese consumers post about a product, brand or category
- **Competitor and brand monitoring**: track videos mentioning your brand or competitors on Douyin
- **Trend and content research**: find the most-liked and newest videos for any topic, then reuse the format on TikTok, Reels or Shorts
- **KOL and influencer discovery**: find creators already making content in your niche, with follower counts
- **Cross-border e-commerce**: spot products going viral in China before they reach other markets

### How to use

1. Enter one or more **Search keywords** (Chinese keywords give the most results, e.g. 美食, 口红, 露营)
2. Set **Max videos per keyword**
3. Optionally pick **Sort by**, **Published within** and **Video length**
4. Turn on **Download videos (MP4)** if you need permanent copies of the files
5. Run the actor and export from the **Dataset** tab to JSON, CSV, Excel or Google Sheets

**Tip:** Douyin stops returning results for one keyword after a few hundred videos. For broader coverage add related keywords (e.g. 咖啡, 咖啡店, 手冲咖啡).

**Note on date filters:** with **Published within** set, Douyin returns only a short list per keyword (often under 20 videos). For recent content at volume, sort by **Newest** without a date filter instead.

### Output example

```json
{
  "keyword": "lipstick",
  "position": 1,
  "videoId": "7685893884404966521",
  "url": "https://www.douyin.com/video/7685893884404966521",
  "description": "#外贸常用英语 #外贸英语零基础 #零基础学外贸英语 #外贸商务英语词汇 #外贸高频词汇",
  "createdAt": "2026-09-15T22:33:40.000Z",
  "hashtags": [
    "外贸常用英语",
    "外贸英语零基础",
    "零基础学外贸英语",
    "外贸商务英语词汇",
    "外贸高频词汇"
  ],
  "isImagePost": false,
  "imageUrls": [],
  "durationSeconds": 13.8,
  "likes": 10,
  "comments": 4,
  "shares": 0,
  "saves": 2,
  "postedFrom": "广东",
  "authorId": "1502354125358523",
  "authorSecUid": "MS4wLjABAAAAA-f3KqFACPu7t9rzw7SUqOned1PXJLorENajXQFNs1srnC3VEMZA1dxv82Pfc3wj",
  "authorDouyinId": "36495411761",
  "authorNickname": "闻教练教英语",
  "authorFollowers": 1998,
  "authorVerification": null,
  "authorUrl": "https://www.douyin.com/user/MS4wLjABAAAAA-f3KqFACPu7t9rzw7SUqOned1PXJLorENajXQFNs1srnC3VEMZA1dxv82Pfc3wj",
  "musicId": "7685893807765834542",
  "musicTitle": "@闻教练教英语创作的原声",
  "musicAuthor": "闻教练教英语",
  "isOriginalSound": true,
  "coverUrl": "https://p11-sign.douyinpic.com/tos-cn-p-0015c000-ce/oEOBLHXfGpM1iEAwIP8RexnBwinAnbBiRXVLIL…",
  "videoUrl": "https://v3-search.douyinvod.com/102166a8c885fd921e49fd67cd78a9ec/6adea14d/video/tos/cn/tos…",
  "videoFileUrl": null,
  "scrapedAt": "2026-10-25T23:39:29.132Z"
}
```

### FAQ

**Do I need a Douyin account or cookies?** No.

**Is the MP4 watermark-free?** Yes. `videoUrl` is the original file without the Douyin watermark. It's a direct CDN link that expires after a few hours, so turn on **Download videos** if you need to keep the file.

**Why are play counts missing?** Douyin doesn't publish view counts. Likes, comments, shares and saves are public and included.

# Actor input Schema

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

One or more keywords. Chinese works best (美食, 口红, 旅行), but English, brand names and hashtags also work. Each keyword is searched separately; duplicates across keywords are removed.

## `maxResultsPerKeyword` (type: `integer`):

How many videos to collect for each keyword. 0 = as many as Douyin returns (usually a few hundred per keyword).

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

Order of the search results.

## `publishedWithin` (type: `string`):

Only return videos posted in this period. Douyin returns far fewer results per keyword with a date filter (often under 20), so add more keywords for volume.

## `videoDuration` (type: `string`):

Only return videos of this length.

## `downloadVideos` (type: `boolean`):

Save each watermark-free MP4 to the run's Key-value store and add a permanent videoFileUrl. Charged per video downloaded. Without it, videoUrl is a direct CDN link that expires after a few hours.

## Actor input object example

```json
{
  "keywords": [
    "美食",
    "iphone"
  ],
  "maxResultsPerKeyword": 50,
  "sortBy": "relevance",
  "publishedWithin": "any",
  "videoDuration": "any",
  "downloadVideos": false
}
```

# Actor output Schema

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

One row per video: keyword, position, video ID and URL, description, hashtags, post date, duration, likes, comments, shares, saves, creator (ID, nickname, followers, verification, profile URL), music, cover and watermark-free MP4 URL.

# 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 = {
    "keywords": [
        "美食",
        "iphone"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("seemuapps/douyin-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 = { "keywords": [
        "美食",
        "iphone",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("seemuapps/douyin-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 '{
  "keywords": [
    "美食",
    "iphone"
  ]
}' |
apify call seemuapps/douyin-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,seemuapps/douyin-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/b0Kl7YU99wL9QkpgV/builds/rhNKOVMemSB2FQRDm/openapi.json
