# TikTok Video Scraper — Metadata, Subtitles & Related Videos (`meka.im/tiktok-video-scraper`) Actor

Scrape TikTok video metadata, engagement stats, captions, hashtags, music, creator details, native subtitles, and related videos from any TikTok video URL, short link, or video ID. Supports drop-in Clockworks input/output parity.

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

## Pricing

from $0.36 / 1,000 scraped tiktok videos

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/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 Scraper

Extract structured metadata, engagement metrics, creator details, music metadata, native subtitle links, slideshow images, and optional related videos from public TikTok posts without running a headless browser or managing login cookies.

### Quick Start

1. Open the Actor input form in Apify Console.
2. Add one or more TikTok video URLs, photo/slideshow URLs, short links (`vm.tiktok.com`, `vt.tiktok.com`), or numeric video IDs in **`postURLs`**.
3. Optionally enable **`scrapeRelatedVideos`** and set **`resultsPerPage`** to collect recommended related videos for each submitted post.
4. Click **Start** and download your results as JSON, CSV, or Excel from the default dataset.

```json
{
  "postURLs": [
    "https://www.tiktok.com/@apifylife/video/7200360993149553925",
    "https://www.tiktok.com/@tiktok/video/7714103616696667423"
  ],
  "scrapeRelatedVideos": true,
  "resultsPerPage": 10
}
```

### Input

| Field | Type | Description |
|---|---|---|
| `postURLs` | `string[]` | TikTok video/photo URLs, short links (`vm.tiktok.com`, `vt.tiktok.com`), or bare numeric video IDs. Aliases: `urls`, `videoUrls`, `startUrls`, `postUrls`, `videoIds`, `ids`. |
| `scrapeRelatedVideos` | `boolean` | Enable related-video collection per submitted video. |
| `resultsPerPage` | `integer` | Maximum related videos per submitted post (`1`–`500`). Aliases: `maxRelatedVideos`, `maxItems`, `limit`, `maxResults`. |
| `maxItems` | `integer` | Optional global cap across all output rows (`1`–`1000`). |
| `downloadSubtitlesOptions` | `string` | Native caption metadata mode (`DOWNLOAD_SUBTITLES`, `NEVER_DOWNLOAD_SUBTITLES`). |

### Output

Each item in the dataset matches the standard TikTok video record structure:

- **Core video fields:** `id`, `text`, `textLanguage`, `createTime`, `createTimeISO`, `webVideoUrl`, `submittedVideoUrl`, `locationCreated`, `isAd`, `isSponsored`, `isPinned`, `isSlideshow`, `isMuted`, `isRelatedVideo`
- **Engagement metrics:** `playCount`, `diggCount`, `commentCount`, `shareCount`, `collectCount`, `repostCount` (using high-precision `statsV2` counters where available)
- **Author metadata (`authorMeta`):** `id`, `name`, `nickName`, `verified`, `signature`, `bioLink`, `avatar`, `fans`, `following`, `heart`, `video`, `digg`, `friends`, `commerceUserInfo`, `ttSeller`, `region`
- **Video & caption metadata (`videoMeta`):** `height`, `width`, `duration`, `coverUrl`, `originalCoverUrl`, `definition`, `format`, `downloadAddr`, `subtitleLinks` (from native `claInfo` / `subtitleInfos`)
- **Music & tags:** `musicMeta`, `hashtags`, `mentions`, `detailedMentions`, `effectStickers`, `locationMeta`, `slideshowImageLinks`

```json
{
  "id": "7200360993149553925",
  "text": "opening your inbox has never been this exciting 💕",
  "textLanguage": "en",
  "createTime": 1676457913,
  "createTimeISO": "2023-02-15T10:45:13.000Z",
  "webVideoUrl": "https://www.tiktok.com/@apifylife/video/7200360993149553925",
  "playCount": 1510,
  "diggCount": 78,
  "commentCount": 5,
  "shareCount": 3,
  "collectCount": 12,
  "authorMeta": {
    "name": "apifylife",
    "nickName": "Apify Life",
    "verified": false
  },
  "isRelatedVideo": false
}
```

### Pricing

This Actor uses pay-per-result pricing per video record delivered to the default dataset. You are charged only for successfully extracted video items.

### Limits & Coverage

- Only publicly accessible TikTok videos and slideshows are supported; private, deleted, or region-restricted posts are skipped and recorded in the run `OUTPUT` summary under `failedTargets`.
- Direct TikTok CDN links in `videoMeta.downloadAddr`, `videoMeta.coverUrl`, and `videoMeta.subtitleLinks` carry TikTok's built-in expiration timestamps.
- Related video pagination is bounded to public recommendations returned by TikTok for the seed video, up to `resultsPerPage` items per seed URL.

### API & Integrations

Run this Actor programmatically via the [Apify API](https://docs.apify.com/api/v2), connect it to schedules and webhooks in [Apify Console](https://apify.com), or invoke it from AI assistants via the [Apify MCP Server](https://docs.apify.com/platform/integrations/mcp).

### FAQ

**Does it support short links and bare video IDs?**\
Yes. You can pass full `/@user/video/:id` URLs, `/@user/photo/:id` slideshow URLs, `vm.tiktok.com` / `vt.tiktok.com` short links, or bare numeric video IDs.

**Why did a URL appear in `failedTargets`?**\
If a video was deleted, set to private, or restricted by TikTok, it cannot be fetched anonymously and is logged under `failedTargets` in the `OUTPUT` Key-Value Store record.

### Related Actors

- **[TikTok Hashtag Scraper](https://apify.com/meka.im/tiktok-hashtag-scraper)** — Discover TikTok videos, engagement counts, music, and creator profiles by hashtag without login or proxies.
- **[TikTok Comments Scraper](https://apify.com/meka.im/tiktok-comments-scraper)** — Extract public TikTok video comments, nested replies, and profile video lists with no login or cookies.

# Actor input Schema

## `postURLs` (type: `array`):

TikTok video/photo URLs (`/@user/video/:id`, `/@user/photo/:id`), short links (`vm.tiktok.com`, `vt.tiktok.com`), or bare numeric video IDs. Aliases: `urls`, `videoUrls`, `videoURLs`, `startUrls`, `postUrls`, `videoIds`, `ids`.

## `scrapeRelatedVideos` (type: `boolean`):

When enabled, also collect related videos recommended for each submitted TikTok URL, up to `resultsPerPage` related items per seed video.

## `resultsPerPage` (type: `integer`):

Maximum number of related videos to collect per submitted video when `scrapeRelatedVideos` is enabled (1–500). Aliases: `maxRelatedVideos`, `maxItems`, `limit`, `maxResults`.

## `maxItems` (type: `integer`):

Optional overall cap on total dataset rows returned across all submitted URLs and related videos (1–1000). Aliases: `limit`, `maxResults`, `maxVideos`.

## `downloadSubtitlesOptions` (type: `string`):

Control whether native TikTok subtitle/caption links (`subtitleInfos` / `claInfo`) are included in `videoMeta.subtitleLinks`. Leave unset or choose `DOWNLOAD_SUBTITLES` to include native caption tracks.

## `shouldDownloadVideos` (type: `boolean`):

Clockworks compatibility flag. TikTok direct video stream URLs are included in `videoMeta.downloadAddr` and `mediaUrls`.

## `shouldDownloadCovers` (type: `boolean`):

Clockworks compatibility flag. Video cover thumbnail URLs are included in `videoMeta.coverUrl` and `videoMeta.originalCoverUrl`.

## `shouldDownloadSlideshowImages` (type: `boolean`):

Clockworks compatibility flag. Slideshow photo URLs are included in `slideshowImageLinks` and `mediaUrls`.

## `videoKvStoreIdOrName` (type: `string`):

Optional Clockworks compatibility parameter accepted without error.

## Actor input object example

```json
{
  "postURLs": [
    "https://www.tiktok.com/@apifylife/video/7200360993149553925"
  ],
  "scrapeRelatedVideos": false,
  "resultsPerPage": 20,
  "downloadSubtitlesOptions": "DOWNLOAD_SUBTITLES",
  "shouldDownloadVideos": false,
  "shouldDownloadCovers": false,
  "shouldDownloadSlideshowImages": false
}
```

# Actor output Schema

## `items` (type: `string`):

No description

## `summary` (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/@apifylife/video/7200360993149553925"
    ],
    "scrapeRelatedVideos": false,
    "resultsPerPage": 20,
    "downloadSubtitlesOptions": "DOWNLOAD_SUBTITLES",
    "shouldDownloadVideos": false,
    "shouldDownloadCovers": false,
    "shouldDownloadSlideshowImages": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("meka.im/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/@apifylife/video/7200360993149553925"],
    "scrapeRelatedVideos": False,
    "resultsPerPage": 20,
    "downloadSubtitlesOptions": "DOWNLOAD_SUBTITLES",
    "shouldDownloadVideos": False,
    "shouldDownloadCovers": False,
    "shouldDownloadSlideshowImages": False,
}

# Run the Actor and wait for it to finish
run = client.actor("meka.im/tiktok-video-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 '{
  "postURLs": [
    "https://www.tiktok.com/@apifylife/video/7200360993149553925"
  ],
  "scrapeRelatedVideos": false,
  "resultsPerPage": 20,
  "downloadSubtitlesOptions": "DOWNLOAD_SUBTITLES",
  "shouldDownloadVideos": false,
  "shouldDownloadCovers": false,
  "shouldDownloadSlideshowImages": false
}' |
apify call meka.im/tiktok-video-scraper --silent --output-dataset

```

## MCP server setup

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