# TikTok Video Scraper - Search, Trending, Hashtag, Stats (`dexterous_material/opencalw-tiktok-scraper`) Actor

Extract TikTok video data by keyword search, hashtag, or trending feed: descriptions, views, likes, comments, shares, author profiles. HTTP-only engine for speed. Perfect for trend research, influencer analysis, and viral marketing.

- **URL**: https://apify.com/dexterous\_material/opencalw-tiktok-scraper.md
- **Developed by:** [Daniel Ramacher](https://apify.com/dexterous_material) (community)
- **Categories:** Social media, Marketing, Automation
- **Stats:** 2 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.00005 / actor start

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/platform/actors/running/actors-in-store#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

## Opencalw TikTok Video Scraper

[![Apify Actor](https://img.shields.io/badge/Apify-Actor-blue)](https://apify.com/opencalw/opencalw-tiktok-video-scraper)
![Version](https://img.shields.io/badge/version-1.0-green)
![Pricing](https://img.shields.io/badge/pricing-0.04%24%2Fvideo-orange)

Extract TikTok video data by keyword search, hashtag, or trending feed — descriptions, views, likes, comments, shares, author profiles, music info, and hashtags. HTTP-only engine using curl\_cffi — no browser needed.

***

### Features

- **Keyword Search** — Find videos by any search term
- **Hashtag Search** — Extract videos by hashtag
- **Trending Feed** — Get current trending videos
- **Engagement Stats** — Views, likes, comments, shares, favorites
- **Author Profiles** — Username, name, followers, following, total likes
- **Music Info** — Track title and artist
- **Hashtag Extraction** — Auto-extracted from descriptions
- **No API Key Needed** — Works without TikTok API
- **Free Tier Funnel** — First 5 videos free per run, then $0.04/video

### Use Cases

| Use Case | Description |
|----------|-------------|
| Trend Research | Find trending content by keyword |
| Influencer Analysis | Analyze creator engagement metrics |
| Viral Marketing | Identify viral content patterns |
| Competitor Tracking | Monitor competitor hashtag strategies |
| Music Discovery | Track trending music and sounds |

### Input

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `keywords` | array | ❌ | Search keywords |
| `hashtags` | array | ❌ | Hashtags to search (without #) |
| `includeTrending` | boolean | ❌ | Include trending feed |
| `maxVideosPerSource` | integer | ❌ | Max per source (default: 30, max: 100) |

### Output

| Field | Type | Description |
|-------|------|-------------|
| `videoId` | string | TikTok video ID |
| `url` | string | Full video URL |
| `description` | string | Video description |
| `hashtags` | array | Extracted hashtags |
| `thumbnailUrl` | string | Thumbnail URL |
| `duration` | integer | Duration in seconds |
| `viewCount` | integer | View count |
| `likeCount` | integer | Like count |
| `commentCount` | integer | Comment count |
| `shareCount` | integer | Share count |
| `favoriteCount` | integer | Favorite/bookmark count |
| `authorUniqueId` | string | Author username |
| `authorName` | string | Author display name |
| `authorFollowers` | integer | Author follower count |
| `source` | string | Data source (keyword/hashtag/trending) |

### Pricing

| Tier | Price | Description |
|------|-------|-------------|
| Free | $0.00 | First 5 videos per run |
| Paid | $0.04/video | Every video after free tier |

### Technical Details

#### Architecture

```
curl_cffi Session -> TikTok API (keyword/hashtag/trending)
    -> JSON Response -> Video Parsing
    -> Apify Dataset
```

#### Requirements

- Python 3.12+
- curl\_cffi

### Changelog

#### v1.0 (2026-05-15)

- Initial release
- Keyword search, hashtag search, trending feed
- Full engagement stats (views, likes, comments, shares, favorites)
- Author profile data
- Music info extraction
- Free tier funnel (5 videos free per run)
- $0.04/video PPE pricing

### Part of the Opencalw Ecosystem

Maximize your data extraction with our complete suite of scrapers:

| Actor | Price | Data |
|-------|-------|------|
| [Google Maps Scraper v3.0](https://apify.com/opencalw/opencalw-google-maps-reviews) | $0.08/place | 40+ fields, email, opening hours |
| [Instagram Hashtag Tracker v2.0](https://apify.com/opencalw/opencalw-instagram-hashtag-tracker) | $0.05/post | Posts by hashtag, likes, comments, engagement |
| [YouTube Video Scraper v1.0](https://apify.com/opencalw/opencalw-youtube-video-scraper) | $0.03/video | Search, metadata, views, likes, comments |

### License

AGPL-3.0

# Actor input Schema

## `keywords` (type: `array`):

Liste von Suchbegriffen (z.B. \['python', 'cooking', 'travel'])

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

Liste von Hashtags (ohne #, z.B. \['fyp', 'viral', 'trending'])

## `includeTrending` (type: `boolean`):

Aktuelle Trending Videos abrufen

## `maxVideosPerSource` (type: `integer`):

Maximale Videos pro Keyword/Hashtag

## Actor input object example

```json
{
  "keywords": [
    "python",
    "cooking",
    "travel"
  ],
  "hashtags": [],
  "includeTrending": false,
  "maxVideosPerSource": 30
}
```

# 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 = {
    "keywords": [
        "python",
        "cooking",
        "travel"
    ],
    "hashtags": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("dexterous_material/opencalw-tiktok-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 = {
    "keywords": [
        "python",
        "cooking",
        "travel",
    ],
    "hashtags": [],
}

# Run the Actor and wait for it to finish
run = client.actor("dexterous_material/opencalw-tiktok-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "keywords": [
    "python",
    "cooking",
    "travel"
  ],
  "hashtags": []
}' |
apify call dexterous_material/opencalw-tiktok-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=dexterous_material/opencalw-tiktok-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/f7bovc8OurJ7x1jVZ/builds/vgEYaEaSLYWB193fy/openapi.json
