# TikTok Scraper: Video, Profile & Hashtag Extractor (`scrapepilot/tiktok-scraper-video-profile-hashtag-extractor`) Actor

Fast enterprise-grade TikTok data scraper. Extract videos, profiles, hashtags, search queries, music, comments, metrics & watermark-free downloads without login.

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

## Pricing

from $1.20 / 1,000 scraped tiktok video or profiles

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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 Scraper

The **TikTok Scraper** is an enterprise-grade social media intelligence solution engineered to extract real-time public video data, author profiles, hashtags, user metrics, and watermark-free media from TikTok without login credentials, session cookies, or paid API keys. Whether you are conducting viral trend analysis, monitoring creator engagement, building competitive intelligence pipelines, or training AI datasets, TikTok Scraper delivers structured, high-fidelity TikTok data directly to your preferred format.

Designed for data scientists, growth marketers, influencer agencies, and brand managers, this **TikTok data extractor** gathers rich metadata including view counts, like counts, share counts, comment counts, author follower statistics, sound metadata, and downloadable media. With native support for keyword search, hashtag feeds, creator profile timelines, and direct video URLs, TikTok Scraper empowers high-throughput data extraction with zero maintenance overhead.

| Parameter | Specification |
| :--- | :--- |
| **Input** | Hashtags, TikTok Usernames, Keyword Queries, Direct Video URLs |
| **Supported URLs/Queries** | `tiktok.com/@user/video/id`, `tiktok.com/@user`, `#hashtag`, search keywords |
| **Charged** | Pay-per-event per extracted result and selected media download add-ons |
| **Output** | Full post metadata, author metrics, engagement statistics, audio info, direct media links |
| **Limits** | Unlimited on paid plans; 10 lifetime trial results for free accounts |
| **Delivery** | Apify Dataset (JSON, CSV, Excel, XML, HTML, RSS) & Key-Value Store |

***

### What does the TikTok Scraper do?

The **TikTok Scraper** automates the extraction of public content across the entire TikTok platform, transforming unstructured video feeds into standardized data records. By connecting directly to public data endpoints, it allows business intelligence teams and marketers to collect verified metrics at scale.

Common business applications and jobs powered by the **TikTok Scraper** include:

- **Influencer Discovery & Vetting:** Extract complete creator statistics such as `authorMeta.fans`, `authorMeta.heart`, `authorMeta.video`, and verified status to evaluate sponsorship opportunities and benchmark authentic creator reach.
- **Viral Trend & Sentiment Monitoring:** Track emerging hashtag challenges and sound usage using `musicMeta.musicName`, `hashtags`, and engagement velocity metrics (`playCount`, `diggCount`, `shareCount`) to capitalize on viral memes.
- **Competitor Intelligence & Content Auditing:** Scrape complete creator catalogs with `text`, `createTimeISO`, and `videoMeta.duration` to analyze competitors' posting schedules, video formats, and audience engagement rates.
- **E-Commerce & Social Commerce Intelligence:** Detect commercial and sponsored posts via `isAd`, `isSponsored`, and `hasTikTokShopProduct` to analyze TikTok Shop product placements and influencer brand partnerships.
- **Clean Media Archival & Dataset Building:** Acquire high-resolution thumbnails via `videoMeta.coverUrl` and direct watermark-free video streams using `videoMeta.downloadUrl` for offline machine learning training.

***

### How do you use the TikTok Scraper?

Extracting data with the **TikTok Scraper** requires four straightforward steps:

1. **Configure Your Targets:** In the Apify Console, enter one or more hashtags, creator handles, keyword search queries, or direct video URLs.
2. **Select Collection Limits & Add-ons:** Define your desired `resultsPerPage` or global `maxItems`, and toggle media download options if you wish to store raw files.
3. **Run the Scraper:** Click **Start** to initiate extraction. Live progress updates will appear in your console execution log.
4. **Export Your Structured Data:** Access the extracted records from the **Storage** tab and export them instantly in JSON, CSV, Excel, XML, or HTML format.

#### Sample Input JSON

```json
{
  "hashtags": ["bananas", "streetfood"],
  "profiles": ["scout2015"],
  "search": ["ootd ideas"],
  "startUrls": [
    { "url": "https://www.tiktok.com/@scout2015/video/6718335390845095173" }
  ],
  "resultsPerPage": 20,
  "maxItems": 50,
  "shouldDownloadVideos": false
}
```

#### Shortened Output Example

```json
{
  "id": "6718335390845095173",
  "text": "Scramble up ur name & I’ll try to guess it😍❤️ #foryoupage #PetsOfTikTok",
  "textLanguage": "en",
  "createTime": 1564243681,
  "createTimeISO": "2019-07-27T16:08:01.000Z",
  "locationCreated": "US",
  "diggCount": 35214,
  "shareCount": 1120,
  "playCount": 160474,
  "commentCount": 3845,
  "collectCount": 2109,
  "webVideoUrl": "https://www.tiktok.com/@scout2015/video/6718335390845095173",
  "authorMeta": {
    "id": "53279706535428096",
    "name": "scout2015",
    "nickName": "Scout, Suki & Stella",
    "profileUrl": "https://www.tiktok.com/@scout2015",
    "avatar": "https://p16-sign-va.tiktokcdn.com/...",
    "verified": false,
    "following": 32,
    "fans": 9000000,
    "heart": 108400000,
    "video": 3096
  },
  "musicMeta": {
    "musicId": "6689804660171082501",
    "musicName": "original sound - tiffanie.yunque",
    "musicAuthor": "tiff",
    "musicOriginal": true
  },
  "videoMeta": {
    "duration": 15,
    "definition": "hd",
    "format": "mp4",
    "coverUrl": "https://p16-sign-va.tiktokcdn.com/..."
  }
}
```

***

### When should you use the TikTok Scraper?

#### Use it for:

- Scraping public TikTok videos, captions, sounds, and full engagement statistics.
- Extracting creator profile metrics, follower counts, total hearts, and video counts.
- Performing keyword searches and gathering real-time search results from TikTok.
- Monitoring specific hashtag challenges and tracking community trends.
- Exporting clean TikTok data into business pipelines, spreadsheets, and databases.

#### Use something else for:

- Scraping private accounts or invite-only friend posts.
- Sending automated direct messages, likes, or comments (this tool is strictly read-only).
- Bypassing parental locks or restricted accounts.

***

### Is the TikTok Scraper free to try?

Yes. The **TikTok Scraper** provides a free evaluation tier. Users on an Apify free plan receive up to **10 free results across their lifetime** to inspect the data fidelity, test schema integration, and verify field mapping.

Once your 10 free results are reached, the run terminates gracefully and prompts you to upgrade to a paid Apify plan. Users on any paid Apify plan unlock **unlimited extraction throughput** with pay-per-event pricing.

***

### How is the TikTok Scraper configured?

The following configuration parameters are accepted by the **TikTok Scraper**:

| Field | Type | Required | Description | Default |
| :--- | :--- | :--- | :--- | :--- |
| `hashtags` | Array | No | List of TikTok hashtags to scrape (without `#` symbol). | `["bananas"]` |
| `profiles` | Array | No | List of TikTok usernames or profile URLs. | `[]` |
| `search` | Array | No | Keywords or search queries to extract videos and profiles for. | `[]` |
| `startUrls` | Array | No | Direct TikTok video URLs (`[{"url": "..."}]`). | `[]` |
| `resultsPerPage` | Number | No | Max items to collect per query, hashtag, or profile. | `20` |
| `maxItems` | Number | No | Global extraction cap across the entire run. | `50` |
| `profileSorting` | Select | No | Sort order for profile videos (`latest`, `popular`, `oldest`). | `"latest"` |
| `excludePinnedPosts` | Boolean| No | Skip pinned profile videos to gather strictly chronological items. | `false` |
| `profileScrapeSections` | Array | No | Profile tabs to inspect (`["videos"]`). | `["videos"]` |
| `searchSection` | String | No | Specialized search section target (leave empty for general). | `""` |
| `proxyCountryCode` | String | No | Target country code for localized trends (`US`, `GB`, etc.). | `"None"` |
| `scrapeRelatedVideos` | Boolean| No | Fetch recommended related items connected to scraped videos. | `false` |
| `shouldDownloadVideos` | Boolean| No | Download clean watermark-free video files to Key-Value Store. | `false` |
| `shouldDownloadCovers` | Boolean| No | Save original thumbnail cover images to Key-Value Store. | `false` |
| `shouldDownloadMusicCovers` | Boolean| No | Save sound cover artwork images to Key-Value Store. | `false` |
| `shouldDownloadAvatars` | Boolean| No | Save creator profile avatars to Key-Value Store. | `false` |

***

### How does the TikTok Scraper handle duplicates and limits?

The **TikTok Scraper** features an intelligent deduplication mechanism. If a video appears across multiple queries (for example, if a target post is found both under a hashtag and in a keyword search), the scraper processes and records the video ID only once per run. You are never billed twice for identical records.

Global limits set by `maxItems` are strictly enforced across all inputs combined. Once the target limit is reached, all concurrent tasks pause immediately and finalize dataset writes.

***

### Which fields does the TikTok Scraper return?

Every record in the dataset provides standard and premium fields:

| Field | Type | Description |
| :--- | :--- | :--- |
| `id` | String | Unique numerical identifier for the video post. |
| `text` | String | Full post caption, including hashtags and user mentions. |
| `textLanguage` | String | Detected language code of the post caption. |
| `createTime` | Number | Unix epoch timestamp of video publication. |
| `createTimeISO` | String | Standard ISO 8601 timestamp formatted in UTC. |
| `locationCreated` | String | Country or geographic region of post origin. |
| `diggCount` | Number | Real-time like count registered on the post. |
| `shareCount` | Number | Total times the video has been shared. |
| `playCount` | Number | Total views or plays recorded by TikTok. |
| `commentCount` | Number | Total comments submitted on the post. |
| `collectCount` | Number | Total times the video was bookmarked/favorited. |
| `webVideoUrl` | String | Canonical URL pointing to the live TikTok post. |
| `authorMeta` | Object | Author profile details (handle, nickname, avatar, verified, followers, likes, videos). |
| `musicMeta` | Object | Audio track metadata (title, artist, audio URL, original status). |
| `videoMeta` | Object | Video technical details (height, width, duration, format, cover, download URL). |
| `hashtags` | Array | Structured list of hashtag objects referenced in the caption. |

***

### How do you scrape TikTok profiles with the TikTok Scraper?

To extract posts and creator metrics from specific TikTok accounts, provide their usernames or profile URLs in the `profiles` field:

```json
{
  "profiles": [
    "scout2015",
    "https://www.tiktok.com/@charlidamelio"
  ],
  "resultsPerPage": 15
}
```

The scraper fetches the author's verified follower statistics, total like count, bio description, and recent video timeline.

***

### How do you search TikTok hashtags with the TikTok Scraper?

To track hashtag challenges and topic clusters, provide the hashtag names in the `hashtags` field without `#`:

```json
{
  "hashtags": [
    "bananas",
    "techgadgets",
    "fitnessmotivation"
  ],
  "resultsPerPage": 25
}
```

The scraper extracts trending videos associated with each tag, complete with sound metadata and engagement counts.

***

### How do you search TikTok by keyword with the TikTok Scraper?

To discover videos matching search terms, enter queries into the `search` list:

```json
{
  "search": [
    "best coffee machines 2026",
    "travel hacks europe"
  ],
  "maxItems": 30
}
```

The scraper returns matching posts sorted by relevance and engagement.

***

### How do you download TikTok videos with the TikTok Scraper?

To extract clean watermark-free video streams, enable the `shouldDownloadVideos` flag:

```json
{
  "startUrls": [
    { "url": "https://www.tiktok.com/@scout2015/video/6718335390845095173" }
  ],
  "shouldDownloadVideos": true
}
```

The scraper provides clean direct MP4 download links in `videoMeta.downloadUrl` and persists media records in your run storage.

***

### How does the TikTok Scraper report errors and empty results?

When a target cannot be extracted (e.g., a video was deleted, or an account is private), the **TikTok Scraper** outputs an error record to the dataset:

```json
{
  "url": "https://www.tiktok.com/@private_user",
  "input": "private_user",
  "error": "Profile is private or unavailable",
  "errorCode": "PROFILE_PRIVATE"
}
```

When a free plan user consumes their lifetime quota, an error record is registered:

```json
{
  "error": "free_limit_exhausted",
  "errorDescription": "You have used all 10 free results. Upgrade to a paid Apify plan to get unlimited data."
}
```

***

### How do you schedule or integrate the TikTok Scraper?

- **Apify Schedules:** Schedule recurring daily or hourly runs under your Actor's **Schedules** tab to automatically capture daily trends.
- **Apify API & SDKs:** Trigger runs programmatically via the Python SDK (`apify-client`) or JavaScript/Node.js SDK (`apify-client`).
- **AI Chatbots & Agents (MCP Server):** Connect TikTok Scraper to Claude, LibreChat, or custom agents via Apify's Model Context Protocol (MCP) server integration.
- **Workflow Automation:** Integrate results directly into Make, Zapier, n8n, Google Sheets, or custom webhooks.

***

### Which TikTok Scraper questions come up most often?

#### Does TikTok Scraper require a TikTok account or login?

No. TikTok Scraper operates entirely without logins, cookies, or account credentials.

#### Does the scraper extract watermark-free videos?

Yes. The output includes direct download links for clean watermark-free MP4 videos whenever available from public endpoints.

#### Which export formats are supported?

Data can be exported in JSON, CSV, Microsoft Excel (XLSX), XML, and HTML formats directly from the Apify Console or API.

#### Is scraping public TikTok data legal?

Yes. TikTok Scraper extracts strictly public information that creators have shared publicly on the web. It does not extract private messages, personal phone numbers, or private user credentials.

***

### Support

For bug reports, feature suggestions, or custom extraction assistance, please submit an issue through the Actor's **Issues** tab in the Apify Console.

# Actor input Schema

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

TikTok hashtags to search and scrape (e.g. \['bananas', 'viral', 'fyp']). Enter without # symbol.

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

TikTok usernames or profile URLs to scrape (e.g. \['scout2015', 'https://www.tiktok.com/@scout2015']).

## `search` (type: `array`):

Specific search keywords or search terms to query on TikTok (e.g. \['ootd', 'tech gadgets']).

## `startUrls` (type: `array`):

Direct TikTok video URLs or short links (e.g. https://www.tiktok.com/@scout2015/video/6718335390845095173).

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

Maximum number of results to fetch for each query, hashtag, or profile.

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

Global limit on total items extracted across the entire run. (Free users are capped at 10 lifetime results).

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

Sorting order for profile posts (charges Add-on: Search video sorting, and Popularity filter if popular).

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

Skip pinned videos on profiles to extract only chronological posts (charges Add-on: Date filter).

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

Sections to extract from user profiles (e.g. \['videos', 'followers', 'following']).

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

Target section for search queries (leave empty for general video search).

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

Maximum profiles to extract when searching by user query.

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

Country code for region-specific content (e.g. 'US', 'GB', 'DE', 'None'). Charges Add-on: Scrape as in country when set.

## `scrapeRelatedVideos` (type: `boolean`):

Fetch recommendation and related video items associated with extracted posts.

## `scrapeComments` (type: `boolean`):

Scrape public user comments for extracted videos (charges Add-on: Comment).

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

Download clean watermark-free video files to the Apify Key-Value Store (charges Add-on: video download).

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

Download original resolution thumbnail cover images to the Key-Value Store.

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

Download sound and audio album cover images to the Key-Value Store.

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

Download author profile pictures to the Key-Value Store.

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

Download individual high-res photos for photo mode carousel posts.

## `shouldDownloadSubtitles` (type: `boolean`):

Extract subtitle and caption transcripts (charges Add-on: Transcript).

## `shouldGenerateAIDescription` (type: `boolean`):

Generate timestamped AI descriptions of video content (charges Add-on: AI Description).

## `shouldGenerateAISummary` (type: `boolean`):

Generate concise AI bullet-point summaries of video content (charges Add-on: AI Summary).

## Actor input object example

```json
{
  "hashtags": [
    "bananas"
  ],
  "profiles": [],
  "search": [],
  "startUrls": [],
  "resultsPerPage": 20,
  "maxItems": 50,
  "profileSorting": "latest",
  "excludePinnedPosts": false,
  "profileScrapeSections": [
    "videos"
  ],
  "searchSection": "",
  "maxProfilesPerQuery": 10,
  "proxyCountryCode": "None",
  "scrapeRelatedVideos": false,
  "scrapeComments": false,
  "shouldDownloadVideos": false,
  "shouldDownloadCovers": false,
  "shouldDownloadMusicCovers": false,
  "shouldDownloadAvatars": false,
  "shouldDownloadSlideshowImages": false,
  "shouldDownloadSubtitles": false,
  "shouldGenerateAIDescription": false,
  "shouldGenerateAISummary": false
}
```

# Actor output Schema

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

Collection of extracted TikTok videos, creator profiles, metrics, and media links stored in the default dataset.

# 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 = {
    "hashtags": [
        "bananas"
    ],
    "profiles": [],
    "search": [],
    "startUrls": [],
    "profileScrapeSections": [
        "videos"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapepilot/tiktok-scraper-video-profile-hashtag-extractor").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 = {
    "hashtags": ["bananas"],
    "profiles": [],
    "search": [],
    "startUrls": [],
    "profileScrapeSections": ["videos"],
}

# Run the Actor and wait for it to finish
run = client.actor("scrapepilot/tiktok-scraper-video-profile-hashtag-extractor").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 '{
  "hashtags": [
    "bananas"
  ],
  "profiles": [],
  "search": [],
  "startUrls": [],
  "profileScrapeSections": [
    "videos"
  ]
}' |
apify call scrapepilot/tiktok-scraper-video-profile-hashtag-extractor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapepilot/tiktok-scraper-video-profile-hashtag-extractor"
        }
    }
}
```

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/HC53AORwseGrOxUEs/builds/ZXfqhswdSTb5VVvP1/openapi.json
