# TikTok Profile Scraper - Followers, Likes & Bio (`sumitr_mardy/tiktok-profile-stats`) Actor

TikTok profile scraper, $0.50 per 1,000 profiles: exact followers, likes, video count, following, bio, bio link, verified badge and ids for a list of usernames or URLs. One row per input; missing accounts are flagged and free. No login.

- **URL**: https://apify.com/sumitr_mardy/tiktok-profile-stats.md
- **Developed by:** [Sumitr Mardy](https://apify.com/sumitr_mardy) (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 $0.35 / 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/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 - Followers, Likes & Bio

Paste a list of TikTok usernames or profile URLs and get one row per account: **exact** follower count, total likes, video count, following, bio, link in bio, verified badge, avatar and account ids. Built for influencer lists, creator vetting and tracking follower growth over time.

**$0.50 per 1,000 profiles.** Accounts that do not exist and invalid lines are returned free. No TikTok login, no cookies.

### What you get

| Field | Example |
|---|---|
| `username`, `nickname` | khaby.lame, Khabane lame |
| `followers` | 162888686 (exact, not "162.9M") |
| `likes` | 2695118946 |
| `videos`, `following`, `friends` | 1361, 78, 0 |
| `verified`, `privateAccount` | true, false |
| `bio`, `bioLink` | "If u wanna laugh u r in the right place", duolingo.com |
| `avatarUrl` | profile picture (TikTok's links expire after a few days) |
| `userId`, `secUid` | stable ids, useful as join keys |
| `createTime` | when TikTok reports it |
| `status` | `ok`, `not_found`, `unavailable`, `failed`, `invalid_input`, `cost_limit_reached` |
| `input`, `profileUrl`, `scrapedAt` | the line you gave, the profile link, lookup time |

One row per input line, in a fixed shape: numbers are always numbers (`0` when unknown), booleans always booleans, text always text (`""` when missing). `status` says why a row is empty.

### How to use it

Put one account per line in *TikTok usernames or profile URLs*. All of these work:

```
khaby.lame
@duolingo
https://www.tiktok.com/@mrbeast?lang=en
```

Duplicates are looked up and billed once. Run it on a schedule to build a follower history: every row carries `scrapedAt`.

### Pricing

Pay per event, **$0.0005 per profile found** ($0.50 per 1,000), cheaper on higher Apify plans. `not_found`, `unavailable`, `failed` and `invalid_input` rows are free. Apify adds its standard tiny start event per run.

### Status, measured

| | |
|---|---|
| Lookups that returned a profile | 380 of 380 existing accounts in a 400-lookup test (the other 20 were accounts that do not exist) |
| Speed | about 4 profiles a second |
| Reference run | 12 lines: 10 profiles, 1 missing account, 1 invalid line, 2.4 s |

### Honest limits

- **Profile data only.** No video list, captions or comments: TikTok does not include them in the public profile page. Use a full TikTok scraper if you need each video.
- Private accounts still return their counts; banned and deleted accounts come back `not_found`.
- `region` and `language` are often empty because TikTok does not expose them for every account.
- Public data only. Use it in line with TikTok's terms and the privacy laws that apply to you.

### Use it from AI agents (MCP)

Hosted, with OAuth sign-in (Claude, Cursor, VS Code and others):

```json
{
    "mcpServers": {
        "tiktok-profiles": {
            "url": "https://mcp.apify.com/?tools=sumitr_mardy/tiktok-profile-stats"
        }
    }
}
```

With an API token instead of OAuth:

```json
{
    "mcpServers": {
        "tiktok-profiles": {
            "url": "https://mcp.apify.com/?tools=sumitr_mardy/tiktok-profile-stats",
            "headers": { "Authorization": "Bearer YOUR_APIFY_TOKEN" }
        }
    }
}
```

Local stdio:

```json
{
    "mcpServers": {
        "tiktok-profiles": {
            "command": "npx",
            "args": ["-y", "@apify/actors-mcp-server", "--actors", "sumitr_mardy/tiktok-profile-stats"],
            "env": { "APIFY_TOKEN": "YOUR_APIFY_TOKEN" }
        }
    }
}
```

Tip for agents: pass many usernames in one call rather than one call per account.

### Run it from code

Python:

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("sumitr_mardy/tiktok-profile-stats").call(run_input={
    "usernames": ["khaby.lame", "duolingo", "https://www.tiktok.com/@mrbeast"],
})
for p in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(p["username"], p["followers"], p["likes"], p["status"])
```

cURL (waits for the run and returns the rows):

```bash
curl -X POST "https://api.apify.com/v2/acts/sumitr_mardy~tiktok-profile-stats/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"usernames":["khaby.lame","duolingo"]}'
```

### FAQ

**Are follower counts exact?** Yes, the full number TikTok stores, not the rounded "1.2M" shown on screen.

**Can I track growth?** Schedule the run daily or weekly and compare rows by `userId`.

**Why is a row `not_found`?** The handle does not exist, was renamed, or the account was banned or deleted. Those rows are free.

# Actor input Schema

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

One per line: "khaby.lame", "@khaby.lame" or "https://www.tiktok.com/@khaby.lame". Up to tens of thousands per run.

## Actor input object example

```json
{
  "usernames": [
    "nasa",
    "khaby.lame",
    "duolingo",
    "doesnotexist_zz9q8w7"
  ]
}
```

# Actor output Schema

## `dataset` (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": [
        "nasa",
        "khaby.lame",
        "duolingo",
        "doesnotexist_zz9q8w7"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("sumitr_mardy/tiktok-profile-stats").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": [
        "nasa",
        "khaby.lame",
        "duolingo",
        "doesnotexist_zz9q8w7",
    ] }

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,sumitr_mardy/tiktok-profile-stats"
        }
    }
}
```

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/nEHMlSrKsQ9P5plPS/builds/ctBch1tpBrcDXDpTw/openapi.json
