# TikTok Users Scraper (`harpoon/tiktok-users-scraper`) Actor

Scrape TikTok users for any search keyword - usernames, names, bios, avatars, and follower stats.

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

## Pricing

from $1.00 / 1,000 users

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

### TikTok Users Scraper — TikTok users for any keyword, as clean structured rows

Enter one or more search keywords and get the matching TikTok users back as structured data:
username, nickname, bio, avatar, follower count, and total likes. Set how many users to pull per
keyword and download the result as JSON, CSV, Excel, or XML. No login or API key required.

#### What can TikTok Users Scraper do?

- Find TikTok users for one keyword or hundreds in a single run
- Accept single words (`hulk`) or phrases (`mark ruffalo`, `digital marketing`)
- Return usernames, nicknames, bios, avatars, follower counts, and total likes
- Deduplicate repeated keywords automatically
- Export to JSON, CSV, Excel, or XML; run via the API, schedule runs, and connect through MCP

### What data can I extract?

<table>
<tr><th>What you get</th><th>Features</th></tr>
<tr><td>

- **Identity** — user ID, username, nickname, profile URL, avatar
- **Bio** — profile signature and any verification labels
- **Audience** — follower count and total likes
- **Join keys** — `sec_uid` for use across TikTok tooling

</td><td>

- Up to your chosen cap per keyword
- One row per user, keyed by username
- Export to JSON, CSV, Excel, XML
- API access, webhooks, scheduling, LLM-ready output for MCP

</td></tr>
</table>

### How to use TikTok Users Scraper

1. [Create](https://console.apify.com/sign-up) a free Apify account.
2. Open **TikTok Users Scraper** in Apify Console.
3. Type one or more keywords into **Search keywords**, one per line.
4. Set **Max users per keyword** (default 100).
5. Click **Save & Start**.
6. Download the results in JSON, CSV, Excel, or XML from the **Storage** tab.

### Input

Give it a list of keywords; each one contributes its own users to the dataset. For each keyword the
Actor reads the users and stops at your cap.

- `keywords` — one keyword or phrase per line.
- `max_users` — how many users to return per keyword (default 100).

**Example input**

```json
{
  "keywords": ["mark ruffalo", "digital marketing"],
  "max_users": 100
}
```

See the **Input** tab above for every parameter.

### Output

Results land in a dataset under the **Storage** tab. Three built-in views are included:
**Overview**, **Profiles**, and **Audience**. Download in JSON, CSV, Excel, or XML, or pull them
via the API.

```json
{
  "keyword": "mark ruffalo",
  "id": "7577555306730128406",
  "username": "realmarkraffulooficial",
  "nickname": "Mark Ruffalo",
  "signature": "Actor, Director, climate Justice, energy advocate with eye out for love and hope",
  "avatar_url": "https://p16-common-sign.tiktokcdn-eu.com/tos-useast2a-avt-0068-euttp/8078d44ae9fc9a9af39_n.jpeg",
  "follower_count": 2638,
  "total_favorited": 1205,
  "sec_uid": "MS4wLjABAAAACcn0qnoj6Xf6ZX0nXEwonATNO6sWW7UMtVIuKWyLfXSIOHHqegrKF5Uua1belUK5",
  "custom_verify": "",
  "enterprise_verify_reason": "",
  "url": "https://www.tiktok.com/@realmarkraffulooficial",
  "scraped_at": "2026-09-17T15:32:31Z"
}
```

Field names are lowercase snake\_case, and the input keys match them. Long URLs are abbreviated for
readability — the dataset contains the full links.

### What can you do with the data?

#### 1. Build a creator shortlist

1. Run the Actor over niche keywords.
2. Open the **Overview** view and sort by `follower_count`.
3. Open `url` to review each creator before reaching out.

#### 2. Find lookalike / fan accounts

1. Search a brand or celebrity name.
2. Use the **Profiles** view to read the bios and spot official vs fan accounts.
3. Export to CSV for outreach or moderation.

#### 3. Enrich a marketing list

1. Run the Actor over your target topics.
2. Export `username`, `follower_count`, and `signature`.
3. Join the results to your CRM or outreach tool.

### How much does TikTok Users Scraper cost?

This Actor is billed **per user returned** (pay-per-event) on top of standard Apify platform
usage. A run over 10 keywords at 100 users each is billed as up to 1,000 results; keywords with
fewer users than the cap are billed for what they return.

See the **Pricing** tab for current rates and your plan's discounts.

### FAQ

**Do I need a TikTok account, cookies, or an API key?**
No. The Actor reads publicly available search results, so no login or credentials are required.

**Does it return private accounts?**
Only users that are publicly visible in search results are returned.

**How many users can I get per keyword?**
Up to `max_users` (default 100). Raise it for more; large pulls take longer and are billed per user
returned.

**Why do the numbers differ from what I see when logged in?**
Public views can show different follower counts than a logged-in session. The dataset reflects what
is publicly available at run time.

**Is it legal to scrape TikTok?**
Usernames, bios, and profile details are personal data. Only collect it when you have a legitimate
reason, and follow Apify's legal guidance and the applicable terms.

**Can I use it with the API, SDKs, or MCP?**
Yes — see the **API** tab above, or connect through the Apify MCP server.

**A keyword is missing from the results.**
That keyword is logged with the reason (for example, a temporary failure or a rate limit). The
rest of the run continues; re-run just that keyword if needed.

### Notes and limitations

- **Public profiles only** — private or restricted accounts are not returned.
- `avatar_url` is a time-limited image link; download it soon after the run if you need it.
- `custom_verify` and `enterprise_verify_reason` are empty strings when the account has no such
  label.
- Follower and like counts are rounded by TikTok, matching what the public page shows.

### Run locally

```
go run ./cmd/actor
```

Input is read from the Apify key-value store; see `INPUT_SCHEMA.json`.

### Support

Found a bug or have feedback? Open an issue in the **Issues** tab.

# Actor input Schema

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

<b>One keyword or phrase per line</b>, e.g. <code>mark ruffalo</code> or <code>digital marketing</code>. Duplicates are removed automatically, and every keyword returns its own set of users.

## `max_users` (type: `integer`):

How many users to return per keyword. Higher values take longer and increase cost.

## Actor input object example

```json
{
  "keywords": [
    "mark ruffalo",
    "digital marketing"
  ],
  "max_users": 100
}
```

# Actor output Schema

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

One row per scraped user. Export as JSON, CSV, Excel, or XML.

# 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": [
        "mark ruffalo"
    ],
    "max_users": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("harpoon/tiktok-users-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": ["mark ruffalo"],
    "max_users": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("harpoon/tiktok-users-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": [
    "mark ruffalo"
  ],
  "max_users": 100
}' |
apify call harpoon/tiktok-users-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,harpoon/tiktok-users-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/C4eLzA3m9lyButZSm/builds/PbKvy3M7rboftfKPv/openapi.json
