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

🚀 Scrape TikTok videos from URLs or IDs with 📊 engagement stats, 🎬 media URLs, 👤 author details, 📝 captions, #️⃣ hashtags, and more.

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

## Pricing

$1.50 / 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 🎬

**Paste any TikTok link — get the full post data back as clean, structured JSON.** Works with regular video URLs, photo posts, short share links (`vm.tiktok.com`, `vt.tiktok.com`, `tiktok.com/t/…`) and even bare post IDs. No login, no cookies, no browser extensions.

***

### ✨ What you can do with it

- 📊 **Track post performance** — monitor plays, likes, comments, shares and saves for any post over time.
- 🎯 **Analyze competitors & campaigns** — pull exact stats for the posts that matter to you.
- 🧲 **Vet influencers** — check real engagement on the posts they pitch you.
- 🔗 **Expand short links in bulk** — turn `vm.tiktok.com/…` share links into canonical URLs + full data.
- 🤖 **Feed your pipeline** — push results straight into Make, Zapier, Google Sheets, or your own app via the Apify API.

### 🎁 What you get for each post

Caption, post date, play / like / comment / share / save / repost counts, duration, cover image, direct media URLs, hashtags, mentions, music/sound details, photo-post images, and the author's profile with follower / like / video counts.

### 🚀 How to use it

1. Add one or more **post URLs** (any format — full URL, short link, or post ID).
2. Click **Start** — results stream into the dataset as they're scraped.
3. Export as **JSON, CSV or Excel**, or read them via the API.

#### Example input

```json
{
  "postUrls": [
    "https://www.tiktok.com/@tiktok/video/7231338487075638570",
    "https://vm.tiktok.com/ZMabc123/"
  ]
}
```

### 📦 Example output

```json
{
  "id": "7231338487075638570",
  "url": "https://www.tiktok.com/@tiktok/video/7231338487075638570",
  "description": "the caption #fyp",
  "createTimeISO": "2026-06-20T12:00:00.000Z",
  "playCount": 1200000,
  "diggCount": 98000,
  "commentCount": 1200,
  "shareCount": 800,
  "collectCount": 4300,
  "duration": 15,
  "cover": "https://p16-sign.tiktokcdn.com/...",
  "authorUniqueId": "tiktok",
  "authorNickname": "TikTok",
  "authorFollowerCount": 84000000,
  "hashtags": ["fyp"],
  "musicTitle": "original sound",
  "isPhotoPost": false
}
```

### 💰 Pricing

This actor uses **pay-per-event** pricing: you pay a small fee per post scraped. No subscriptions, no minimums — scrape 3 posts or 30,000 and pay only for what you get.

### ❓ FAQ

**Does it work with photo (carousel) posts?**
Yes — photo posts return the same record with `isPhotoPost: true` and the image URLs in `images`.

**Do I need a TikTok account or cookies?**
No. The actor only reads public pages.

**Why did a post come back empty?**
The post is deleted, private, age-restricted or region-blocked. Those can't be read publicly.

**Is this legal?**
The actor only collects publicly available data. You are responsible for how you use the data — see Apify's [terms](https://apify.com/terms-of-use) and consult local regulations for your use case.

# Actor input Schema

## `postUrls` (type: `array`):

One or more TikTok posts to scrape. Accepts full video/photo URLs (https://www.tiktok.com/@user/video/123…), short share links (vm.tiktok.com/…, vt.tiktok.com/…, tiktok.com/t/…), or bare post IDs.

## `region` (type: `string`):

Two-letter country code used for region-specific results (e.g. us, gb, de).

## `maxConcurrency` (type: `integer`):

How many posts to process in parallel.

## Actor input object example

```json
{
  "postUrls": [
    "https://www.tiktok.com/@tiktok/video/7231338487075638570"
  ],
  "region": "US",
  "maxConcurrency": 4
}
```

# Actor output Schema

## `dataset` (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 = {
    "postUrls": [
        "https://www.tiktok.com/@tiktok/video/7231338487075638570"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("apt_marble/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 = { "postUrls": ["https://www.tiktok.com/@tiktok/video/7231338487075638570"] }

# Run the Actor and wait for it to finish
run = client.actor("apt_marble/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 '{
  "postUrls": [
    "https://www.tiktok.com/@tiktok/video/7231338487075638570"
  ]
}' |
apify call apt_marble/tiktok-video-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

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