# TikTok Profile Scraper (Private & Public) (`abe/tiktok-profile-scraper`) Actor

Scrapes basic profile info for a TikTok page for a given username(s), both private & public. Info returned includes counts for followers, following & likes; as well as name, tagline, bio, image URL and link.

- **URL**: https://apify.com/abe/tiktok-profile-scraper.md
- **Developed by:** [Abe](https://apify.com/abe) (community)
- **Categories:** Social media, Developer tools, Lead generation
- **Stats:** 23,318 total users, 325 monthly users, 99.9% runs succeeded, 55 bookmarks
- **User rating**: 4.60 out of 5 stars

## Pricing

from $2.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.
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

<div align="center">
  <h1>TikTok Profile Scraper</h1>
  <p><strong>Extract comprehensive profile data from TikTok accounts</strong></p>
  <p>Works with both <strong>public</strong> and <strong>private</strong> profiles • No video scraping • Fast & reliable</p>
</div>

***

### 📋 Overview

This Apify actor scrapes essential profile information from TikTok accounts. Unlike other scrapers that focus on videos, this tool specializes in profile metadata, making it ideal for:

- 📊 Influencer analytics and tracking
- 🔍 Market research and competitor analysis
- 📈 Social media monitoring and reporting
- 🎯 Lead generation and audience insights

**Key advantage:** Since this actor doesn't fetch videos, it works seamlessly with both **public and private profiles**.

***

### ✨ Features

- ✅ Scrapes **public** and **private** TikTok profiles
- 🚀 Fast extraction with multiple scraping methods
- 📦 Clean JSON output format
- 💰 Cost-efficient
- 🔄 Batch processing support for multiple profiles

***

### 📊 Data Extracted

The actor retrieves the following profile information:

| Field | Description |
|-------|-------------|
| **Username** | TikTok handle (without @) |
| **Display Name** | User's display name |
| **Bio/Description** | Profile biography text |
| **Tagline** | Custom tagline if available |
| **Profile Image** | Direct URL to profile picture |
| **Profile Link** | Full TikTok profile URL |
| **Followers** | Total follower count |
| **Following** | Total following count |
| **Likes** | Total likes received |
| **Videos** | Total video count |

***

### 🚀 Getting Started

#### Input

Provide TikTok usernames as plain text **without the @ symbol** or URLs.

**✅ Correct:**

```json
{
  "usernames": ["charlidamelio", "khaby.lame", "bellapoarch"]
}
```

**❌ Incorrect:**

```json
{
  "usernames": ["@charlidamelio", "https://www.tiktok.com/@khaby.lame"]
}
```

***

### ⚙️ Configuration

#### Scraping Methods

Choose the appropriate method based on profile type:

<table>
  <tr>
    <th>Method</th>
    <th>Best For</th>
    <th>Speed</th>
    <th>Description</th>
  </tr>
  <tr>
    <td><strong>Embed</strong></td>
    <td>Public profiles</td>
    <td>⚡ Fastest</td>
    <td>Uses TikTok's embed endpoint for quick extraction</td>
  </tr>
  <tr>
    <td><strong>User</strong></td>
    <td>Private profiles</td>
    <td>🐢 Standard</td>
    <td>Full browser-based scraping for restricted profiles</td>
  </tr>
</table>

**💡 Recommendation:**

- For **public profiles only**: Use `"Embed"` source for optimal performance
- For **private profiles or mixed batches**: Use `"User"` source

***

### 📤 Output Example

```json
{
  "username": "charlidamelio",
  "displayName": "charli d'amelio",
  "bio": "ur fav lil internet person",
  "tagline": "hey :)",
  "profileImage": "https://p16-sign-va.tiktokcdn.com/...",
  "profileUrl": "https://www.tiktok.com/@charlidamelio",
  "followers": 151200000,
  "following": 1537,
  "likes": 11300000000,
  "videos": 2346
}
```

***

### 💡 Use Cases

<details>
<summary><strong>📈 Influencer Marketing</strong></summary>

Track influencer metrics over time to:

- Identify growth trends
- Verify follower authenticity
- Compare engagement rates
- Monitor competitor influencers

</details>

<details>
<summary><strong>🔍 Brand Monitoring</strong></summary>

Monitor your brand's TikTok presence:

- Track follower growth
- Compare with competitors
- Measure campaign impact
- Generate performance reports

</details>

<details>
<summary><strong>🎯 Lead Generation</strong></summary>

Build databases of potential partners:

- Find micro-influencers in your niche
- Identify trending creators
- Compile contact information
- Segment by follower count

</details>

***

### 🛠️ Technical Details

- **Built with:** Apify SDK, Crawlee, Playwright
- **Node.js:** 16.0.0 or higher
- **Actor Type:** Web scraper
- **Rate Limiting:** Respects TikTok's rate limits

***

### 📝 Notes & Limitations

- ⚠️ This actor does **not** scrape individual videos or video metadata
- ⚠️ TikTok may update their website structure, which could temporarily affect scraping
- ⚠️ Very high-volume scraping may require additional proxy configuration
- ℹ️ Profile must exist and be accessible (not banned or deleted)

***

### 👤 Author

**Abe Cole**

***

<div align="center">
  <p>Built with ❤️ for the Apify platform</p>
  <p><em>Questions or issues? Feel free to reach out!</em></p>
</div>

# Actor input Schema

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

Enter one or more TikTok usernames to scrape. Use **plain usernames only** (e.g., `charlidamelio`), without the @ symbol or full URLs. Each username should be on a separate line.

## `tiktokSource` (type: `string`):

**Embed:** ⚡ Fastest option using TikTok's embed endpoint. Ideal for public profiles only. **Cannot scrape private profiles.**

**User Page:** 🔒 Standard browser-based scraping that works with both public and private profiles. Retrieves additional data like website links and taglines. Use this if you need to scrape private profiles or want comprehensive data.

## Actor input object example

```json
{
  "usernames": [
    "khaby.lame"
  ],
  "tiktokSource": "user"
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# 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": [
        "khaby.lame"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("abe/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": ["khaby.lame"] }

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

```

## MCP server setup

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