# TikTok Profile Scraper (`happy_b/tiktok-profile-scraper`) Actor

Extract TikTok profile data with exact follower counts, engagement stats, verified badge, category, cross-platform links, account creation date, and language. Optionally scrape all posted videos with download URLs. 23 profile fields, 61 video fields.

- **URL**: https://apify.com/happy\_b/tiktok-profile-scraper.md
- **Developed by:** [Happy B](https://apify.com/happy_b) (community)
- **Categories:** Social media, Videos
- **Stats:** 40 total users, 11 monthly users, 97.5% runs succeeded, 4 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $3.00 / 1,000 profiles

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

### What is TikTok Profile Scraper?

TikTok Profile Scraper extracts **complete profile data** from TikTok accounts — exact follower counts, engagement stats, verified badge, category, cross-platform links — and optionally all their posted videos with download URLs.

Every number is an exact integer. No "160M" approximations — you get `160560832`.

#### Profile data points (23 fields)

| Field | Description | Example |
|-------|-------------|---------|
| `uid` | Numeric user ID | `127905465618821121` |
| `uniqueId` | TikTok handle | `khaby.lame` |
| `secUid` | Secure user ID | `MS4wLjABAAAA...` |
| `nickname` | Display name | `Khabane lame` |
| `signature` | Bio text | `If u wanna laugh...` |
| `avatarUrl` | Profile picture URL | `https://p16-common-sign...` |
| `profileUrl` | Full profile URL | `https://www.tiktok.com/@khaby.lame` |
| `followerCount` | Exact followers | `160560832` |
| `followingCount` | Following count | `85` |
| `totalFavorited` | Total likes received | `2578623240` |
| `awemeCount` | Number of videos | `1315` |
| `favoritingCount` | Liked videos count | `0` |
| `verified` | Verified creator | `true` |
| `category` | Creator category | `Public Figure` |
| `privateAccount` | Private profile | `false` |
| `region` | Most frequent video region | `US` |
| `language` | App language | `vi` |
| `accountCreatedAtIso` | Account creation date | `2025-08-22T02:33:37.000Z` |
| `insId` | Instagram handle | `khaby00` |
| `twitterId` | Twitter handle | |
| `youtubeChannelId` | YouTube channel ID | |
| `scrapeTimestamp` | When scraped | `2026-04-04T12:00:00.000Z` |

#### Video data points (61 fields per row when Include Videos is on)

Each video row includes 40 video fields plus 21 embedded profile fields — all in one flat row for easy CSV export. Download URLs (with and without watermark) are included at no extra cost.

### Why use this scraper?

#### Profile data without buying videos

Other scrapers force you to buy video results just to see profile stats. We give you standalone profile data — follower counts, bio, verified status, category — without scraping a single video.

#### Exact numbers, not approximations

Follower counts are exact integers (`160560832`, not `160.6M`). Total likes are exact (`2578623240`, not `2.6B`). No integer overflow bugs on large accounts.

#### Fields you won't find elsewhere

- **`category`** — "Public Figure", "Entertainment", etc. Most scrapers don't include this.
- **`insId`**, **`twitterId`**, **`youtubeChannelId`** — cross-platform links in one call.
- **`secUid`** — needed for advanced API integrations. Most scrapers omit this.
- **`accountCreatedAtIso`** — when the account was created. Not available in most scrapers.
- **`language`** — the user's app language.

#### Videos included on demand

Toggle "Include Videos" to get all posted videos with exact engagement stats and download URLs. Profile data is embedded in every video row — no need for a separate lookup.

### Use cases

- **Influencer discovery** — search profiles by follower count, category, and engagement rate
- **Competitive analysis** — compare follower growth and content output across creators
- **Lead generation** — extract contact info (bio links, cross-platform handles) for outreach
- **Content audit** — analyze a creator's entire video catalog with engagement metrics
- **Brand safety** — check verified status, category, and content themes before partnerships

### How much does it cost?

**Profile** — charged per dataset row (always):

| Plan | Price per 1,000 | Price per item |
|------|----------------|----------------|
| Free | $6.00 | $0.006 |
| Starter | $3.75 | $0.00375 |
| Scale | $3.50 | $0.0035 |
| Business | $3.00 | $0.003 |

**Add-on: video** — charged per video (only when Include Videos is on):

| Plan | Price per 1,000 | Price per item |
|------|----------------|----------------|
| Free | $3.00 | $0.003 |
| Starter | $2.50 | $0.0025 |
| Scale | $2.00 | $0.002 |
| Business | $1.50 | $0.0015 |

| Scenario | Cost (Free plan) |
|----------|------|
| 10 profiles only | $0.06 |
| 1 profile + 50 videos | $0.45 |
| 10 profiles + 50 videos each | $4.50 |

Apify also charges a small one-time Actor Start fee ($0.00005) per run.

### Input

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `profileUrls` | string\[] | *required* | TikTok profile URLs or @usernames to scrape. |
| `includeVideos` | boolean | false | Fetch the user's posted videos. Each video is a separate charged item. |
| `maxVideosPerProfile` | integer | 50 | Maximum videos per profile (only used when Include Videos is on). |

### Good to know

**Multiple profiles in one run.** Pass an array of profile URLs or usernames and get all data in a single dataset.

**Usernames accepted.** You can pass full URLs (`https://www.tiktok.com/@khaby.lame`), handles with @ (`@khaby.lame`), or bare usernames (`khaby.lame`).

**Private accounts.** Profile data (follower count, bio, etc.) is available for private accounts. Videos are only available for public accounts.

**Two output tabs.** The dataset has a "Profiles" tab and a "Videos" tab for easy filtering.

**Profile data in every video row.** When Include Videos is on, each video row includes all 21 profile fields (prefixed with `profile`) — no need for a separate profile lookup.

**Failed profiles remain visible.** Successful profiles are written to the dataset. Each failed input is added to the `errors` array in the `METADATA` key-value-store record and logged immediately as `[Failed profile]: @username`. After the run summary, the log also lists all failed usernames in one array.

### Integrations

Connect this actor to your workflow with [Apify integrations](https://docs.apify.com/platform/integrations):

- **Make (Integromat)** — trigger workflows when new data is available
- **Zapier** — push data to Google Sheets, Slack, or databases
- **Google Drive** — export directly to spreadsheets
- **Webhooks** — notify your API when the run completes
- **Apify API** — programmatic access for custom pipelines

### Legal and personal data

This actor extracts publicly available data from TikTok. You should ensure your use of the extracted data complies with TikTok's [Terms of Service](https://www.tiktok.com/legal/terms-of-service), applicable data protection laws (GDPR, CCPA), and your jurisdiction's regulations regarding web scraping and data processing.

### Support

Found a bug or have a feature request? [Open an issue](https://apify.com/happy_b/tiktok-profile-scraper/issues/open) or contact us through Apify messaging.

# Actor input Schema

## `profileUrls` (type: `array`):

TikTok profile URLs or @usernames to scrape

## `includeVideos` (type: `boolean`):

Fetch the user's posted videos with engagement stats and download URLs. Each video counts as a separate charged item.

## `maxVideosPerProfile` (type: `integer`):

Maximum number of videos to fetch per profile (only used when Include Videos is on)

## Actor input object example

```json
{
  "profileUrls": [
    "https://www.tiktok.com/@khaby.lame"
  ],
  "includeVideos": false,
  "maxVideosPerProfile": 50
}
```

# Actor output Schema

## `data` (type: `string`):

Profile data (profile-only mode) or video data with embedded profile fields (videos mode)

## `metadata` (type: `string`):

Scrape status, profile/video counts, and any errors

# 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 = {
    "profileUrls": [
        "https://www.tiktok.com/@khaby.lame"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("happy_b/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 = { "profileUrls": ["https://www.tiktok.com/@khaby.lame"] }

# Run the Actor and wait for it to finish
run = client.actor("happy_b/tiktok-profile-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "profileUrls": [
    "https://www.tiktok.com/@khaby.lame"
  ]
}' |
apify call happy_b/tiktok-profile-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=happy_b/tiktok-profile-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/ZAnebrjB2fvcIWcvI/builds/pJJQfSnWO2fK3tVLg/openapi.json
