# 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:** 7 total users, 5 monthly users, 98.1% runs succeeded, 2 bookmarks
- **User rating**: No ratings yet

## 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 a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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.

### 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

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "TikTok Profile Scraper",
        "description": "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.",
        "version": "0.1",
        "x-build-id": "o5KBaSVKzjL7wVJkJ"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/happy_b~tiktok-profile-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-happy_b-tiktok-profile-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/happy_b~tiktok-profile-scraper/runs": {
            "post": {
                "operationId": "runs-sync-happy_b-tiktok-profile-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/happy_b~tiktok-profile-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-happy_b-tiktok-profile-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "profileUrls"
                ],
                "properties": {
                    "profileUrls": {
                        "title": "Profile URLs",
                        "type": "array",
                        "description": "TikTok profile URLs or @usernames to scrape",
                        "items": {
                            "type": "string"
                        }
                    },
                    "includeVideos": {
                        "title": "Include Videos",
                        "type": "boolean",
                        "description": "Fetch the user's posted videos with engagement stats and download URLs. Each video counts as a separate charged item.",
                        "default": false
                    },
                    "maxVideosPerProfile": {
                        "title": "Max Videos Per Profile",
                        "minimum": 1,
                        "maximum": 5000,
                        "type": "integer",
                        "description": "Maximum number of videos to fetch per profile (only used when Include Videos is on)",
                        "default": 50
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
