# TikTok Profile Scraper – User Videos & Creator Data (`harshmaur/tiktok-profile-scraper`) Actor

Extract TikTok user videos and creator data from public profiles. Get captions, engagement, author metadata, reposts and media. Combine free date and likes filters, then add downloads, subtitles or AI analysis.

- **URL**: https://apify.com/harshmaur/tiktok-profile-scraper.md
- **Developed by:** [Harsh Maur](https://apify.com/harshmaur) (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

from $0.35 / 1,000 videos

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

Turn public creator profiles into a dataset of TikTok user videos. Each video carries its caption, engagement counts, publishing time, sound and `authorMeta` creator data. Use usernames, @handles or full profile links. No TikTok account is required.

### TikTok profile scraper for creator research

Follow a creator's uploads, compare engagement across accounts, or collect examples for content research. Choose uploaded videos, reposts, or both. The output contains `video` rows and free `failed` rows for inputs that cannot be retrieved. It does not add a separately billed profile record.

Private accounts, deleted content and login-only stories are unavailable. TikTok can limit the public results, so a requested count is a ceiling rather than a promise.

### Collect TikTok user videos from profile URLs

Add profiles and set `resultsPerPage`. The default is 100 videos per selected section of each profile. Set `maxItems` to cap the total across the run.

```json
{
  "profiles": ["khaby.lame"],
  "profileScrapeSections": ["videos"],
  "profileSorting": "latest",
  "resultsPerPage": 5,
  "excludePinnedPosts": true,
  "shouldDownloadVideos": false
}
```

`profileSorting` accepts `latest`, `oldest` and `popular` for uploaded videos. Select `reposts` in `profileScrapeSections` to collect reposted content. The count applies separately to each selected section; a video present in both is stored once.

Combine `oldestPostDateUnified` and `newestPostDate` for a publication window. Use `leastDiggs` and `mostDiggs` for minimum and maximum likes. These filters can work together. The lower date accepts an ISO date or a relative age such as `30 days`. Skip pinned posts with `excludePinnedPosts` when you want a recent feed.

### TikTok creator data and video output

Download the dataset as JSON, CSV or Excel. This shortened example shows the shape of a video row; values are illustrative.

```json
{
  "dataType": "video",
  "id": "7694335322922044703",
  "webVideoUrl": "https://www.tiktok.com/@khaby.lame/video/7694335322922044703",
  "text": "A new way to make things simple",
  "createTimeISO": "2026-10-01T12:00:00.000Z",
  "playCount": 120000,
  "diggCount": 8500,
  "commentCount": 75,
  "shareCount": 210,
  "authorMeta": {
    "name": "khaby.lame",
    "nickName": "Khabane lame",
    "profileUrl": "https://www.tiktok.com/@khaby.lame",
    "verified": true,
    "fans": 163000000
  },
  "fromProfileSection": "videos",
  "input": "khaby.lame"
}
```

Creator metadata reflects what TikTok exposes on each video. Reposted videos carry the original video's author, while `input` identifies the profile you supplied. Video metadata can include duration, dimensions and cover links; `musicMeta` identifies the sound, and `hashtags` lists attached tags.

### Download profile videos, subtitles and AI insights

Enable `shouldDownloadVideos` to save video files without a watermark. `mediaUrls` links to saved files in the run's default key-value store. Cover images, slideshow images, sound covers and profile avatars have separate switches. Stored files follow your Apify plan's retention policy.

`downloadSubtitlesOptions` controls TikTok captions and optional AI transcription. Caption links appear in `videoMeta.subtitleLinks`; AI text appears in `videoMeta.transcript`. Captions depend on what the creator supplied.

Use `aiAnalysis` for category, sponsorship, brand safety and sentiment labels, or `aiQuestions` for your own yes/no questions. `aiVideoSummary` and `aiVideoDescription` add a summary or scene description. AI availability depends on the listing configuration and paid-plan eligibility.

The optional `mcpConnector` fields send collected videos to an authorized app such as Slack, Notion or Google Sheets. Set the destination with `mcpTarget` and customize the message with `mcpMessage`.

### TikTok profile scraper pricing

Apify charges **$0.015 to start a profile run**. Every plan uses the flat rates below; there are no tier discounts.

| Work delivered | Flat price |
| --- | --- |
| Video row | $0.00035 ($0.35 per 1,000) |
| Saved MP4 download | $0.01 per video |
| Text AI analysis | $0.0015 per video |
| AI transcript, summary or scene description | $0.025 per started 30 seconds of video |

An unavailable profile or video produces a row without a result or add-on fee. The start charge remains payable. TikTok captions cost nothing extra; the Store pricing panel holds the configured rates.

### TikTok profile scraper FAQ

#### Can I get only a creator's profile record?

This listing returns videos with creator metadata. It suppresses standalone profile rows. For broader profile and search workflows, use the all-in-one scraper linked below.

#### Why does a profile return fewer videos than requested?

A profile may have fewer public videos, filters may remove posts, or TikTok may stop serving pages. Look for a free `failed` row for an unavailable profile or a refused list request. Private videos and stories require access this scraper does not have.

#### Can I also collect comments or followers?

This form focuses on user videos. Pasted comment or follower settings do not enable those rows. Use the comments listing or the all-in-one engine for those tasks.

#### Can I reuse input from another profile scraper?

The supported keys include `profiles`, `resultsPerPage`, `profileScrapeSections`, `profileSorting`, date and likes filters, downloads and subtitles. Stories and named media stores are not supported. Downloads use the default store attached to your run.

### More TikTok scraping tools

- [TikTok Scraper](https://apify.com/harshmaur/tiktok-scraper): combine profiles, search, hashtags, music and social data.
- [TikTok Comments Scraper](https://apify.com/harshmaur/tiktok-comments-scraper): collect discussions beneath videos.
- [TikTok Profile Scraper](https://apify.com/harshmaur/tiktok-profile-scraper): return to this creator-video listing.
- [TikTok Video Scraper](https://apify.com/harshmaur/tiktok-video-scraper): extract posts from a prepared list of links.
- [TikTok Hashtag Scraper](https://apify.com/harshmaur/tiktok-hashtag-scraper): discover videos by topic tag.
- [TikTok Transcript Scraper](https://apify.com/harshmaur/tiktok-transcript-scraper): gather captions and speech transcripts.

# Actor input Schema

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

Enter public TikTok usernames, @handles or profile URLs. Each result is a video with creator data in authorMeta; no separate profile row is charged.

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

Collect uploaded videos, reposted videos, or both. Stories are not available without login.

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

Latest returns the newest videos first, Oldest the first videos the account posted, Popular the most played. Applies to the Videos tab.

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

Maximum accepted videos per selected section of each profile. Defaults to 100 when omitted.

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

Keep profile videos posted on or after this date. Relative ages such as 30 days or 2 weeks count back from the start of the run.

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

Only keep videos posted on or before this date. Pair it with the field above for a date window.

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

Keep profile videos with at most this many likes. Combine this with dates or a minimum likes count.

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

Keep profile videos with at least this many likes, including when date filters are enabled.

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

Leave out the videos a creator pinned to the top of the profile. Pinned videos are often old, so skipping them keeps a 'latest videos' run truly recent.

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

Save each video's MP4 file, without the TikTok watermark.

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

Save the thumbnail of each video.

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

Download subtitles saves the captions TikTok already has (links in videoMeta.subtitleLinks). The transcribe options also write a speech-to-text transcript to videoMeta.transcript, either only for videos without captions or for all videos.

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

Save every image of photo and slideshow posts. Links go to slideshowImageLinks.

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

Save the author's avatar for each video.

## `shouldDownloadMusicCovers` (type: `boolean`):

Save the cover art of the sound each video uses.

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

Stop after this many video rows across all supplied profiles and selected sections.

## `aiAnalysis` (type: `boolean`):

Adds aiAnalysis to each video: a content category, whether it looks sponsored, whether it is brand safe, and its sentiment.

## `aiQuestions` (type: `array`):

Up to 20 questions answered with true or false for every video, for example 'Does the video show a dog?'. Answers go to aiAnalysis.answers. Needs the AI labels option.

## `aiVideoSummary` (type: `boolean`):

A short summary of what the video is about, from its picture and sound. Saved in videoMeta.aiVideoSummary.

## `aiVideoDescription` (type: `boolean`):

A timed description of what is seen and heard in each scene. Saved in videoMeta.aiVideoDescription.

## `mcpConnector` (type: `string`):

Choose an authorized app connector to receive the collected profile videos. Leave empty to save only to the dataset.

## `mcpMode` (type: `string`):

perPost: one message or record per video. summary: a single digest of the whole run.

## `mcpTarget` (type: `string`):

Where to write — the destination ID the tool needs: a Notion database/page ID, a Google Sheet ID, or a Slack channel. Leave blank for connectors that post to a default location. Advanced shapes go in Arguments JSON below.

## `mcpMessage` (type: `string`):

Template for each message. Use {{field}} placeholders from any video field, nested paths included — common ones: {{text}}, {{webVideoUrl}}, {{authorMeta.name}}, {{playCount}}, {{diggCount}}, {{commentCount}}, {{shareCount}}, {{createTimeISO}}. Missing fields render empty.

## `mcpTool` (type: `string`):

Force a specific tool name on the connector (e.g. send_message, create_page, append_row). Leave empty to auto-detect the connector's write/notify tool.

## `mcpArguments` (type: `object`):

Extra/override arguments merged into each tool call as JSON — e.g. {"channel": "#tiktok"} for Slack. {{field}} placeholders work inside string values too, so you can nest live data into any shape — e.g. Notion: {"properties": {"Title": {"title": \[{"text": {"content": "{{text}}"}}]}, "Link": {"url": "{{webVideoUrl}}"}}}.

## `mcpMaxItems` (type: `integer`):

Safety cap on how many videos are piped to the connector per run (perPost mode). Protects against flooding the destination.

## `mcpServerUrl` (type: `string`):

Advanced/testing only. Connect directly to a raw MCP server URL, bypassing the connector above. For real use prefer a connector — your credentials then stay in Apify. When set, this overrides the connector.

## `mcpServerToken` (type: `string`):

Bearer token for the dev MCP server URL above. A token entered here IS visible to the actor at runtime — for production use an MCP Connector instead. Ignored unless the URL is set.

## Actor input object example

```json
{
  "profiles": [
    "apifylife"
  ],
  "profileScrapeSections": [
    "videos"
  ],
  "profileSorting": "latest",
  "resultsPerPage": 100,
  "excludePinnedPosts": false,
  "shouldDownloadVideos": false,
  "shouldDownloadCovers": false,
  "downloadSubtitlesOptions": "NEVER_DOWNLOAD_SUBTITLES",
  "shouldDownloadSlideshowImages": false,
  "shouldDownloadAvatars": false,
  "shouldDownloadMusicCovers": false,
  "aiAnalysis": false,
  "aiVideoSummary": false,
  "aiVideoDescription": false,
  "mcpMode": "perPost",
  "mcpMessage": "*@{{authorMeta.name}}* — {{diggCount}} likes · {{playCount}} views\n{{text}}\n{{webVideoUrl}}",
  "mcpMaxItems": 50
}
```

# Actor output Schema

## `videos` (type: `string`):

Video rows with caption, author, views, likes, comments, shares, sound and optional AI fields.

## `failed` (type: `string`):

Inputs that could not be scraped, with the reason. Not charged.

# 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"
    ],
    "profileScrapeSections": [
        "videos"
    ],
    "resultsPerPage": 100,
    "mcpMode": "perPost",
    "mcpMessage": `*@{{authorMeta.name}}* — {{diggCount}} likes · {{playCount}} views
{{text}}
{{webVideoUrl}}`,
    "mcpMaxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("harshmaur/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"],
    "profileScrapeSections": ["videos"],
    "resultsPerPage": 100,
    "mcpMode": "perPost",
    "mcpMessage": """*@{{authorMeta.name}}* — {{diggCount}} likes · {{playCount}} views
{{text}}
{{webVideoUrl}}""",
    "mcpMaxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("harshmaur/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"
  ],
  "profileScrapeSections": [
    "videos"
  ],
  "resultsPerPage": 100,
  "mcpMode": "perPost",
  "mcpMessage": "*@{{authorMeta.name}}* — {{diggCount}} likes · {{playCount}} views\\n{{text}}\\n{{webVideoUrl}}",
  "mcpMaxItems": 50
}' |
apify call harshmaur/tiktok-profile-scraper --silent --output-dataset

```

## MCP server setup

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