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

Scrape TikTok profiles: followers, likes, video count, bio, bio link, verified status and avatar. $1.50 per 1,000 profiles, pay-per-profile, failed items never charged. No login, no API key. Callable from any MCP client (Claude, Cursor, ChatGPT).

- **URL**: https://apify.com/api_harbor/tiktok-profile-scraper.md
- **Developed by:** [Api Harbor](https://apify.com/api_harbor) (community)
- **Categories:** Social media, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

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

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 Profile Scraper API

Scrape TikTok profiles: followers, likes, video count, bio, bio link, verified status and avatar. Built for LLM and AI agent pipelines, and callable from any MCP client (Claude, Cursor, ChatGPT). No TikTok login, no API key, no cookies. Export to JSON, CSV or Excel, or call it as a TikTok API.

**Price promise:** $1.50 per 1,000 profiles, pay-per-profile. Failed items and `error` rows are never charged. No proxy fees, no TikTok account needed.

### What does TikTok Profile Scraper do?

Give it a list of TikTok profiles. It returns one clean JSON item per profile, with the fields below. An input that cannot be fetched (private, removed or invalid) comes back as an `error` row, free of charge.

### What you get back

| Field | Type | Description |
|---|---|---|
| `id` | string | TikTok user ID |
| `secUid` | string | Stable secure user ID |
| `username` | string | Username (handle, without @) |
| `nickname` | string | Display name |
| `bio` | string | Profile bio |
| `bioLink` | string | Link in bio |
| `avatar` | string | Avatar URL (1080 px, signed, expires) |
| `verified` | boolean | Verified badge |
| `private` | boolean | Private account |
| `seller` | boolean | TikTok Shop seller |
| `language` | string | Account language |
| `createdAt` | string | Account creation date (ISO 8601) |
| `followers` | integer | Follower count |
| `following` | integer | Following count |
| `likes` | integer | Total likes received |
| `videos` | integer | Video count |
| `url` | string | Profile URL |
| `input` | string | Input that failed (error rows only) |
| `error` | string | Error message (error rows only, never charged) |

### Why this TikTok API

- **No login, no API key.** Nothing to configure, no TikTok developer account, no cookies to refresh.
- **Pay only for what you get.** $1.50 per 1,000 profiles. Error rows are never charged.
- **Clean, typed data.** Numbers are numbers, dates are ISO 8601.
- **Agent-ready.** Structured errors, usable as an MCP tool.

### Use cases for LLMs, AI agents and marketing

- **Influencer marketing:** vet creators by followers, likes per video and verified status before reaching out.
- **Lead generation:** collect the bio link and bio of creators and brands in your niche.
- **AI agents:** let Claude or ChatGPT compare creators and shortlist the best fit for a campaign.
- **Competitive tracking:** schedule daily runs on competitor accounts and chart follower growth.
- **Datasets:** enrich a list of handles with audience size for scoring or CRM sync.

### How much does it cost?

| What | Price |
|---|---|
| Run start | $0.00005 per run |
| Profile | $1.50 per 1,000 profiles |
| Failed item (`error` row) | $0 |
| Proxies, API key | $0, included |

The Apify free plan includes $5 of monthly credit, enough for about 3,000 profiles. Set a maximum cost per run in Apify Console and the run stops cleanly at that budget.

### How to scrape TikTok profiles

1. Click **Try for free**.
2. Paste the usernames or profile URLs.
3. Click **Start**, then download your data as JSON, CSV, Excel or HTML.

### Input

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

### Output example

Real item from a test run (signed image URLs shortened):

```json
{
  "id": "7664638705177150477",
  "secUid": "MS4wLjABAAAAU9BRVzC8oCaegVnia8IbqWhPb_-dbU7s00Y3wS1_Nx8g5RUaYvyXrpejgjdxTwd6",
  "username": "nasa",
  "nickname": "NASA",
  "bio": "Making the seemingly impossible, possible.✨",
  "bioLink": "science.nasa.gov/feature/artemis-ii-preliminary-lunar-science-report",
  "avatar": "https://p16-common-sign.tiktokcdn-eu.com/tos-maliva-avt-0068/e5143212a59c09a008bf50f487d54d1f~tplv-tiktokx-cropcenter:1080:1080.jpeg?…",
  "verified": true,
  "private": false,
  "seller": false,
  "language": "en",
  "createdAt": "2026-07-20T15:55:49Z",
  "followers": 2200000,
  "following": 23,
  "likes": 11700000,
  "videos": 65,
  "url": "https://www.tiktok.com/@nasa"
}
```

### Use it from AI agents (MCP)

This Actor is available as a tool through the Apify MCP server, so Claude, Cursor, ChatGPT or any MCP client can call it directly.

- MCP server URL: `https://mcp.apify.com/?actors=api_harbor/tiktok-profile-scraper`
- Token: Apify Console > **Settings** > **Integrations** (your Apify API token)

**Claude Desktop** (`claude_desktop_config.json`):

```json
{
  "mcpServers": {
    "apify": {
      "url": "https://mcp.apify.com/?actors=api_harbor/tiktok-profile-scraper",
      "headers": { "Authorization": "Bearer <APIFY_TOKEN>" }
    }
  }
}
```

**Claude Code:**

```bash
claude mcp add --transport http apify "https://mcp.apify.com/?actors=api_harbor/tiktok-profile-scraper" --header "Authorization: Bearer <APIFY_TOKEN>"
```

**Cursor** (`.cursor/mcp.json`) or **VS Code** (`.vscode/mcp.json`, use `"servers"` instead of `"mcpServers"`): same JSON as Claude Desktop.

Example prompts:

- "Get the TikTok profiles of @nasa and @khaby.lame and compare their likes per video."
- "Here are 30 creator handles: rank them by followers and give me their bio links."
- "Check every day whether @mybrand passed 100k followers."

### Use it from Python (TikTok API alternative)

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

```python
from apify_client import ApifyClient

client = ApifyClient("<APIFY_TOKEN>")
run = client.actor("api_harbor/tiktok-profile-scraper").call(run_input={"profiles": ["@nasa", "https://www.tiktok.com/@khaby.lame"]})

for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    if item.get("error"):
        print("failed:", item.get("input"), item["error"])  # not charged
        continue
    print(item)
```

### Fast cache and structured errors

- **Cache:** identical inputs are served from cache, so repeated requests come back in seconds.
- **Structured errors:** an item that cannot be fetched is returned as a row with an `error` field (and the failed `input`). These rows are **never charged**, and your agent or pipeline can branch on them without parsing logs.

### FAQ

**Do I need a TikTok account or an API key?**
No. No login, no cookies, no API key. Nothing to configure.

**Can it scrape followers or following lists?**
No. TikTok only shows these lists to logged-in users, and this Actor never logs in. You get the follower and following counts.

**Is it legal to scrape TikTok?**
This Actor only reads public data. It contains personal data such as usernames, so you are responsible for complying with GDPR, your local laws and TikTok's terms for your use case.

**Is there a TikTok profile API?**
Yes: this Actor is one. Call it through the Apify REST API (`POST https://api.apify.com/v2/acts/api_harbor~tiktok-profile-scraper/run-sync-get-dataset-items`), the Python or JavaScript client, or MCP.

**Can I use it from Python?**
Yes. See the Python example above with `apify-client`.

**Can I schedule runs?**
Yes. Create a schedule in Apify Console (for example daily). Each run writes a new dataset you can export or send to a webhook.

**Does it work with Make, Zapier or n8n?**
Yes. Use the official Apify integrations for Make, Zapier and n8n, or call the REST API from any HTTP node.

**Can AI agents use it through MCP?**
Yes. Add `https://mcp.apify.com/?actors=api_harbor/tiktok-profile-scraper` to Claude Desktop, Claude Code, Cursor, VS Code or any MCP client with your Apify token. See the MCP section above.

**Something is missing or broken?**
Open an issue in the **Issues** tab.

### Related Actors

- [TikTok Video Scraper API](https://apify.com/api_harbor/tiktok-video-scraper): views, likes, shares, hashtags and music of any video.
- [TikTok Comments Scraper API](https://apify.com/api_harbor/tiktok-comments-scraper): comments and replies of any video.

# Actor input Schema

## `profiles` (type: `array`):

TikTok usernames (@nasa or nasa) or profile URLs (https://www.tiktok.com/@nasa). Up to 50 per run.

## Actor input object example

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

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

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

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

```

## MCP server setup

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