# Douyin Account Search and Creator Discovery (`automation-lab/douyin-user-discovery-search`) Actor

Find Douyin (抖音) creators by keyword. Batch keywords, follower bands and account-type filter; deduped account cards with sec_uid, followers, verification labels and matched keywords.

- **URL**: https://apify.com/automation-lab/douyin-user-discovery-search.md
- **Developed by:** [Automation Lab](https://apify.com/automation-lab) (community)
- **Categories:** Social media
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 68.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.24 / 1,000 account saveds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 Account Search and Creator Discovery

Find public Douyin (抖音) accounts by keyword and export one clean card per creator: `sec_uid`, handle, nickname, follower count, total likes, business and personal verification labels, avatar and profile link. Give it a whole list of keywords and every account comes back once, with every keyword that found it.

No login, cookies or Douyin account needed.

### What does this Douyin account search do?

It runs Douyin's public **Users** search for each keyword and reads the account result list, up to roughly 350 accounts per keyword. Accounts found by more than one keyword are merged into a single row, so a weekly creator refresh gives you a list you can import straight away.

It stops at the search card on purpose. There is no automatic profile enrichment and no video download, so you pay only for the accounts you keep.

### Who is it for?

- **Influencer agencies** refreshing creator shortlists for a brief every week.
- **Brand and MCN teams** mapping who owns a category such as 咖啡, 健身 or 美妆.
- **Market researchers** sizing business accounts versus independent creators in a niche.
- **Data teams** building a `sec_uid` list to feed into profile, post or comment tools.

### Why use this Douyin creator finder?

- **Batch keywords, one list.** Up to 50 keywords per run, deduplicated on the stable `secUid`.
- **Full provenance.** `matchedKeywords` and `keywordMatches` show every keyword that found the account and its rank for each, so overlap between terms is visible.
- **Follower bands that are exact.** Bands are checked against each account's real follower count, not an approximate source filter.
- **Pay for matches only.** Accounts your filters remove are never charged.
- **Honest ends.** `RUN_SUMMARY` states how far each keyword went and why it stopped.

### What data can you extract from Douyin accounts?

| Field | Description |
| --- | --- |
| `uid`, `secUid` | Numeric user ID and stable encoded ID |
| `handle`, `nickname` | Douyin handle (抖音号) and display name |
| `followerCount`, `totalLikes` | Followers and total likes received |
| `accountType` | `enterprise_user` (business certified), `verified_user` (personal verification label) or `common_user` (no label) |
| `verificationLabel` | The verification text Douyin shows, such as a doctor's title or `旗舰店账号`, when set |
| `isStar` | Douyin's star-account flag. It is rarely set, so don't use it to judge fame |
| `signature`, `gender`, `isLive` | Bio, reported gender and whether the account was live when observed |
| `avatarUrl`, `profileUrl` | Avatar image and public profile link |
| `sourceKeyword`, `sourceRank` | First keyword that found the account and the rank there |
| `matchedKeywords`, `keywordMatches` | Every keyword in this run that found the account, with ranks |
| `observedAt` | When the card was read |

### How much does it cost to search Douyin accounts?

Pay per event: a small fee per run, plus a fee per unique account saved. A search that finishes with no matches pays only the run fee, and a failed run costs nothing.

| Event | Free / Starter | Scale | Business and above |
| --- | --- | --- | --- |
| Run start | $0.005 | $0.005 | $0.005 |
| Account saved | $0.0028 | $0.00252 | $0.00224 |

Examples on the Starter plan:

- 100 accounts for one keyword: about **$0.29**.
- 10 keywords with 50 accounts each and little overlap: about **$1.41**.
- A full 350-account list for one keyword: about **$0.99**.

### How to find Douyin creators by keyword

1. Open the Actor in Apify Console.
2. Add your **Search keywords**, for example `咖啡` and `健身`.
3. Set **Maximum accounts per keyword**.
4. Optionally choose **Follower bands** and **Account types**.
5. Click **Start**, then download the results as JSON, CSV or Excel, or read them through the API.

### Input parameters

| Parameter | Type | Default | Description |
| --- | --- | --- | --- |
| `keywords` | array | — | 1–50 search terms (required) |
| `maxResultsPerKeyword` | integer | 50 | Matching accounts per keyword, 1–500 |
| `followerBands` | array | all | `0_1k`, `1k_1w` (1,000–10,000), `1w_10w` (10,000–100,000), `10w_100w` (100,000–1 million), `100w_` (over 1 million) |
| `accountTypes` | array | all | `enterprise_user` (business certified), `verified_user` (personal verification label) or `common_user` (no label) |

Example input:

```json
{
    "keywords": ["咖啡", "美妆"],
    "maxResultsPerKeyword": 30,
    "followerBands": ["10w_100w", "100w_"],
    "accountTypes": ["enterprise_user"]
}
```

### Output example

```json
{
    "uid": "78761058129",
    "secUid": "MS4wLjABAAAAnYvCz0KUG02VZEn6WjqH52UBkC3s4uwg4hO72PaV49o",
    "handle": "YNLBJ",
    "nickname": "瑞幸",
    "followerCount": 140987,
    "totalLikes": 11408,
    "accountType": "common_user",
    "verificationLabel": null,
    "isStar": false,
    "signature": null,
    "gender": null,
    "isLive": false,
    "avatarUrl": "https://p3-pc.douyinpic.com/aweme/1080x1080/aweme-avatar/tos-cn-i-0813c001_ocAIghLAexlEzAmtKAMBAUL8sr4zACfdCTtAOg.jpeg?from=2956013662",
    "profileUrl": "https://www.douyin.com/user/MS4wLjABAAAAnYvCz0KUG02VZEn6WjqH52UBkC3s4uwg4hO72PaV49o",
    "sourceKeyword": "瑞幸",
    "sourceRank": 1,
    "matchedKeywords": ["瑞幸"],
    "keywordMatches": [{ "keyword": "瑞幸", "rank": 1 }],
    "observedAt": "2026-11-07T07:39:16.600Z"
}
```

The run's `RUN_SUMMARY` record in the key-value store lists each keyword with how many accounts were seen and matched, the pages read, and why it stopped: `cap`, `exhausted`, `stalled`, `blocked`, `deadline` or `spending-limit`.

### Tips and limits

- **List depth.** Douyin ends one keyword's list at around 350 accounts, sometimes fewer. Use several related keywords for wider coverage.
- **Narrow filters read further.** With filters on, the Actor walks the list until it has your cap or the list ends, so a rare combination can return fewer rows than the cap.
- **Fuzzy matches.** Douyin returns its closest accounts even for odd terms, so an unusual keyword may still give results that only loosely match. Such a keyword's short, patchy list can also take 3–4 minutes to read, so keep a Timeout of at least 5 minutes per few keywords.
- **Results arrive at the end.** Rows are saved after all keywords finish, so each row can list every matching keyword. If a run nears its timeout it stops searching and saves what it has.
- **If a keyword is cut short,** the status message says so and `RUN_SUMMARY` shows which one. Accounts already found are saved. If nothing was saved and any keyword was blocked or hit the timeout, the run fails and costs nothing.

### Integrations and workflows

- **Weekly refresh:** schedule the Actor, then compare `secUid` values with last week's export to spot new creators.
- **Outreach sheet:** send the dataset to Google Sheets through Make or Zapier when a run succeeds.
- **Enrichment chain:** pass `profileUrl` values to [Douyin Creator Profiles](https://apify.com/automation-lab/douyin-creator-profiles) for the accounts you shortlist.

### Use the API

cURL:

```bash
curl -X POST "https://api.apify.com/v2/acts/automation-lab~douyin-user-discovery-search/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"keywords":["咖啡"],"maxResultsPerKeyword":20}'
```

JavaScript:

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

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('automation-lab/douyin-user-discovery-search').call({
    keywords: ['咖啡', '健身'],
    maxResultsPerKeyword: 50,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

Python:

```python
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ['APIFY_TOKEN'])
run = client.actor('automation-lab/douyin-user-discovery-search').call(run_input={
    'keywords': ['咖啡', '健身'],
    'maxResultsPerKeyword': 50,
})
print(client.dataset(run['defaultDatasetId']).list_items().items)
```

### Use with AI agents through MCP

Claude Code:

```bash
claude mcp add --transport http apify \
  "https://mcp.apify.com?tools=automation-lab/douyin-user-discovery-search"
```

Claude Desktop, Cursor or VS Code (JSON configuration):

```json
{
    "mcpServers": {
        "apify": {
            "url": "https://mcp.apify.com?tools=automation-lab/douyin-user-discovery-search"
        }
    }
}
```

The URL selects this Actor plus Apify's run and dataset tools. Start one run, keep its run ID, and check that same run until it finishes instead of starting another. Then read the dataset in small pages using `limit`, `offset` and only the `fields` you need.

Example prompts:

- "Find 30 Douyin coffee creators with over 100,000 followers and list their handles."
- "Search Douyin for 健身 and 瑜伽 accounts and show which creators appear for both."

### Data handling and diagnostics

Failed operations send sanitized diagnostic input, exceptions and Actor/build/run IDs to our private GlitchTip service for repair. Secret fields and URL queries are removed; reports are retained for 30 days. Raw Douyin responses and guest cookies are not product output and are kept in memory only for the run. Your input and results stay in your Apify storage under your retention settings.

### Is it legal to scrape Douyin accounts?

This Actor reads only public account information that any visitor can see in Douyin's search, without logging in. It does not collect private data, messages or follower lists. Account data can still be personal data, so you remain responsible for how you use it, including under GDPR, China's PIPL and Douyin's terms. If in doubt, ask a lawyer. This Actor is not affiliated with or endorsed by Douyin or ByteDance.

### FAQ

#### How many accounts can I get per keyword?

About 350 at most for a broad term, because that is where Douyin's list ends. Setting the cap to 500 reads the whole list. Add related keywords to go wider.

#### Why did I get fewer rows than my cap?

Your filters may match only part of the list, or the list may be short. `RUN_SUMMARY` shows accounts seen and matched for each keyword. A stop of `exhausted` means the list ended normally.

#### A keyword says `blocked`. What should I do?

Douyin occasionally stops answering a search session. The Actor already retries with new guest sessions before giving up. Run that keyword again a little later; accounts found before the stop are still saved.

#### Does it search video captions?

No. It uses Douyin's account search. For videos use [Douyin Search Scraper](https://apify.com/automation-lab/douyin-search-scraper).

### Related Actors

- [Douyin Creator Profiles](https://apify.com/automation-lab/douyin-creator-profiles): full profile data for accounts you already know.
- [Douyin Search Scraper](https://apify.com/automation-lab/douyin-search-scraper): find videos by keyword.
- [Douyin Hot Search Trends](https://apify.com/automation-lab/douyin-hot-search-trends): what is trending now.

# Changelog

This Actor's version history is a separate document: https://apify.com/automation-lab/douyin-user-discovery-search/changelog.md

# Actor input Schema

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

One or more terms to find accounts for. Chinese terms return the most results. Each keyword is searched on its own, and an account found by several keywords becomes one row listing all of them.

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

Matching accounts to collect for each keyword. Douyin's list for one keyword ends at around 350 accounts, so use several keywords for wider coverage.

## `followerBands` (type: `array`):

Keep only accounts in these follower-size bands. Leave empty for all sizes. The run reads further down Douyin's list until it has your maximum or the list ends, and accounts outside the bands are not charged.

## `accountTypes` (type: `array`):

Keep only these kinds of account. Leave empty for all. Business means Douyin shows a business certification. Verified individual means Douyin shows a personal verification label, such as a doctor's title. Accounts of other types are not charged.

## Actor input object example

```json
{
  "keywords": [
    "咖啡",
    "健身"
  ],
  "maxResultsPerKeyword": 20
}
```

# Actor output Schema

## `overview` (type: `string`):

Saved accounts with identity, followers, business certification and matched keywords.

## `runSummary` (type: `string`):

Per-keyword accounts seen and matched, pages read, stop reason and request counts.

# 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": [
        "咖啡",
        "健身"
    ],
    "maxResultsPerKeyword": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("automation-lab/douyin-user-discovery-search").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": [
        "咖啡",
        "健身",
    ],
    "maxResultsPerKeyword": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("automation-lab/douyin-user-discovery-search").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": [
    "咖啡",
    "健身"
  ],
  "maxResultsPerKeyword": 20
}' |
apify call automation-lab/douyin-user-discovery-search --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,automation-lab/douyin-user-discovery-search"
        }
    }
}
```

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/hOlT6ccPNLiGBuBZV/builds/eExlSvD9GOwDXe8Rg/openapi.json
