# TikTok Profile Scraper - Profiles, Videos and Reposts (`headofactors/tiktok-profile-scraper`) Actor

TikTok profile scraper for public profile details, videos and reposts. Keep familiar input and output fields, filter posts by date and likes, or collect profile details without videos.

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

## Pricing

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

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

TikTok profile scraper for public account details, videos and reposts, with familiar input fields and camelCase output. Collect posts, filter by date and likes, or request profile details without collecting videos.

### What this TikTok profile scraper returns

Each post is a separate dataset row with its TikTok ID, caption, posting date, public video URL, engagement counters, sound metadata and available subtitle links. The nested `authorMeta` object contains the requested account's public details and statistics. The `videoMeta` and `musicMeta` objects keep familiar field names for existing data pipelines.

For creator research, use public follower counts, biographies and links to identify accounts worth investigating. For content analysis, collect captions, hashtags and engagement counters. For monitoring, run the same saved input on a schedule and compare the returned IDs with your previous results. Counters describe what TikTok served at collection time; they can change between runs and may be rounded.

### Input and a small first run

Start with the following input. It is the fixed NASA input used in the comparison below and returns at most twenty posts:

```json
{"profiles":["nasa"],"resultsPerPage":20}
```

`profiles` accepts plain handles, handles beginning with `@`, and TikTok profile URLs. Query parameters and fragments on profile URLs are accepted. Repeated handles, including different capitalization, are collected once. The `input` field preserves the first spelling you supplied. An invalid entry is reported separately while valid profiles continue.

`resultsPerPage` is the maximum number of posts **per profile**, across the selected sections. Its default is 100, matching the familiar input. Use 10 or 20 while exploring a new account. Set it to **0** to receive one public profile row per account without collecting videos. Profile rows contain `authorMeta`, `profile_url`, `profile_id`, `handle`, `name`, `bio`, `links` and available follower counts. They have no video fields.

`profileSorting` supports `latest`, `popular` and `oldest`. Popular follows TikTok's own ranking rather than a strict numeric sort. TikTok can limit the popular feed to a few hundred posts. `excludePinnedPosts` removes pinned posts while collection continues toward your requested limit. Pinned posts do not prematurely close a date window.

`profileScrapeSections` accepts `videos`, `reposts` and `stories`. The default is videos. Reposts identify the section in `fromProfileSection`; `author_handle` and `author_id` identify the original post creator, while `authorMeta` describes the account you requested. Stories are collected when the source supplies them. A populated story response has not yet been independently verified; accounts with no active stories return an empty result.

### Date and likes filters

Use `oldestPostDateUnified` for the lower boundary and `newestPostDate` for the upper boundary. Absolute UTC dates and timestamps are supported. A date-only upper boundary includes that entire UTC day. Relative lower boundaries accept minutes, hours, days, weeks, months and years. Following the familiar calendar convention, `1 day` means today in UTC and `2 days` means yesterday plus today. Minute and hour periods are rolling windows. Relative boundaries remain fixed throughout resumed collection.

`leastDiggs` and `mostDiggs` set inclusive minimum and maximum likes. Both work together with date filters. Invalid dates and reversed boundaries are rejected before collection starts. When no posts match, the error includes the newest and oldest post dates actually observed, when available. Likes filters and date filters without a chronological stopping boundary scan at most thirty feed pages per section of each profile and report incomplete coverage if more data remains. Each requested section has its own scan budget. Unfiltered collection, pinned-post exclusion alone and date windows with a chronological stopping boundary continue until the requested limit or the end of the source feed, resuming across requests when needed.

### Output and compatibility

Post rows retain `id`, `text`, `textLanguage`, `createTime`, `createTimeISO`, `webVideoUrl`, `diggCount`, `playCount`, `commentCount`, `shareCount`, `collectCount`, `repostCount`, `isPinned`, `isSponsored`, `hashtags`, `mentions`, `detailedMentions`, `effectStickers`, `authorMeta`, `musicMeta` and `videoMeta`. Slideshow rows also include `slideshowImageLinks`. Empty or unavailable source values remain empty or null rather than being invented.

Every row has `record_type`, `_type` and `fetched_at`. Posts also include normalized social fields such as `post_id`, `post_url`, `posted_at`, `likes`, `views` and sorted `hashtags_normalized`. Familiar `hashtags` remain objects, preserving their original shape. The additional fields make the results easier to join with other social data without renaming existing columns.

Available subtitle links are included in `videoMeta.subtitleLinks`. This version accepts the familiar download, transcription, follower, following and comment options for input compatibility, but **does not perform those extra operations**. Selecting them produces a warning and no additional charge. `mediaUrls` remains empty. Location enrichment is unavailable and `locationMeta` is null.

Results are stored in the default dataset. Run output reports warnings, per-profile errors and whether collection was partial. Large collections resume automatically in the Actor. Direct API users must pass both `next_cursor` as `cursor` and `continuation`, alongside the original input. A resumed request must preserve the original filters and limit.

### Pricing and empty results

The Actor is prepared for one `result` event per delivered post or profile row. Empty results, missing accounts and unsupported add-ons do not produce billable result events. No date-filter, popularity-filter or download surcharge is configured. The published Actor pricing panel is authoritative; our live price per 1,000 rows will be measurable after deployment.

Non-paying users receive at most ten rows across the whole run. An explicit profile-only request stays profile-only under that limit. The output records when the free allowance caps delivery. Larger requests should use a paid Apify account and an appropriate run spending limit.

### Benchmark

Measured on 18 November 2026 with ten fixed inputs. The competitor was `clockworks/tiktok-profile-scraper`, build 0.0.525, using the account's BRONZE event rates. Our implementation was measured directly with the handler. That timing excludes Apify startup, so these are not end-to-end Actor timing comparisons. Full inputs, run references and field counts are kept with the product's research evidence.

| Input | Leader videos | Leader seconds | Leader USD | Our videos | Our seconds |
|---|---:|---:|---:|---:|---:|
| prefill | 10 | 13.3 | 0.020 | 10 | 4.856 |
| nasa-20 | 20 | 8.3 | 0.040 | 20 | 8.852 |
| url-input | 10 | 20.6 | 0.020 | 10 | 4.097 |
| at-handle | 10 | 10.2 | 0.020 | 10 | 3.831 |
| multi-profile | 20 | 43.1 | 0.040 | 20 | 11.350 |
| deep-60 | 60 | 12.5 | 0.120 | 60 | 6.534 |
| exclude-pinned | 10 | 10.0 | 0.020 | 10 | 4.911 |
| date-window | 10 | 17.2 | 0.030 | 10 | 12.391 |
| popular | 10 | 11.4 | 0.020 | 10 | 5.584 |
| not-found | 0 | 3.5 | 0.002 | 0 | 11.785 |

Both implementations returned posts for **9/10 inputs (90%)**. Our handler matched all **10/10 expected outcomes**, including the absent account, and delivered **160 video rows**. The leader also delivered 160 video rows and added one charged NOT_FOUND row. Median time: leader **11.95 s**, our handler **6.059 s**. Leader total: **USD 0.332**, or **USD 2.062 per 1,000 dataset rows** including the missing-account row; **USD 2.075 per 1,000 video rows**. The base result rate was USD 2.00 per 1,000 at BRONZE and USD 3.00 at FREE, with a date-filter surcharge in this sample.

**Our live Actor price per 1,000: not yet measurable; the Actor is created after merge and deployment.** Direct handler requests have no Apify event bill. No measured zero-price claim is made.

Field completeness below counts actual video rows. Zero and false count as filled; null, empty strings and empty arrays do not. Counts are from all ten inputs, taken at different collection times.

| Field | Leader filled / 160 | Our filled / 160 |
|---|---:|---:|
| `id` | 160 | 160 |
| `text` | 160 | 160 |
| `createTimeISO` | 160 | 160 |
| `webVideoUrl` | 160 | 160 |
| `authorMeta.name` | 160 | 160 |
| `authorMeta.fans` | 160 | 160 |
| `authorMeta.heart` | 160 | 160 |
| `authorMeta.friends` | 160 | 160 |
| `authorMeta.bioLink` | 120 | 120 |
| `musicMeta.musicId` | 160 | 160 |
| `musicMeta.playUrl` | 106 | 105 |
| `videoMeta.coverUrl` | 159 | 159 |
| `videoMeta.subtitleLinks` | 88 | 88 |
| `hashtags` | 84 | 84 |
| `mentions` | 34 | 34 |
| `effectStickers` | 10 | 10 |
| `slideshowImageLinks` | 3 | 3 |
| `locationMeta.locationId` | 8 | 0 |

Location enrichment is not provided in this version. Subtitle and other differences reflect the actual source responses, not guaranteed field coverage. Detailed counts for every field are in `research/handler-benchmark.json` and `research/leader-benchmark.json`.

### Reliability and known boundaries

Public profile pages can temporarily report an existing account as missing. The scraper makes at least five independent profile attempts before reporting an account as not found. A successful profile response takes precedence over earlier missing responses. Profile statistics come from the profile response, including the large like total rather than an overflowing alternative counter.

One account failing does not discard another account's results. Source failures are reported in the output and previously collected rows remain available. A partial collection is explicitly identified. Public data availability can change and a successful request cannot guarantee that every field or every historical post exists in the source.

### FAQ

#### Can I collect only profile details?

Yes. Set `resultsPerPage` to 0. You receive one row per found public profile, including its available public statistics, without any post collection.

#### Can I reuse my existing profile input?

All twenty familiar input field names are accepted. Videos, reposts, profile sorting, pinned exclusion and date and likes filters are supported. Downloads, transcription, comments and follower datasets are accepted compatibility options with explicit warnings about unavailable functionality.

#### Why are no posts returned for an account?

The account may be missing, private, have no active stories or have no posts matching the filters. Read the per-profile errors and warnings. A private account produces a warning and no public video rows; it does not add a profile error alongside results from other accounts. If the entire collection is empty, a not-found message may explain the outcome. Profile-only mode can still return its public profile metadata. A missing account produces no charged dataset row. Empty date windows report observed dates to help you adjust the input.

#### Why can follower or video counters differ from another run?

Public counters change, can be rounded and are collected at different times. Missing values are distinguished from actual zeroes. Popular ordering also reflects TikTok's own ranking and can differ from a simple sort by views.

#### Can I download media or obtain private content?

Media files are not downloaded in this version. Public source links are returned when available and may expire. Collection is limited to public data supplied by TikTok.

After a complete, successful run that delivered data, the Actor log includes a link to leave a review. Feedback helps identify which fields and collection modes need further work.

# Actor input Schema

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

Add one or multiple TikTok usernames or user IDs you want to scrape. You can enter the usernames one by one, or use the <strong>Bulk edit</strong> section to add a prepared list.

## `profileScrapeSections` (type: `array`):

If a profile has reposted videos, you can scrape them by selecting 'Reposts'. If a profile currently has an active story, you can scrape it by selecting 'Stories'

## `profileSorting` (type: `string`):

Select Latest to scrape the most recent videos first, Oldest - the oldest videos first, Popular - the most popular videos first. Date filters only work with Latest and Oldest. Only supported for Videos section. Note: Popular sorting is limited by TikTok to approximately 400–500 videos per profile and may return significantly fewer results than Latest or Oldest.

## `resultsPerPage` (type: `integer`):

Posts per profile (100 by default). Set 0 for one profile row per account without collecting posts. Start with 10 for a small run.

## `oldestPostDateUnified` (type: `string`):

Optional charged filter. Only videos uploaded after or on this date will be scraped. Alternatively, specify how old the scraped videos should be in days. Putting <code>1</code> will get you only today's posts, <code>2</code> - yesterday's and today's, and so on.

## `newestPostDate` (type: `string`):

Optional charged filter. Only videos uploaded before or on this date will be scraped.

## `mostDiggs` (type: `integer`):

Maximum likes per post. Can be combined with date filters.

## `leastDiggs` (type: `integer`):

Minimum likes per post. Can be combined with date filters.

## `maxFollowersPerProfile` (type: `integer`):

Compatibility option: accepted, but this version does not create downloads, comments or follower datasets. Enabling it adds a warning and no extra charge.

## `maxFollowingPerProfile` (type: `integer`):

Compatibility option: accepted, but this version does not create downloads, comments or follower datasets. Enabling it adds a warning and no extra charge.

## `excludePinnedPosts` (type: `boolean`):

Tick to exclude pinned posts from profiles. Pinned posts are usually the first videos on a profile's page.

## `shouldDownloadVideos` (type: `boolean`):

Compatibility option: accepted, but this version does not create downloads, comments or follower datasets. Enabling it adds a warning and no extra charge.

## `shouldDownloadCovers` (type: `boolean`):

Compatibility option: accepted, but this version does not create downloads, comments or follower datasets. Enabling it adds a warning and no extra charge.

## `downloadSubtitlesOptions` (type: `string`):

Compatibility option. Available TikTok subtitle links are always included. Downloading and transcription are not supported; selecting either adds a warning with no extra charge.

## `shouldDownloadSlideshowImages` (type: `boolean`):

Compatibility option: accepted, but this version does not create downloads, comments or follower datasets. Enabling it adds a warning and no extra charge.

## `shouldDownloadAvatars` (type: `boolean`):

Compatibility option: accepted, but this version does not create downloads, comments or follower datasets. Enabling it adds a warning and no extra charge.

## `videoKvStoreIdOrName` (type: `string`):

Compatibility option: accepted, but this version does not create downloads, comments or follower datasets. Enabling it adds a warning and no extra charge.

## `commentsPerPost` (type: `integer`):

Compatibility option: accepted, but this version does not create downloads, comments or follower datasets. Enabling it adds a warning and no extra charge.

## `topLevelCommentsPerPost` (type: `integer`):

Compatibility option: accepted, but this version does not create downloads, comments or follower datasets. Enabling it adds a warning and no extra charge.

## `maxRepliesPerComment` (type: `integer`):

Compatibility option: accepted, but this version does not create downloads, comments or follower datasets. Enabling it adds a warning and no extra charge.

## `cursor` (type: `string`):

Resume with next_cursor from the previous response; keep the original input and continuation unchanged.

## `continuation` (type: `string`):

Signed continuation returned with next_cursor. Omit on the first request.

## Actor input object example

```json
{
  "profiles": [
    "apifylife"
  ],
  "profileScrapeSections": [
    "videos"
  ],
  "profileSorting": "latest",
  "resultsPerPage": 10,
  "excludePinnedPosts": false,
  "shouldDownloadVideos": false,
  "shouldDownloadCovers": false,
  "downloadSubtitlesOptions": "NEVER_DOWNLOAD_SUBTITLES",
  "shouldDownloadSlideshowImages": false,
  "shouldDownloadAvatars": false
}
```

# Actor output Schema

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

Profile records and post records with the familiar field names.

## `output` (type: `string`):

Counts, warnings and collection status.

# 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": [
        "apifylife"
    ],
    "resultsPerPage": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("headofactors/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": ["apifylife"],
    "resultsPerPage": 10,
}

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

```

## MCP server setup

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