# TikTok Video Scraper (`powerai/tiktok-video-scraper`) Actor

Extract TikTok video and creator metadata from video URLs. Get captions, engagement, music info, hashtags, and profile stats in structured JSON.

- **URL**: https://apify.com/powerai/tiktok-video-scraper.md
- **Developed by:** [PowerAI](https://apify.com/powerai) (community)
- **Categories:** Videos, Social media, Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.99 / 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/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

## TikTok Video Scraper

Extract public data from chosen TikTok videos. Paste one or more video URLs and get captions, engagement metrics, music metadata, hashtags, and basic creator profile stats.

### ✨ Key Features

- 🎬 Scrape metadata from **specific TikTok video URLs**
- ✍️ Caption / description text and hashtags
- 📊 Likes, views, comments, shares
- 🎵 Music / soundtrack metadata
- 👤 Creator handle, avatar, bio, and follower stats
- 🔗 Optional **related videos** for each input URL
- 📋 Structured JSON output, streamed while the run is in progress

### 💪 Why Choose This Actor?

- **Focused**: Video URL → metadata (no media download add-ons)
- **Flexible**: Multiple videos in one run, optional related videos
- **Structured**: Renamed, integration-friendly field names
- **Practical**: Useful for research, monitoring, and content analysis

### 🎯 Perfect For

- 📈 Trend and campaign analysis
- 🕵️ Competitor / creator monitoring
- 🧪 Social listening and research
- 🤖 Enrichment pipelines and automation

### 📝 Input Requirements

- `videoUrls` (required): TikTok video page URLs
- `includeRelated` (optional): Also scrape related videos
- `maxRelatedPerVideo` (optional): Max related videos per input URL (default `10`)

#### Input Example

```json
{
  "videoUrls": [
    "https://www.tiktok.com/@apifyoffice/video/7200360993149553925"
  ],
  "includeRelated": false
}
```

#### Output Example

```json
{
    "videoId": "7200360993149553925",
    "videoUrl": "https://www.tiktok.com/@apifyoffice/video/7200360993149553925",
    "caption": "opening your inbox has never been this exciting 💕 #prague #startup #valentinesday ",
    "likes": 155,
    "shares": 2,
    "views": 1495,
    "comments": 1,
    "collected": 1,
    "publishedAt": "2023-02-15T12:38:08.000Z",
    "isAd": false,
    "isPinned": false,
    "duration": 22,
    "coverUrl": "https://p16-common-sign.tiktokcdn-us.com/tos-maliva-p-0068/b025a70fd7fa42bba2e66aa6823b2870_1676464698~tplv-tiktokx-origin.image?dr=9636&x-expires=1785999600&x-signature=DoNSNbdl7ySVaP5Lga%2F9%2F7Sm2Fg%3D&t=4d5b0474&ps=13740610&shp=81f88b70&shcp=43f4a2f9&idc=useast5",
    "hashtags": [
      {
        "id": "14916",
        "name": "prague",
        "title": "",
        "cover": ""
      },
      {
        "name": "startup"
      },
      {
        "id": "10313",
        "name": "valentinesday",
        "title": "Post E-commerce Short Videos with #valentinesday during the Campaign Period and top ranked creators by total accumulated Short Video GMV will be eligible to receive up to $100 voucher rewards issued by TikTok Platform between 10th-14th February 2025.",
        "cover": "https://p19-common-sign.tiktokcdn-us.com/musically-maliva-obj/517be5a399cc5e55ab41e4c6aa103146.png~tplv-tiktokx-origin.image?dr=9627&x-expires=1785848400&x-signature=2micU8uENRDgyiKf%2BhcUzcOgSf0%3D&t=4d5b0474&ps=13740610&shp=81f88b70&shcp=9b759fb9&idc=useast5"
      }
    ],
    "mentions": [],
    "authorHandle": "apifyoffice",
    "authorId": "7095709566285480965",
    "authorNickname": "apifyoffice",
    "authorAvatarUrl": "https://p16-common-sign.tiktokcdn-us.com/tos-no1a-avt-0068c001-no/3161932a8654b0659fbbd1dca63c640a~tplv-tiktokx-cropcenter:720:720.jpeg?dr=9640&refresh_token=08291cb3&x-expires=1785999600&x-signature=aJOylngRpTcSQJQCDKZGqTCopic%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=81f88b70&idc=useast5",
    "authorBio": "Thousands of tools for your AI 🤖\n\ncheck out our open positions at ✨apify.it/jobs✨",
    "authorFollowers": 187,
    "authorFollowing": 5,
    "authorHearts": 2500,
    "authorVideos": 48,
    "authorVerified": false,
    "musicName": "original sound",
    "musicAuthor": "apifyoffice",
    "musicOriginal": true,
    "musicId": "7200360999089687301",
    "countryCode": "CZ",
    "scrapedAt": "2026-08-04T07:18:27.457Z"
  }
```

### 🚀 How to Use

1. Add one or more TikTok video URLs
2. Optionally enable related videos and set `maxRelatedPerVideo`
3. Click **Start**
4. Download results as JSON, CSV, Excel, or HTML

### 📌 Notes

- This actor returns **metadata only** (no video/cover/subtitle file downloads)
- Related videos increase the result count: roughly `videoUrls × (1 + maxRelatedPerVideo)`

# Actor input Schema

## `videoUrls` (type: `array`):

One or more TikTok video page URLs to scrape metadata from.

## `includeRelated` (type: `boolean`):

Also scrape related videos for each input URL. The number of related videos per input is controlled by Max related per video.

## `maxRelatedPerVideo` (type: `integer`):

Maximum related videos to scrape for each input URL when Include related videos is enabled.

## Actor input object example

```json
{
  "videoUrls": [
    "https://www.tiktok.com/@apifyoffice/video/7200360993149553925"
  ],
  "includeRelated": false,
  "maxRelatedPerVideo": 10
}
```

# 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 = {
    "videoUrls": [
        "https://www.tiktok.com/@apifyoffice/video/7200360993149553925"
    ],
    "includeRelated": false,
    "maxRelatedPerVideo": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("powerai/tiktok-video-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 = {
    "videoUrls": ["https://www.tiktok.com/@apifyoffice/video/7200360993149553925"],
    "includeRelated": False,
    "maxRelatedPerVideo": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("powerai/tiktok-video-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 '{
  "videoUrls": [
    "https://www.tiktok.com/@apifyoffice/video/7200360993149553925"
  ],
  "includeRelated": false,
  "maxRelatedPerVideo": 10
}' |
apify call powerai/tiktok-video-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/jr0JxJbSgS8LIbl69/builds/4hYv8KaBdt0ZqDCRQ/openapi.json
