# TikTok Hashtag Scraper — Fast Video, Creator & Metrics (`subimpact/tiktok-hashtag-scraper`) Actor

High-speed TikTok hashtag scraper. Extract videos, views, likes, comments, shares, audio details, and creator profiles by hashtag at an ultra-competitive price.

- **URL**: https://apify.com/subimpact/tiktok-hashtag-scraper.md
- **Developed by:** [subimpact](https://apify.com/subimpact) (community)
- **Categories:** Social media, Marketing, AI
- **Stats:** 1 total users, 1 monthly users, 93.8% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 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 Hashtag Scraper 🚀

A high-performance, native TikTok hashtag scraper engineered for reliability, deep data fidelity, and ultra-competitive pricing.

> **1:1 Drop-in Replacement for `clockworks/tiktok-hashtag-scraper`** at **$0.0010/result** (33% cheaper than Clockworks' $0.0015/result).

***

### ⚡ Features & Advantages

- **Zero Upstream Dependencies:** Powered by native browser extraction with advanced anti-bot evasion. No proxy re-delegation or hidden fees.
- **Full Clockworks Schema Compatibility:** Drop-in replacement for existing workflows, pipelines, and integrations.
- **Pay-Per-Event Monetization:** Only pay for the videos you actually scrape.
- **Rich Data Extraction:**
  - Video metadata (ID, caption, duration, resolution, direct download/play URLs, covers)
  - Creator insights (uniqueId, nickname, avatar, follower counts, total likes, video count, verified status)
  - Engagement metrics (play count, likes, comments, shares, saves)
  - Music & sound details (track ID, audio title, author, original sound flag, audio duration)
  - Extracted hashtags & challenges

***

### 💰 Pricing: Clockworks Comparison

| Feature | SubImpact TikTok Scraper | Clockworks Scraper |
|---|---|---|
| **Price per Video** | **$0.0010** | $0.0015 |
| **Price per 1,000 Videos** | **$1.00** | $1.50 |
| **Price per 10,000 Videos** | **$10.00** | $15.00 |
| **Volume Tier Discounts** | Down to **$0.00025** | Variable |
| **Output Schema** | 1:1 Compatible | Original |

***

### 📥 Input Parameters

| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| `hashtags` | Array of Strings | **Yes** | `["malaysianfood"]` | List of TikTok hashtags to scrape (with or without `#`). |
| `resultsPerPage` | Integer | No | `20` | Max videos to extract per hashtag. |
| `dryRun` | Boolean | No | `false` | Run input validation without extracting live videos or triggering billing. |
| `proxyConfiguration` | Object | No | `{ "useApifyProxy": true }` | Apify Residential Proxy configuration. |

***

### 📤 Output Dataset Format

Every video pushed to the default dataset follows the standard schema:

```json
{
  "id": "7617067749516283159",
  "text": "Nasi lemak! My favourite Malaysian meal, always... #malaysianfood #recipe",
  "createTime": 1773486793,
  "createTimeISO": "2026-03-14T11:13:13.000Z",
  "webVideoUrl": "https://www.tiktok.com/@xiensscran/video/7617067749516283159",
  "videoUrl": "https://v16-webapp-prime.us.tiktok.com/video/...",
  "diggCount": 13400,
  "playCount": 190500,
  "commentCount": 67,
  "shareCount": 830,
  "collectCount": 2775,
  "authorMeta": {
    "id": "7066039379093128197",
    "name": "xiensscran",
    "nickName": "Xien",
    "verified": false,
    "avatar": "https://p16-va.tiktokcdn.com/...",
    "fans": 164200,
    "following": 408,
    "heart": 3100000,
    "video": 186
  },
  "musicMeta": {
    "musicId": "7617067762355112726",
    "musicName": "original sound",
    "musicAuthor": "Xien",
    "musicOriginal": true
  },
  "hashtags": [
    { "name": "malaysianfood", "title": "malaysianfood" },
    { "name": "recipe", "title": "recipe" }
  ]
}
```

***

### 🛠️ Local Development & Testing

```bash
npm install
npm test
npm start
```

# Actor input Schema

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

Add TikTok hashtags to collect information about videos, views, likes, shares, comments, and creators.

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

Maximum number of posts that will be scraped for each hashtag.

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

Tick to download TikTok video media files directly.

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

Tick to download video cover thumbnails.

## `dryRun` (type: `boolean`):

Validates hashtag parameters without extracting video data or triggering billing charges.

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

Select Apify Proxy to ensure high reliability and bypass anti-scraping blocks.

## Actor input object example

```json
{
  "hashtags": [
    "malaysianfood",
    "klfoodie"
  ],
  "resultsPerPage": 20,
  "shouldDownloadVideos": false,
  "shouldDownloadCovers": false,
  "dryRun": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (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 = {
    "hashtags": [
        "malaysianfood"
    ],
    "resultsPerPage": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("subimpact/tiktok-hashtag-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 = {
    "hashtags": ["malaysianfood"],
    "resultsPerPage": 20,
}

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,subimpact/tiktok-hashtag-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/cTE1o1xe4lp7xuaQO/builds/8AzwKJhvmjYmsyKiC/openapi.json
