# TikTok Public Profile Metadata Scraper (`w3crawler/tiktok-profile-metadata-scraper`) Actor

Extract public TikTok profile metadata from usernames or profile URLs and explicitly report that stable public mention results are unavailable.

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

## Pricing

from $2.99 / 1,000 profile metadata

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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 Public Profile Metadata Scraper

**TikTok Public Profile Metadata Scraper** returns source-backed identity and profile statistics for public TikTok accounts. It tries the public TikWM user-info resolver first, then the public profile page and its documented `r.jina.ai` reader fallback, with a public oEmbed fallback for minimal identity when page state is unavailable. It reads usernames or canonical profile URLs and does not log in, query private profiles, fetch posts, or claim a mention feed.

### Get started

1. Open the [Actor Store page](https://apify.com/w3crawler/tiktok-profile-metadata-scraper) and select **Try for free** or open the **Input** tab.
2. Supply at least one value in `usernames` or `profileUrls`. `maxProfiles` defaults to 10.
3. Keep the default timeout, retry, and delay for the first run.
4. Start the Actor, open the dataset, and export the saved records as JSON, CSV, or Excel. Open **Run summary** (`OUTPUT_SUMMARY`) to check the outcome and counts.

### Input

The fields are individually optional, but a run needs at least one username or profile URL; an empty target list is rejected. Unsupported field names and out-of-range values are rejected before requests start.

| Field | Type | Required? | Default | Meaning |
| --- | --- | --- | --- | --- |
| `usernames` | string array | Optional | Not supplied | Public TikTok usernames, with or without `@`. Up to 10 items. |
| `profileUrls` | string array | Optional | Not supplied | Canonical public HTTPS TikTok profile URLs. Up to 10 items. |
| `maxProfiles` | integer | Optional | `10` | Maximum unique public profiles to process. 1–10. |
| `requestTimeoutSecs` | integer | Optional | `15` | Timeout for each direct page or reader-fallback request. 10–120 seconds. |
| `maxRequestRetries` | integer | Optional | `1` | Bounded retry count for direct public requests. 0–2. |
| `requestDelayMs` | integer | Optional | `250` | Delay between target profiles. 0–5000 ms. |
| `proxyConfiguration` | object | Optional | Not supplied | Optional Apify Proxy configuration or explicit HTTP(S) `proxyUrls`. |

Full default input:

```json
{
  "maxProfiles": 10,
  "requestTimeoutSecs": 15,
  "maxRequestRetries": 1,
  "requestDelayMs": 250
}
```

No target is supplied by default; add at least one username or profile URL before running.

The Actor reads public TikTok data. Optional `proxyConfiguration` uses standard Apify Proxy settings or explicit proxy URLs.

### Output

The dataset contains one row per saved public profile. Optional information appears only when the resolver or page publishes it; missing values are omitted rather than inferred. No diagnostic or placeholder rows are written.

| Field | Type | Availability | Meaning |
| --- | --- | --- | --- |
| `username` | string | Always | Public TikTok username without `@`. |
| `profileUrl` | string | Always | Canonical public profile URL on `www.tiktok.com/@username`. |
| `displayName` | string | When published | Public display name. |
| `bio` | string | When published | Public biography or signature. |
| `avatarUrl` | string | When published | Public avatar image URL. |
| `followingText` | string | When published | Visible following-count text, such as `1.2K`. |
| `followingCount` | integer | When published | Following count parsed from the visible text. |
| `followerCountText` | string | When published | Visible follower-count text. |
| `followerCount` | integer | When published | Follower count parsed from the visible text. |
| `likeCountText` | string | When published | Visible profile-like count text. |
| `likeCount` | integer | When published | Profile-like count parsed from the visible text. |
| `mentionsAvailable` | boolean | Always | `false`: no stable public mention feed is queried. |
| `mentionsStatus` | string | Always | Explanation of the mention-feed limitation. |
| `source` | string | Always | Source label; `tiktok.com`. |
| `sourceUrl` | string | Always | Public profile URL that produced the record. |
| `scrapedAt` | string | Always | Time the row was saved, in ISO UTC. |

The example below is the complete saved row from the 2026-10-25 run. The oEmbed fallback supplied identity and the actor-supplied mention notice; the optional counts and avatar were not available through that route.

```json
{
  "username": "nasa",
  "profileUrl": "https://www.tiktok.com/@nasa",
  "displayName": "NASA",
  "bio": "NASA's Creator Profile",
  "mentionsAvailable": false,
  "mentionsStatus": "public_profile_page_does_not_expose_a_stable_mention_feed",
  "source": "tiktok.com",
  "sourceUrl": "https://www.tiktok.com/@nasa",
  "scrapedAt": "2026-10-25T20:46:38.719Z"
}
```

### Run summary

**Run summary** is stored separately from the dataset in the run's key-value store under `OUTPUT_SUMMARY`. It records the outcome and counts for the profile batch; it is not a dataset row.

| Field | Meaning |
| --- | --- |
| `status` | `SUCCEEDED` when at least one profile row was saved; `FAILED` when none was saved. |
| `dataStatus` | `COMPLETE` when every processed profile produced a row, `PARTIAL` when at least one failed, or `FAILED` when no row was saved. |
| `source` | Source label; `tiktok.com`. |
| `requestedProfileCount` | Unique usernames and URL-derived usernames supplied before `maxProfiles` is applied. |
| `processedProfileCount` | Profiles attempted in the run. |
| `normalCount` | Profile rows saved to the dataset. |
| `diagnosticCount` | Profiles that ended without a usable row, including dataset-write failures. |
| `mentionsAvailable` | Always `false`; no mention feed is queried. |
| `postCrawl` | Always `false`; the Actor does not fetch profile posts. |
| `transport` | Route used: `tikwm_public_api`, `tikwm_apify_proxy`, `proxy`, `direct_http`, `reader_fallback`, `oembed`, `fixture`, `mixed`, or `none`. |
| `completedAt` | Time the summary was written, in ISO UTC. |
| `runStatus` | Canonical run status; always matches `status`. |

| Status | Data status | Meaning |
| --- | --- | --- |
| `SUCCEEDED` | `COMPLETE` | Every processed profile produced a row. |
| `SUCCEEDED` | `PARTIAL` | Some profile rows were saved and at least one target failed. Saved rows remain available. |
| `FAILED` | `FAILED` | No profile row was saved. |

Example `OUTPUT_SUMMARY` from the 2026-10-25 run:

```json
{
  "status": "SUCCEEDED",
  "dataStatus": "COMPLETE",
  "source": "tiktok.com",
  "requestedProfileCount": 1,
  "processedProfileCount": 1,
  "normalCount": 1,
  "diagnosticCount": 0,
  "mentionsAvailable": false,
  "postCrawl": false,
  "transport": "oembed",
  "completedAt": "2026-10-25T20:46:38.794Z",
  "runStatus": "SUCCEEDED"
}
```

### Coverage and limitations

The Actor reads public TikTok profile data for the accounts you supply. The TikWM resolver is tried first; when it is unavailable, the Actor requests the public profile page directly, then through the `r.jina.ai` reader fallback, and finally asks TikTok oEmbed for minimal identity. The chosen route can determine how many fields are present: an oEmbed-only record can contain a display name and bio but no follower counts or avatar.

The Actor does not log in, access private accounts, fetch profile posts or follower lists, query a mention feed, or bypass access controls. `mentionsAvailable` is always `false` and `mentionsStatus` explains the limitation. Optional fields are omitted when the source does not publish them, and values are not inferred. Blocked, empty, or partial responses are reported in the run summary and logs rather than written as fabricated rows. Proxy use is optional and does not guarantee access.

### Usage and support

Each profile normally costs one TikWM request; fallback routes add page, reader, or oEmbed requests. Retries, delays, and proxy traffic increase run time and compute. Start with one or two profiles, inspect the dataset and summary, then scale gradually. See the Actor's Pricing tab for current account rates.

Use the [Actor Issues page](https://apify.com/w3crawler/tiktok-profile-metadata-scraper/issues) to report a problem. Include the run ID, the input used, and the `OUTPUT_SUMMARY`; do not include tokens, cookies, or private data. This Actor is not affiliated with TikTok, TikWM, or `r.jina.ai`. Use it only for public data and in accordance with the applicable terms, robots guidance, and law. Public profiles can contain personal information; use the output only for lawful purposes.

# Actor input Schema

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

Public TikTok usernames, with or without @.

## `profileUrls` (type: `array`):

Canonical public HTTPS TikTok profile URLs.

## `maxProfiles` (type: `integer`):

Maximum unique public profiles to process.

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

Timeout for each bounded direct or reader-fallback request.

## `maxRequestRetries` (type: `integer`):

Bounded retry count for direct public requests.

## `requestDelayMs` (type: `integer`):

Optional delay between target profiles.

## `proxyConfiguration` (type: `object`):

Optional Apify Proxy configuration or explicit proxyUrls.

## Actor input object example

```json
{
  "usernames": [
    "tiktok"
  ],
  "maxProfiles": 1,
  "requestTimeoutSecs": 15,
  "maxRequestRetries": 1,
  "requestDelayMs": 250
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

## `runSummary` (type: `string`):

Run status and counters stored by the Actor.

# 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": [
        "tiktok"
    ],
    "maxProfiles": 1
};

// Run the Actor and wait for it to finish
const run = await client.actor("w3crawler/tiktok-profile-metadata-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": ["tiktok"],
    "maxProfiles": 1,
}

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,w3crawler/tiktok-profile-metadata-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/G9hK0ayGAsiG4wW3i/builds/kLk5mXw3VdqxyImtT/openapi.json
