# TikTok Profile Scraper (`calm_builder/tiktok-profile-scraper`) Actor

Scrape TikTok profiles and their videos, or find creators by keyword. Get bio, bio link, followers, likes, category and join date, plus every video's views, likes, comments, shares, saves, caption, music and video link. Free date and popularity filters. Latest, Popular or Oldest.

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

## Pricing

from $0.80 / 1,000 profile scrapeds

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

Scrape TikTok profiles and the videos they post, as clean, structured data.

Add usernames or profile links, or search keywords to find creators, choose how many videos you need, and export the results as JSON, CSV or Excel, or pull them through the Apify API. Results appear in your dataset while the run is still going.

### What This Actor Does

- Saves each **profile**: name, bio, bio link, avatar, followers, following, total likes, video count, verified and private flags, business category and the date the account was created
- **Finds creators by keyword** (for example `fitness coach`) and scrapes each one exactly like a username you typed: full profile plus videos
- Collects each profile's **videos** with views, likes, comments, shares, saves, caption, hashtags, mentions, music, cover image, video link and subtitle links
- Lets you pick **Latest**, **Popular** or **Oldest** videos, just like the tabs on a TikTok profile
- Collects **reposts**, public **liked videos**, **playlists** and active **stories** when you need them
- **Date filters, view and like filters, pinned-video skipping, subtitles and country selection are included at no extra cost**
- Can also collect **profile details only**, without videos, for fast lead lists and audits

### Best For

- Influencer discovery and creator vetting
- Competitor and brand monitoring
- Tracking a creator's new videos every day or week
- Lead generation from creator bios and links
- Building datasets for dashboards, BI or AI workflows

### Input

| Field                     | What it does                                                                                              |
| ------------------------- | --------------------------------------------------------------------------------------------------------- |
| `profiles`                | Usernames or profile links, e.g. `khaby.lame`, `@khaby.lame` or `https://www.tiktok.com/@khaby.lame`     |
| `searchQueries`           | Keywords to find creators, e.g. `fitness coach`. Each creator found is scraped like a typed username     |
| `maxCreatorsPerSearch`    | How many creators to collect from each keyword (default 20, up to about 250)                             |
| `resultsPerPage`          | How many videos to collect from each profile (default 20; 0 = profile details only)                      |
| `profileSections`         | `videos`, `reposts`, `liked`, `playlists`, `stories`                                                     |
| `profileSort`             | `latest`, `popular` or `oldest` (for the Videos section)                                                 |
| `newerThan` / `olderThan` | Only videos from a date range. Accepts a date (`2026-06-01`) or a relative period (`7 days`, `3 months`) |
| `minViews` / `minLikes`   | Only videos above a popularity threshold                                                                 |
| `excludePinnedPosts`      | Leave out videos the creator pinned to the top of the profile                                            |
| `includeSubtitles`        | Add the subtitle text of each video                                                                      |
| `country`                 | Collect results as TikTok shows them in this country (default United States)                             |

#### Example input

```json
{
  "profiles": ["nike", "@zachking"],
  "searchQueries": ["fitness coach"],
  "maxCreatorsPerSearch": 20,
  "resultsPerPage": 30,
  "profileSort": "latest",
  "newerThan": "30 days",
  "excludePinnedPosts": true
}
```

### Output

Each run has two tables, both on the run's **Output** tab:

- **Profiles** (main table): one row per account. Every profile you add gets a row, also when you collect no videos.
- **Videos**: one row per video or photo post. The first column, **Profile**, shows which account each video was collected from, and every video also carries `profileUrl` and `profileId`. Match videos to profiles on `profileUsername` = `username` (or `profileId` = `id`).

The **Export** button on the run page exports the Profiles table. Export the videos from the **Output** or **Storage** tab, or through the API. Every field is included when you export or use the API.

#### Video fields

| Field                                                                               | Description                                                       |
| ----------------------------------------------------------------------------------- | ----------------------------------------------------------------- |
| `id`, `url`                                                                         | Video ID and link                                                 |
| `text`, `language`                                                                  | Caption and its language                                          |
| `createdAt`                                                                         | Upload time (ISO 8601)                                            |
| `viewCount`, `likeCount`, `commentCount`, `shareCount`, `saveCount`, `repostCount`  | Engagement                                                        |
| `durationSeconds`, `width`, `height`, `definition`, `format`                        | Video details                                                     |
| `coverUrl`, `originalCoverUrl`, `videoUrl`, `downloadUrl`, `images`                 | Cover, video file links, and all images of a photo post          |
| `isPinned`, `isPhotoPost`, `isAd`, `isSponsored`, `isAiGenerated`, `hasShopProduct` | Flags                                                             |
| `hashtags`, `hashtagDetails`, `mentions`, `mentionedUsers`, `effects`               | Hashtags (with IDs), mentioned users (with IDs) and effects used  |
| `location`                                                                          | The tagged place, when there is one                               |
| `music`                                                                             | Sound ID, title, author, album, original-sound flag, cover, links |
| `hasSubtitles`, `subtitleLinks`, `subtitles`                                        | Subtitle availability, links per language, and text when enabled  |
| `author`                                                                            | The account's full profile                                        |
| `profileUsername`, `profileUrl`, `profileId`                                        | The profile the video was collected from                          |
| `source`                                                                            | The input and profile section the video came from                 |

#### Profile fields

| Field                                                                                           | Description             |
| ----------------------------------------------------------------------------------------------- | ----------------------- |
| `id`, `username`, `name`, `url`, `secUid`                                                       | Account identity        |
| `bio`, `bioLink`, `avatarUrl`, `businessCategory`                                               | Profile details         |
| `followerCount`, `followingCount`, `likeCount`, `videoCount`, `friendCount`, `likedVideoCount` | Account statistics      |
| `verified`, `isPrivate`, `isBusinessAccount`, `isSeller`, `hasActiveStory`                      | Flags                   |
| `createdAt`                                                                                     | When the account joined |

#### Example output

A profile row:

```json
{
  "type": "profile",
  "id": "208464585232822272",
  "username": "nike",
  "name": "Nike",
  "url": "https://www.tiktok.com/@nike",
  "bio": "Just Do It.",
  "bioLink": "http://empli.fi/niketiktok",
  "verified": true,
  "isPrivate": false,
  "isBusinessAccount": true,
  "businessCategory": "Sports, Fitness & Outdoors",
  "followerCount": 9268557,
  "followingCount": 91,
  "likeCount": 49512161,
  "videoCount": 1091,
  "friendCount": 46,
  "createdAt": "2017-03-20T21:16:05Z"
}
```

A video row (author shortened):

```json
{
  "type": "video",
  "id": "7689162344139640077",
  "url": "https://www.tiktok.com/@nike/video/7689162344139640077",
  "text": "Speed never takes a day off. The Pegasus Plus 2 launches October 1.  #running #runnertok #pegasusplus2",
  "createdAt": "2026-09-24T17:57:11Z",
  "viewCount": 94500,
  "likeCount": 7349,
  "commentCount": 119,
  "shareCount": 367,
  "saveCount": 398,
  "durationSeconds": 39,
  "isPinned": false,
  "hashtags": ["running", "runnertok", "pegasusplus2"],
  "music": { "title": "Every Day Speed - Coach Prime", "album": "Every Day Speed" },
  "author": { "username": "nike", "followerCount": 9268557, "bioLink": "http://empli.fi/niketiktok" },
  "profileId": "208464585232822272",
  "profileUsername": "nike",
  "profileUrl": "https://www.tiktok.com/@nike",
  "source": { "type": "profile", "value": "nike", "section": "videos" }
}
```

### How To Use

1. Add usernames or profile links, or search keywords to find creators (or both).
2. Set **Maximum videos per profile** and choose **Latest**, **Popular** or **Oldest**.
3. Optionally add date or popularity filters.
4. Run the Actor and open the **Output** tab, export the results, or read them through the Apify API.

### Pricing

This Actor uses pay-per-event pricing, so you only pay for results you receive:

- **Video**: each video or photo post saved to your dataset
- **Profile**: each profile row, typed in or found by a search. An account found more than once is charged once
- **Actor start**: a small fee each time a run starts

Filters, video order, full author profiles, subtitles and country selection are **included at no extra cost**, and you are charged only for videos that pass your filters. Private accounts' videos, deleted videos and hidden sections are never charged. Current prices for each Apify plan are shown on the Actor's Pricing tab.

If a run reaches the maximum cost you set for it, it stops cleanly and keeps everything collected so far.

#### Free plan

On the Apify free plan every feature is available to try, with smaller amounts per run: up to **3** usernames or searches, **5** creators per search and **10** videos per profile (**5** per section when you select several sections). Upgrade to a paid Apify plan to remove these limits.

### Best Practices

- Start with a small **Maximum videos per profile** to check the output quickly.
- For monitoring, use **Latest** with **Only videos newer than** (for example `7 days`). The Actor jumps straight to that date range, so scheduled runs are fast and only collect new videos.
- Set **Maximum videos per profile** to **0** when you only need profile details.
- Keep **Scrape as if from** on **United States** unless you need local results.

### FAQ

#### How many videos can I get from one profile?

Usually up to about 1,000 of the most recent videos. TikTok itself stops showing older videos past that point, for every visitor. Use **Oldest** to start from the account's first videos instead.

#### Why did a profile return fewer videos than I asked for?

The account may have fewer videos, or fewer that match your date or popularity filters. The run log tells you when that happens.

#### Can I scrape private accounts?

Only their public profile details. Their videos are not public, so they are not collected or charged; the log names the private accounts.

#### What is the difference between the Videos and Profiles tables?

Each profile is stored once in **Profiles**. Every video row names its profile in `profileUsername`, `profileUrl` and `profileId`, and also carries the full profile in `author`, so each video row stands on its own.

#### How long does a run take?

Most runs finish in seconds: ten profiles with 30 videos each typically take under 20 seconds.

### Responsible Use

This Actor collects publicly available data only. Make sure your use complies with TikTok's terms, applicable laws and data-protection rules such as the GDPR, especially when you process personal data.

### Troubleshooting

- **A username was skipped**: check the spelling. TikTok usernames are at most 24 characters and use letters, numbers, dots and underscores.
- **A profile could not be found**: the account may have been renamed, banned or deleted.
- **No videos from a profile**: the account may be private, or nothing matched your filters.

If something still does not work, open an issue on the Actor's Issues tab with your run link and we will take a look.

# Actor input Schema

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

TikTok accounts to scrape, one per row.

Supported formats:

- `khaby.lame`
- `@khaby.lame`
- `https://www.tiktok.com/@khaby.lame`

Each profile is saved once in the **Profiles** table, and its videos link back to it through `profileId`.

## `searchQueries` (type: `array`):

Keywords to find TikTok creators with, one per row, e.g. `fitness coach` or `vegan recipes`.

Every creator found is scraped exactly like a username you typed: full profile row plus their videos, with the same filters and options below. Accounts found by several searches, or also typed above, are collected and charged once.

## `maxCreatorsPerSearch` (type: `integer`):

How many creators to collect from **each** search keyword. TikTok shows up to about 250 creators per keyword.

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

How many videos to collect from **each** profile.

Set to **0** to collect only the profile details (bio, followers, likes, video count) without any videos.

## `profileSections` (type: `array`):

Which parts of each profile to collect.

- **Videos** — the videos the account posted
- **Reposts** — videos the account reposted
- **Liked videos** — only when the account has made its likes public
- **Playlists** — every video in the account's playlists
- **Stories** — currently active stories

**Maximum videos per profile** applies to each section separately. Sections an account keeps private are skipped, noted in the log and not charged.

## `profileSort` (type: `string`):

Which videos of each profile to collect first, the same as the tabs on a TikTok profile. Applies to the **Videos** section.

- **Latest** — newest uploads first
- **Popular** — the account's most popular videos
- **Oldest** — starting from the account's very first video

## `newerThan` (type: `string`):

Skip videos posted before this date. Pick a date, or enter a relative period such as `7 days` or `3 months`.

With **Latest**, the Actor jumps straight to your date range instead of scrolling through older videos, so filtered runs finish fast. Ideal for daily or weekly monitoring.

## `olderThan` (type: `string`):

Skip videos posted after this date. Combine with **Only videos newer than** to collect a specific period.

## `minViews` (type: `integer`):

Only return videos with at least this many views. Leave empty to keep all videos.

## `minLikes` (type: `integer`):

Only return videos with at least this many likes. Leave empty to keep all videos.

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

Leave out the videos a creator pinned to the top of their profile, so results follow the real upload order.

## `includeSubtitles` (type: `boolean`):

Add the full subtitle text of each video in the `subtitles` field, in every language TikTok provides. Included at no extra cost.

Subtitle links (`subtitleLinks`) are always included. Only videos that have subtitles on TikTok, including auto-generated captions, return them.

## `country` (type: `string`):

Collect results as TikTok shows them in this country. Included at no extra cost.

The default, **United States**, gives the most complete results. If a profile cannot be loaded from a country, the Actor tries United States for it automatically.

## Actor input object example

```json
{
  "profiles": [
    "khaby.lame"
  ],
  "maxCreatorsPerSearch": 20,
  "resultsPerPage": 20,
  "profileSections": [
    "videos"
  ],
  "profileSort": "latest",
  "excludePinnedPosts": false,
  "includeSubtitles": false,
  "country": "US"
}
```

# Actor output Schema

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

No description

## `videos` (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": [
        "khaby.lame"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("calm_builder/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": ["khaby.lame"] }

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

```

## MCP server setup

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