# TikTok Profile Scraper | No Login | No Cookie (`rexreus/tiktok-profile-scraper`) Actor

Scrapes TikTok profile metadata (followers, hearts, bio, video counts) for a list of usernames or profile URLs.

- **URL**: https://apify.com/rexreus/tiktok-profile-scraper.md
- **Developed by:** [REXREUS D.O](https://apify.com/rexreus) (community)
- **Categories:** Lead generation, SEO tools, Social media
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 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.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#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

## TikTok Profile Scraper

Fast, lightweight Apify Actor that scrapes TikTok profile stats — followers, hearts, video counts, bio, avatar, verified flag — for a list of usernames or profile URLs. HTTP-only: no browser, fast runs, low cost.

### Who is it for?

Analysts, marketers, and researchers who need bulk TikTok profile metrics without paying for heavyweight multi-mode suites or waiting on headless-browser boots.

### Features

- **Profile metadata per username**: nickname, bio, avatar URL, verified/private flags, followers, following, hearts, videos count, secUid, userId
- **HTTP-only**: fetches the public profile page and parses embedded JSON — no browser overhead (256 MB memory)
- **Transparent failures**: every input item produces exactly one dataset record; unreachable profiles are reported with `error` (`blocked`, `not_found`, `network_error`) instead of silently disappearing
- **Apify Proxy support**: configure residential proxies for reliability

### Quick start (Apify Console)

1. Click **Run** — the default input scrapes `@tiktok`.
2. Find results in the **Storage → Dataset** tab.

Input example:

```json
{
    "usernames": ["@tiktok", "https://www.tiktok.com/@charlidamelio"],
    "maxRetries": 3,
    "proxyConfiguration": { "useApifyProxy": true }
}
```

| Field | Type | Required | Description |
|---|---|---|---|
| `usernames` | array of strings | yes | Usernames (`@user` or `user`) or full profile URLs |
| `maxRetries` | integer | no | Network-error retries per profile (default 3) |
| `proxyConfiguration` | object | no | Apify Proxy settings |

### Output

One dataset record per input item:

```json
{
    "username": "tiktok",
    "nickname": "TikTok",
    "bio": "Make Your Day",
    "avatarUrl": "https://p16-sign-va.tiktokcdn.com/...",
    "verified": true,
    "isPrivate": false,
    "followers": 1000,
    "followings": 45,
    "hearts": 3000000000,
    "videos": 42,
    "secUid": "...",
    "userId": "...",
    "url": "https://www.tiktok.com/@tiktok",
    "scrapedAt": "2026-08-25T12:00:00.000Z",
    "error": null
}
```

A run summary (`requested` / `succeeded` / `failed`) is stored in the key-value store under key `summary`.

### Limits & honest notes

- **Proxy**: TikTok rate-limits datacenter IPs aggressively. Small runs may succeed on default proxy; enable the **RESIDENTIAL** group for reliability. This Actor does **not** solve CAPTCHAs, forge signatures, or harvest cookies.
- **Error semantics**: `blocked` = anti-bot challenge served; `not_found` = account doesn't exist; `parse_drift` = TikTok changed its page structure (Actor update needed).
- **Scale**: designed for tens to low hundreds of profiles per run (concurrency 3).
- **Legal**: this Actor accesses only publicly viewable data. Scraped profiles constitute personal data in many jurisdictions (GDPR) — ensure your use complies with applicable law and TikTok's Terms of Service, which restrict automated collection. You are responsible for how you use the output.

### Troubleshooting

- Many `blocked` errors → switch `proxyConfiguration.apifyProxyGroups` to `["RESIDENTIAL"]`
- `parse_drift` on every profile → TikTok changed its page format; check for an Actor update

### Run it

Open the Actor on [Apify Store](https://apify.com) and click **Run** — or use the CLI:

```bash
apify call <your-username>/tiktok-profile-scraper --input '{"usernames":["@tiktok"]}'
```

# Actor input Schema

## `usernames` (type: `array`):

One TikTok username per line (e.g. @charlidamelio or charlidamelio). Full profile URLs (https://www.tiktok.com/@charlidamelio) are also accepted.

## `maxRetries` (type: `integer`):

Retries per profile on network failure only (not on blocks).

## `proxyConfiguration` (type: `object`):

Proxy settings. TikTok heavily rate-limits datacenter IPs; residential proxies recommended for reliability.

## Actor input object example

```json
{
  "usernames": [
    "@tiktok"
  ],
  "maxRetries": 3
}
```

# Actor output Schema

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

Dataset containing all scraped TikTok profiles

## `summary` (type: `string`):

Execution summary counters stored in Key-Value Store

# 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 = {
    "usernames": [
        "@tiktok"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("rexreus/tiktok-profile-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 = { "usernames": ["@tiktok"] }

# Run the Actor and wait for it to finish
run = client.actor("rexreus/tiktok-profile-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 '{
  "usernames": [
    "@tiktok"
  ]
}' |
apify call rexreus/tiktok-profile-scraper --silent --output-dataset

```

## MCP server setup

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