# Tiktok Hashtag Scraper Video (`scraping_solutions/tiktok-hashtag-scraper-video`) Actor

Extract public TikTok videos by hashtag with captions, engagement metrics, creator details, music, and media URLs. Ideal for trend research, campaign monitoring, competitor analysis, and automated data workflows.

- **URL**: https://apify.com/scraping_solutions/tiktok-hashtag-scraper-video.md
- **Developed by:** [Scraping Solutions](https://apify.com/scraping_solutions) (community)
- **Categories:** Social media, Lead generation, Automation
- **Features:** Full permissions
- **Stats:** 41 total users, 0 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.40 / 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.
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

### 🚀 What is Tiktok Hashtag Scraper Video?

**Tiktok Hashtag Scraper Video** is a fast, flexible, and developer-friendly API designed to extract high-quality data from Tiktok posts based on hashtag searches. Whether you're tracking trends, analyzing brand engagement, or researching influencer activity, our API gives you structured and relevant data in seconds.

Unlike other tools, we focus on **precision and customization**: get only the fields you need, with no noise — perfect for data pipelines, dashboards, or direct integration into your apps.

***

### ⚙️ How It Works

1. Send a POST request with your desired hashtags and result limits.
2. Instantly get structured data in JSON format.
3. Integrate it seamlessly into your workflows or tools.

***

### 🧪 Input Example

```json
{
    "hashtags": [
        "bitcoin",
        "nobita"
    ],
    "resultsLimit": 30
}
```

***

### 📦 Output Example

```json
[
{
    "hashtag": "bitcoin",
    "link_post": "https://www.tiktok.com/@market.charts/video/7468424275175820566",
    "caption.text": "I asked A.I. to predict the Bitcoin price until 2030 📈 Bitcoin AI prediction 2025 🤖 #bitcoin #ai #crypto #cryptocurrency #finance #usa #prediction ",
    "caption.hashtags": [
      "bitcoin",
      "ai",
      "crypto",
      "cryptocurrency",
      "finance",
      "usa",
      "prediction"
    ],
    "code": "7468424275175820566",
    "diggCount": 12300,
    "shareCount": 1122,
    "commentCount": 951,
    "playCount": 751500,
    "collectCount": 2669,
    "createTime": 1738878038,
    "thumbnail_url": "https://p16-pu-sign-no.tiktokcdn-eu.com/tos-no1a-p-0037-no/osT67CViDY3pZBcAFTAsU9QAEBrIlIEsABPiL~tplv-dmt-logom:tos-no1a-i-0068-no/owYpPPhIBFsiCsU5ELFV6AZPiAcVlnAQBEPAB.image?lk3s=b59d6b55&x-expires=1746507600&x-signature=3P8fgfqEzra0GIjvwLlpB%2F%2BbPHk%3D&shp=b59d6b55&shcp=-",
    "link_user": "https://www.tiktok.com/@market.charts",
    "user.full_name": "Market Charts",
    "user.id": "market.charts",
    "user.is_private": false,
    "user.profile_pic_url": "https://p16-sign-useast2a.tiktokcdn.com/tos-useast2a-avt-0068-euttp/736fcc996352fd5a0d677e28b36e56e1~tplv-tiktokx-cropcenter:1080:1080.jpeg?dr=14579&refresh_token=a82cba09&x-expires=1746507600&x-signature=JF%2Fp0iE5OGHN4ZkQCRbxDsvxrsY%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=b59d6b55&idc=my",
    "user.signature": "Investing in Crypto, Stocks, etc.\n(No financial advice)\n\n👇👇Chart Tutorial👇👇"
  }
]
```

> 🔎 *Only the most relevant fields are returned by default — keeping your payloads clean and focused.*

***

### 🎯 Key Features

- 📌 Filtered fields: Only receive attributes you care about (e.g. URL, caption, likes).
- ⚡ Fast & lightweight: Optimized for speed and low latency.
- 🧩 Easy to integrate: Works with Python, JavaScript, or any language that supports HTTP.
- 💾 Multiple formats: Data available in JSON (CSV and Excel coming soon).
- 🔐 Privacy-respecting: Only scrapes publicly available content.

***

### 🛠️ Ideal For

- Social media analytics
- Brand monitoring
- Influencer research
- Trend discovery
- Marketing intelligence

***

### ✅ Why Choose This API?

- No complex setup — start scraping in seconds.
- Designed for automation and scale.
- Transparent pricing with generous free tier.
- Focused output for serious data use cases — no clutter, no fluff.

***

**Get started now** and turn hashtags into insights.

# Actor input Schema

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

Add a list of hashtags (without the # symbol). You can add them one per line.

## `resultsLimit` (type: `integer`):

number of pages for scraping, 1-100 are the allowed values

## Actor input object example

```json
{
  "hashtags": [
    "google"
  ],
  "resultsLimit": 20
}
```

# 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": [
        "google"
    ],
    "resultsLimit": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("scraping_solutions/tiktok-hashtag-scraper-video").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": ["google"],
    "resultsLimit": 20,
}

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

```

## MCP server setup

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

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/hZkFQsAVCeDKooAeK/builds/VtbcU9H23Xa8lzG0A/openapi.json
