# TikTok Profile Scraper: Followers & Stats (`pellucid_bird/tiktok-profile-metrics-lens`) Actor

Your go-to TikTok profile scraper for creator research. Enrich account lists with available follower, like and video counts, bios and website links. Get one profile per validated account, with timestamps, counter precision and missing-data reports.

- **URL**: https://apify.com/pellucid_bird/tiktok-profile-metrics-lens.md
- **Developed by:** [O M](https://apify.com/pellucid_bird) (community)
- **Categories:** Social media
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.13 / 1,000 profile saveds

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: Followers & Stats

Enrich a TikTok creator or brand list with follower, like and video counts, biographies and website links. Get one snapshot per unique validated account, with its string account ID, timestamp and the source precision behind each counter.

Use the results to shortlist creators, compare public account metrics or keep your own history of repeat snapshots. Export JSON, CSV or Excel, or read the dataset through the Apify API.

### Quick start

1. Add handles or profile URLs in the Input tab, or paste the JSON below.
2. Start the run and open its Dataset.
3. Check `OUTPUT` in the key-value store for failed, duplicate or skipped inputs.

```json
{
  "profiles": ["nasa", "https://www.tiktok.com/@apifytech"],
  "maxItems": 100,
  "allowEmbedFallback": false,
  "requestTimeoutSecs": 15,
  "maxRetries": 1,
  "maxEstimatedCostUsd": 1
}
```

The account part of a URL such as `https://www.tiktok.com/@creator/video/1234567890123456789` identifies the profile to collect. The video itself is not requested. Short share URLs such as `vm.tiktok.com/...` are not supported because they do not identify an account directly.

The same handle supplied several times creates one lookup and one dataset row. Exact account IDs are also deduplicated. The `OUTPUT` report retains an entry for every original input, including duplicates and items skipped by a limit.

### Pricing

The Actor fee is **$0.008 per run + $0.00013 per saved profile ($0.13 per 1,000 profiles)**, including platform resources during the run. A validated partial profile is also one billable result; missing and failed inputs produce no result row. The startup event can still apply to zero-result and invalid-input runs. Check the active Store Pricing tab before running.

| Saved profiles in one run | Actor fee |
| ------------------------- | --------- |
| 1                         | $0.00813  |
| 20                        | $0.01060  |
| 60                        | $0.01580  |
| 500                       | $0.07300  |

This pricing is designed for batches of creators or brands: one startup covers the whole input list. Later dataset access, exports and retention can incur standard account usage. The quoted inclusion covers resources during the Actor run.

### What you receive

| Fields                                                                    | Meaning                                                                                |
| ------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
| `id`, `secUid`, `username`, `profileUrl`                                  | TikTok's string account identifiers and canonical handle                               |
| `displayName`, `biography`, `language`                                    | Public account text and source language                                                |
| `followersCount`, `followingCount`, `likesCount`, `videosCount`           | Safe numeric exports of the public counters                                            |
| `diggCount`, `friendCount`                                                | Additional public counters supplied by TikTok; availability and visibility can vary    |
| `counts`                                                                  | Decimal string value, source field and precision for **each** counter                  |
| `avatarUrl`, `avatarThumbUrl`                                             | Source image URLs, returned without downloading images; signed URLs can expire         |
| `bioLink`, `bioLinkUrl`                                                   | Original biography link and a normalized HTTP(S) URL when possible                     |
| `createTime`, `createdAt`                                                 | Source account creation timestamp in Unix seconds and UTC; absent or zero means `null` |
| `isVerified`, `isPrivate`, `isOrganization`, `isCommerceUser`, `isSeller` | Public source flags; unavailable flags remain `null`                                   |
| `sourceVariant`, `sourceUrl`, `scrapedAt`, `snapshotId`                   | Where and when the snapshot was collected                                              |
| `completeness`, `missingFields`, `warnings`                               | Missing fields and precision limitations for this result                               |

The `SOURCE_INTEGER` precision label means a valid decimal integer string was supplied in TikTok's `statsV2` payload. It does not certify that TikTok's source is uncached or identical to an internal live counter. Numeric fields are populated only when JavaScript can represent the value safely; the decimal string remains available in `counts` for larger values.

Legacy profile and creator embed counters can already be rounded by TikTok. They carry `LEGACY_UNVERIFIED` precision even when their displayed value is an integer. The Actor does not turn `2.2M` into an exact follower count. If an available `statsV2` field is malformed, that counter stays missing instead of silently substituting a legacy rounded value. Other independently valid counters can still produce a partial result.

For example, an anonymous public cloud request on **November 10, 2026** returned NASA's `statsV2.followerCount` as `2171124`, while the legacy `stats.followerCount` in the same response was `2200000`. This abbreviated record comes from that saved response; today's values can differ:

```json
{
  "id": "7664638705177150477",
  "username": "nasa",
  "displayName": "NASA",
  "followersCount": 2171124,
  "followingCount": 23,
  "likesCount": 11636289,
  "videosCount": 65,
  "countPrecision": "SOURCE_INTEGER",
  "completeness": "COMPLETE",
  "scrapedAt": "2026-11-10T14:44:25.313Z"
}
```

The complete historical example and its source provenance are in `examples/profile.json` and `examples/profile-provenance.json`. Its timestamp is the recorded request start plus elapsed time; the output was reconstructed from the saved public response for documentation.

### Inputs and limits

| Input                 | Default  | Range and behavior                                                                                                             |
| --------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------ |
| `profiles`            | Required | 1–500 handles, profile URLs or full video URLs with an account handle                                                          |
| `maxItems`            | 100      | 1–500 successful unique account rows per run, including rows already stored before resume                                      |
| `allowEmbedFallback`  | `false`  | Try a public creator embed when the direct route is unavailable; partial embed results may lack video totals and other details |
| `requestTimeoutSecs`  | 15       | 1–30 seconds per physical HTTP request, including DNS                                                                          |
| `maxRetries`          | 1        | 0–2 retries for transient failures; bounded server retry delays are honored                                                    |
| `maxEstimatedCostUsd` | 1        | 0–100 USD planning allowance, combined with Apify's maximum charge setting                                                     |

This build uses 512 MB of memory and a cumulative 300-second work deadline. Hard work bounds are 1,000 physical requests, 256 MiB accounted transfer, 2 MiB per encoded or decoded response, 32 MiB dataset output and 64 KiB per row. A redirect consumes another request; at most one redirect is followed. These bounds can yield a partial run before 500 profiles. Batches reserve their possible work before network activity and shrink to the remaining allowance; a resumed run keeps its original deadline and conservatively consumes an unfinished reservation.

`maxEstimatedCostUsd: 0` causes no source requests or result appends. Starting an Apify run can still consume platform resources or incur a configured startup event. The planning allowance is not a guarantee of the final platform invoice: in-flight work and platform accounting can differ from an estimate.

### Partial results and failed inputs

Only a matching account identity with at least one validated public counter becomes a dataset row. A validated partial header is still one result: inspect `completeness`, `counts` and `missingFields`. Null means the source did not supply a usable value; zero is retained only when the source supplied zero.

Errors, access challenges, missing profiles and inputs stopped by a limit are recorded in `OUTPUT`, not as empty dataset rows. Source code `10221` is reported as unavailable; it does not reliably distinguish a nonexistent account from an account inaccessible to the anonymous request. If only some requested profiles succeed, the run report is `PARTIAL`. Check both the dataset and this report in integrations.

Every diagnostic has a delivery status: `SAVED`, `ALREADY_SAVED`, `NOT_SAVED` or `UNKNOWN`. An ambiguous storage response stops the run and leaves a reconciliation marker. The Actor does not blindly repeat an append that might already have created a billable row.

Collection uses public HTTP pages. TikTok can change its payload, return a login page, restrict a region, rate-limit an address or serve a challenge. No account login, user cookies, proxy credentials, challenge execution or private-profile access is used. The optional creator embed is another public response; it is not guaranteed to work when the profile page is unavailable. Private flags only describe a publicly exposed header.

Further source work must fit the reviewed allowance funded by the startup event and already saved rows. Queued results do not fund additional requests. Slow sources, retries and other work bounds can therefore produce an explicit partial result. Input and platform spending controls reduce exposure without guaranteeing the exact final invoice.

### API and support

Start a run with your own Apify token, then read its default dataset:

```bash
curl --request POST \
  "https://api.apify.com/v2/acts/pellucid_bird~tiktok-profile-metrics-lens/runs" \
  --header "Authorization: Bearer $APIFY_TOKEN" \
  --header "Content-Type: application/json" \
  --data '{"profiles":["nasa"],"maxItems":1}'
```

For support, include the run ID, public profile input and relevant `OUTPUT` status. Do not send account passwords or cookies.

### Using snapshots responsibly

Source pages can change between runs, and handles can be renamed or reused. Join historical snapshots using the exact string `id`, retain timestamps and inspect counter precision before comparing values. Public visibility does not establish marketing consent or guarantee that all uses comply with a website's terms. Only the public fields needed for the profile dataset are returned; profile pages and media are not redistributed.

### FAQ

#### Are the follower counts exact?

`SOURCE_INTEGER` means TikTok supplied a valid decimal integer string; it does not verify an uncached internal counter. Older or embed counters use `LEGACY_UNVERIFIED`. Check each entry in `counts` before comparing profiles, and keep large decimal strings intact.

#### Does a video URL return the video's metrics?

No. A full video URL containing a creator handle identifies that creator's profile. This Actor does not collect individual videos, comments or followers. Short share links are unsupported.

#### Is a partial profile charged?

Yes, when it has a matching account identity and at least one validated public counter. Missing fields stay null. Failed inputs produce diagnostics instead of result rows; startup can still apply to a zero-result run.

#### Will the embed fallback unlock an unavailable profile?

No. `allowEmbedFallback` tries another public response and may return fewer fields. It does not log in, bypass challenges or access private profiles. Leave it false when you require the direct profile route.

# Actor input Schema

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

1–500 handles, profile URLs or full video URLs containing @creator. Duplicate accounts create one result. Short share links are not supported.

## `maxItems` (type: `integer`):

Maximum successful unique profile rows, including existing rows after resume. Default 100; partial output is reported when limits stop collection.

## `allowEmbedFallback` (type: `boolean`):

Default false. If the direct public profile is unavailable, try the public creator embed. Its counters may be rounded and video count or details may be absent. Such validated partial profiles are result rows.

## `requestTimeoutSecs` (type: `integer`):

Timeout for each physical request including DNS. Default 15 seconds.

## `maxRetries` (type: `integer`):

Retries for transient network, 429 and server failures. Default 1; respects bounded Retry-After and does not execute challenges.

## `maxEstimatedCostUsd` (type: `number`):

Conservative local planning guard, combined with the platform maximum charge. Default 1; zero makes no source requests or result appends. It is not a guaranteed final invoice ceiling.

## Actor input object example

```json
{
  "profiles": [
    "nasa",
    "apifytech"
  ],
  "maxItems": 100,
  "allowEmbedFallback": false,
  "requestTimeoutSecs": 15,
  "maxRetries": 1,
  "maxEstimatedCostUsd": 1
}
```

# Actor output Schema

## `profiles` (type: `string`):

No description

## `report` (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",
        "apifytech"
    ],
    "maxItems": 100,
    "allowEmbedFallback": false,
    "requestTimeoutSecs": 15,
    "maxRetries": 1,
    "maxEstimatedCostUsd": 1
};

// Run the Actor and wait for it to finish
const run = await client.actor("pellucid_bird/tiktok-profile-metrics-lens").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",
        "apifytech",
    ],
    "maxItems": 100,
    "allowEmbedFallback": False,
    "requestTimeoutSecs": 15,
    "maxRetries": 1,
    "maxEstimatedCostUsd": 1,
}

# Run the Actor and wait for it to finish
run = client.actor("pellucid_bird/tiktok-profile-metrics-lens").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",
    "apifytech"
  ],
  "maxItems": 100,
  "allowEmbedFallback": false,
  "requestTimeoutSecs": 15,
  "maxRetries": 1,
  "maxEstimatedCostUsd": 1
}' |
apify call pellucid_bird/tiktok-profile-metrics-lens --silent --output-dataset

```

## MCP server setup

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

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/47bn8XioHRAz2R81p/builds/FT5MoH4w5AXdWiaYP/openapi.json
