# TikTok Scraper & Downloader Pro (`centered_quaff/tiktok-scraper-pro`) Actor

Scrape TikTok at scale: full profiles with videos and stats, hashtag feeds, single-post details, comments and no-watermark video URLs. Filter by date and likes, download media, export JSON/CSV. Output matches clockworks/tiktok-scraper format, so your existing integrations keep working.

- **URL**: https://apify.com/centered\_quaff/tiktok-scraper-pro.md
- **Developed by:** [Emirhan A](https://apify.com/centered_quaff) (community)
- **Stats:** 1 total users, 1 monthly users, 31.6% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.50 / 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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## TikTok Scraper & Downloader Pro

Fast TikTok scraper for **profiles, hashtags, posts, comments and no-watermark videos** — with industry-standard output format.

### What can it do?

- **👤 Profiles** — full user info (followers, hearts, bio, avatar) + their videos with stats
- **#️⃣ Hashtags** — scrape videos for any hashtag feed
- **🎬 Post URLs** — full details of specific videos: likes, comments, shares, collects, music + **no-watermark MP4 URL**
- **💬 Comments** — extract comments for every scraped video
- **🔍 Search** (experimental) — keyword video search. See [Search notes](#-search-experimental) below
- **⬇️ Downloads** — save videos (no-watermark), covers, avatars, slideshow images and music covers to the Key-Value store
- **🎛️ Filters** — sort profile videos (latest/oldest/popular), date ranges, min/max likes, exclude pinned posts
- **📤 Industry-standard output format** — output fields (`authorMeta`, `musicMeta`, `videoMeta`, `diggCount`, `playCount`, ...) follow the de-facto standard TikTok dataset format, so most existing integrations and scripts keep working without changes

### Input

| Field | Description |
|---|---|
| `profiles` | TikTok usernames (without @) or profile URLs |
| `hashtags` | Hashtag names, e.g. `fyp` |
| `searchQueries` | Keyword search queries |
| `postURLs` | Video URLs or `vm.tiktok.com` short links |
| `musicURLs` | Music IDs or music page URLs |
| `resultsPerPage` | Videos per profile/hashtag/query (default 30, max 1000) |
| `profileSorting` | `latest` / `oldest` / `popular` |
| `excludePinnedPosts` | Skip pinned posts |
| `oldestPostDateUnified` / `newestPostDate` | Only keep videos in this date range |
| `mostDiggs` / `leastDiggs` | Max/min like filters |
| `commentsPerPost` | Extract this many comments per video |
| `shouldDownloadVideos` | Save no-watermark MP4s to Key-Value store |
| `shouldDownloadCovers` / `shouldDownloadAvatars` / `shouldDownloadSlideshowImages` / `shouldDownloadMusicCovers` | Save media to Key-Value store |
| `proxyConfiguration` | Apify Proxy settings |
| `msToken` | Optional real msToken cookie (see below) |

#### Example input

```json
{
  "profiles": ["khaby.lame"],
  "hashtags": ["fyp"],
  "postURLs": ["https://www.tiktok.com/@user/video/123456"],
  "resultsPerPage": 30,
  "commentsPerPost": 10,
  "shouldDownloadVideos": false
}
```

### Output

Dataset contains **video items** (standard format), one **user item** per profile and **comment items**:

```json
{
  "type": "video",
  "id": "7681719358225239326",
  "text": "Well… that didn't go as planned #comedy",
  "createTimeISO": "2026-09-04T12:00:00.000Z",
  "authorMeta": {
    "id": "127905465618821121",
    "name": "khaby.lame",
    "profileUrl": "https://www.tiktok.com/@khaby.lame",
    "nickName": "Khabane lame",
    "verified": true,
    "avatar": "https://..."
  },
  "musicMeta": { "musicName": "original sound", "musicId": "123" },
  "webVideoUrl": "https://www.tiktok.com/@khaby.lame/video/7681719358225239326",
  "videoMeta": { "duration": 48, "coverUrl": "https://...", "format": "mp4" },
  "diggCount": 307006,
  "shareCount": 5208,
  "playCount": 2210497,
  "collectCount": 1234,
  "commentCount": 6972,
  "noWatermarkUrl": "https://...",
  "hashtags": [{ "id": "", "name": "comedy" }],
  "isPinned": false,
  "isSlideshow": false
}
```

Failed inputs push an **error item** (`input`, `error`, `errorCode`) instead of crashing the run, so partial results are always kept.

### 🔍 Search (experimental)

Search scraping TikTok's web app is the hardest surface — TikTok aggressively blocks it. This actor ships a multi-engine pipeline (three browser engines + fallback). **For reliable results, provide a real `msToken`:**

1. Open tiktok.com in your browser
2. DevTools → Application → Cookies → copy the `msToken` value
3. Paste it into the actor input

Without `msToken`, search often returns a `SEARCH_QUERY_NOT_FOUND` error item. Other modes (profiles, hashtags, posts, comments) work without it.

### Proxy

For best success rates (especially comments and large runs), use Apify **Residential** proxy:

```json
"proxyConfiguration": { "useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"] }
```

### Ethics & privacy

This scraper only extracts **publicly available** data and does not collect private user data (emails, gender, location). Scraped content may contain personal data — use it in accordance with GDPR and TikTok's terms of service.

### Limitations

- Followers/following lists, stories, reposts, subtitles and AI descriptions are not supported yet
- Profile results are capped by TikTok's public pagination
- `musicURLs` may return a `MUSIC_NOT_FOUND` error item when the source feed is blocked

# Actor input Schema

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

TikTok usernames (without @) or profile URLs to scrape, e.g. khaby.lame

## `hashtags` (type: `array`):

Hashtags to scrape, e.g. fyp

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

Keyword search queries. Returns videos and profiles matching the query

## `searchSection` (type: `string`):

Apply search to Top results, only videos, or only profiles

## `maxProfilesPerQuery` (type: `integer`):

Maximum number of profiles to scrape per search query

## `postURLs` (type: `array`):

TikTok video URLs or vm.tiktok.com short links

## `musicURLs` (type: `array`):

TikTok music IDs or music page URLs to scrape videos for

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

Number of videos to scrape per profile/hashtag/query/music

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

Sections of the profile to scrape (currently: videos)

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

Order of profile videos: latest, oldest or popular

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

Skip pinned posts from profiles and hashtags

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

Only videos uploaded on or after this date (ISO, e.g. 2026-01-01)

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

Only videos uploaded on or before this date (ISO, e.g. 2026-09-01)

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

Skip videos with more likes than this number. 0 = disabled

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

Skip videos with fewer likes than this number. 0 = disabled

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

Extract this many comments for each scraped video

## `proxyCountryCode` (type: `string`):

Country for Apify Proxy geo-targeting, e.g. US, DE, TR. Use None for automatic

## `msToken` (type: `string`):

Optional: paste a real msToken cookie from your browser (tiktok.com -> DevTools -> Application -> Cookies -> msToken). Improves search reliability.

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

Apify Proxy settings. Residential proxy is recommended for comments, search and large runs

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

Save no-watermark MP4 files to the Key-Value store

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

Save video cover images to the Key-Value store

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

Save profile avatars to the Key-Value store

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

Save photo-mode slideshow images to the Key-Value store

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

Save sound cover images to the Key-Value store

## Actor input object example

```json
{
  "searchSection": "",
  "maxProfilesPerQuery": 10,
  "resultsPerPage": 30,
  "profileScrapeSections": [
    "videos"
  ],
  "profileSorting": "latest",
  "excludePinnedPosts": false,
  "commentsPerPost": 0,
  "shouldDownloadVideos": false,
  "shouldDownloadCovers": false,
  "shouldDownloadAvatars": false,
  "shouldDownloadSlideshowImages": false,
  "shouldDownloadMusicCovers": false
}
```

# Actor output Schema

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

Scraped videos, profiles, comments and error items in the default dataset.

## `mediaFiles` (type: `string`):

Downloaded videos, covers, avatars and other media in the key-value store (only when download options are enabled).

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("centered_quaff/tiktok-scraper-pro").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("centered_quaff/tiktok-scraper-pro").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 '{}' |
apify call centered_quaff/tiktok-scraper-pro --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,centered_quaff/tiktok-scraper-pro"
        }
    }
}
```

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/JTbfVj5Ab9fcXlkCk/builds/fEY9yo8XYvhZ1xMsm/openapi.json
