# Douyin User Search Scraper (`toolzerhub/douyin-user-search-scraper`) Actor

Search public Douyin accounts by keyword, narrowed by follower range or account type. Every row returns the handle, nickname, sec\_user\_id, follower count, and verification status, plus full profile detail on request. Export the Douyin data, run via API, or schedule keyword searches.

- **URL**: https://apify.com/toolzerhub/douyin-user-search-scraper.md
- **Developed by:** [ToolzerHub](https://apify.com/toolzerhub) (community)
- **Categories:** Social media, Automation, For creators
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.60 / 1,000 results

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/platform/actors/running/actors-in-store#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 User Search Scraper

Search public Douyin accounts by keyword and export every match — handle, nickname, sec\_user\_id, follower count, and verification status — narrowed by follower range or account type.

### Input

| Field | Use it for |
|---|---|
| **`keyword`** | Search term. Required. |
| **`follower_range`** | `""` Any size (default), `0_1k` Under 1,000, `1k_1w` 1,000–10,000, `1w_10w` 10,000–100,000, `10w_100w` 100,000–1,000,000, `100w_` Over 1,000,000. |
| **`user_type`** | `""` Any type (default), `common_user` General, `enterprise_user` Business, `personal_user` Verified individual. |
| **`addonProfileDetails`** | Fetch full profile detail for every account found. One extra request per profile, extra charge per row. Off by default. |
| **`maxItems`** | Caps the run. Default `100`. Set `0` for no limit. |

```json
{
  "keyword": "猫咪",
  "follower_range": "10w_100w",
  "maxItems": 50
}
```

### Output

| Field | Contents |
|---|---|
| **`uid`** | Numeric user ID |
| **`sec_uid`** | Stable encoded ID — usable as `sec_user_id` on other Douyin Actors |
| **`nickname`** | Display name |
| **`unique_id`** | Douyin handle (抖音号) |
| **`follower_count`** | Follower count |
| **`custom_verify`**, **`enterprise_verify_reason`** | Verification labels, when set |
| **`gender`**, **`live_status`**, **`avatar_larger`** | Reported gender, whether broadcasting right now, avatar |
| **`source_keyword`** | The term this row was collected for |
| **`profile_detail`** | Full profile, only when `addonProfileDetails` is on |

```json
{
  "uid": "1794056268286942",
  "nickname": "猫咪",
  "gender": 2,
  "source_keyword": "猫咪"
}
```

### Questions

**Why doesn't a row carry a bio or a video count?**
Douyin's account search answers with a reduced profile card — no `signature` (bio), no `following_count`, no `aweme_count`. Comparing candidates on those fields means turning on `addonProfileDetails`, which fetches the full profile for every hit at one extra request per profile and an extra charge per row.

**Do I need to handle pagination myself?**
No. Douyin's search requires a continuation token on every page past the first. The Actor reads it off the previous response and resends it automatically.

**What does `follower_range` actually filter on?**
Douyin's own follower bands, counted in 万 (1w = 10,000): under 1,000, 1,000–10,000, 10,000–100,000, 100,000–1,000,000, and over 1,000,000. There is no arbitrary numeric cutoff — pick the closest band.

### Related Actors

| Actor | Purpose |
|---|---|
| [Douyin Profile Scraper](https://apify.com/toolzerhub/douyin-profile-scraper) | Already have a sec\_user\_id, uid, or handle? Get the full profile directly, no search needed |
| [Douyin Search Scraper](https://apify.com/toolzerhub/douyin-search-scraper) | Search hashtags, sounds, image posts, and more for the same keyword |
| [Douyin Video Search Scraper](https://apify.com/toolzerhub/douyin-video-search-scraper) | Search for videos instead of accounts |

### Support

Questions, bugs, or feature requests: **contact@toolzerhub.com**

Browse the rest: [apify.com/toolzerhub](https://apify.com/toolzerhub)

# Actor input Schema

## `keyword` (type: `string`):

Words or phrase to search for. Chinese terms return the most results.

## `maxItems` (type: `integer`):

Maximum rows to save. Set 0 to keep collecting until the source is exhausted.

## `follower_range` (type: `string`):

Only keep profiles in this follower band.

## `user_type` (type: `string`):

Only keep this kind of account.

## `addonProfileDetails` (type: `boolean`):

Fetch full profile detail for every profile found. This makes one extra request per profile and adds a charge per enriched row.

## Actor input object example

```json
{
  "keyword": "猫咪",
  "maxItems": 20,
  "follower_range": "",
  "user_type": "",
  "addonProfileDetails": false
}
```

# Actor output Schema

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

Every record collected during this run

# 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 = {
    "keyword": "猫咪",
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("toolzerhub/douyin-user-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 = {
    "keyword": "猫咪",
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("toolzerhub/douyin-user-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 '{
  "keyword": "猫咪",
  "maxItems": 20
}' |
apify call toolzerhub/douyin-user-search-scraper --silent --output-dataset

```

## MCP server setup

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