# TikTok Video Detail Scraper (`romy/tiktok-video-detail-scraper`) Actor

Scrape TikTok video metadata — play count, likes, comments, shares, author info, hashtags, music, and tagged location. No login required.

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

## Pricing

from $2.34 / 1,000 video scrapeds

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

## TikTok Video Detail Scraper

Scrape TikTok video metadata — play count, likes, comments, shares, author info, hashtags, music, and tagged location. Bulk lookup by video URL or ID. No login required.

### What does TikTok Video Detail Scraper do?

This Actor fetches full metadata for TikTok videos given their URLs or IDs. Get view counts, engagement stats, author details, music used, hashtags, and location tags — all without needing a TikTok account.

### Use cases

- **Influencer analytics** — measure engagement (plays, likes, comments, shares) on specific videos
- **Content research** — analyze which hashtags and music tracks high-performing creators use
- **Competitor monitoring** — track specific viral videos and their performance over time
- **Campaign tracking** — monitor UGC videos in a branded campaign by URL
- **Market research** — export video metadata in bulk for trend analysis

### How to use

#### Step 1: Configure input

Provide a list of TikTok video URLs (full URL or just the video ID):

```json
{
    "videoUrls": [
        "https://www.tiktok.com/@charlidamelio/video/7390921527449716993",
        "7635919909079321857"
    ]
}
```

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `videoUrls` | string\[] | Yes | TikTok video URLs or video IDs |

#### Step 2: Run and download results

Click **Start** and download results as **JSON, CSV, or Excel** from the Output tab.

### Output

One object per video:

```json
{
  "id": "7635919909079321857",
  "desc": "KELEBIHAN MASUK FANBASE RESMI BEGINI YA ... #da7 #indosiar #milada7",
  "createTime": 1777876208,
  "videoUrl": "https://www.tiktok.com/@imcekrek/video/7635919909079321857",
  "stats": {
    "playCount": 292800,
    "diggCount": 5000,
    "commentCount": 120,
    "shareCount": 300,
    "collectCount": 50
  },
  "author": {
    "id": "6913704478...",
    "uniqueId": "imcekrek",
    "nickname": "imcekrek",
    "verified": false,
    "privateAccount": false,
    "signature": "bio text",
    "avatarThumb": "https://p16-sign.tiktokcdn.com/..."
  },
  "music": {
    "id": "7635919909...",
    "title": "suara asli - Asep Angga711",
    "authorName": "Asep Angga711",
    "duration": 42,
    "original": true
  },
  "hashtags": ["da7", "indosiar", "milada7"],
  "poi": {
    "id": "22535796482654860",
    "name": "Burger King - Salemba",
    "address": "Jl. Salemba Raya",
    "city": "Jakarta",
    "country": "ID"
  }
}
```

`poi` is `null` if the video was not tagged at a specific location.

### Pricing

| Event | Price |
|-------|-------|
| Actor start | $0.05 |
| Per video scraped | $0.005 |

Scraping 100 videos costs approximately **$0.55**.

### FAQ

**Does this require login or cookies?**
No. Uses TikTok's public video pages. No authentication needed.

**What URL formats are accepted?**
Full URLs (`https://www.tiktok.com/@user/video/ID`), short paths (`https://www.tiktok.com/video/ID`), or bare video IDs.

**What if a video is private or deleted?**
Private or deleted videos return no data — they are silently skipped and logged as warnings.

**Can I track a video's performance over time?**
Yes — schedule this Actor to run on the same video URLs daily/weekly and compare `playCount`, `diggCount`, etc. across runs.

**Is this legal?**
This Actor accesses publicly available video pages. Use responsibly and in accordance with TikTok's Terms of Service.

# Actor input Schema

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

List of TikTok video URLs. Accepts full URLs or video IDs. E.g. \["https://www.tiktok.com/@user/video/7635919909079321857", "7635919909079321857"].

## Actor input object example

```json
{
  "videoUrls": [
    "https://www.tiktok.com/@charlidamelio/video/7390921527449716993"
  ]
}
```

# 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 = {
    "videoUrls": [
        "https://www.tiktok.com/@charlidamelio/video/7390921527449716993"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("romy/tiktok-video-detail-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/@charlidamelio/video/7390921527449716993"] }

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,romy/tiktok-video-detail-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/Ty1aLQ27ZkLgNOd0c/builds/k0Ro9BsNDXet9a814/openapi.json
