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

Scrape any TikTok video or photo post from its link. Get views, likes, comments, shares, saves, caption, hashtags, sound, cover and video file link, plus the creator. Optional transcript of what is said (captions or AI) and related videos. Bulk links, no login.

- **URL**: https://apify.com/calm_builder/tiktok-video-scraper.md
- **Developed by:** [Coder](https://apify.com/calm_builder) (community)
- **Features:** Limited permissions
- **Stats:** 9 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.80 / 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 Scraper

Scrape any public TikTok video or photo post from its link as clean, structured data, fast.

Add video links, optionally turn on transcripts or related videos, and export the results as JSON, CSV or Excel, or pull them through the Apify API. Results appear in your dataset while the run is still going.

### What This Actor Does

- Collects one row per **video or photo post** link, including **short links** (`vm.tiktok.com`, `vt.tiktok.com`)
- Every row has **views, likes, comments, shares, saves**, caption, hashtags, mentions, sound, duration, language and post date
- **Files**: cover image, video file link and every image of a photo post
- **Creator** of each video: username, name, bio, avatar, verified badge and follower counts
- **Transcript** (optional): what is said in each linked video, from TikTok's captions or AI speech-to-text
- **Related videos** (optional): the videos TikTok recommends beside each link, as normal rows
- A link that cannot be collected still gets a row explaining why, **free of charge**

### Best For

- Tracking the stats of your own or your clients' videos
- Checking campaign and influencer posts
- Enriching a list of TikTok links with full data
- Getting what was said in campaign or competitor videos, as text
- Finding similar content through related videos
- Building datasets for dashboards, CRM, BI or AI workflows

### Input

| Field                | What it does                                                                                     |
| -------------------- | ------------------------------------------------------------------------------------------------ |
| `videoUrls`          | Video or photo post links, one per row, e.g. `https://www.tiktok.com/@khaby.lame/video/7623088450576633119` |
| `includeRelated`     | Also collect the videos TikTok shows as related to each link (default off)                       |
| `maxRelatedPerVideo` | How many related videos per link (default 10, maximum 50)                                        |
| `includeTranscript`  | Add a `transcript` object to each linked video (default off, add-on price)                       |
| `aiTranscription`    | Use AI speech-to-text for videos without TikTok captions (default on, priced per audio minute)   |
| `transcriptLanguage` | Preferred caption / spoken language, or `auto` (default)                                         |
| `includeSrt`         | Also add the transcript as SRT subtitles (default off)                                           |

#### Example input

```json
{
  "videoUrls": [
    "https://www.tiktok.com/@khaby.lame/video/7623088450576633119",
    "https://www.tiktok.com/@nike/photo/7658332028584168717"
  ],
  "includeRelated": true,
  "maxRelatedPerVideo": 10
}
```

### Output

One table with one row per video. `source.type` is `url` for your links and `related` for related videos; for related videos `source.value` is the video they were found beside. The table shows the most useful columns; every field is included when you export or use the API.

#### Fields

| Field                                                   | Description                                               |
| ------------------------------------------------------- | --------------------------------------------------------- |
| `id`, `url`, `text`, `createdAt`                        | Video ID, link, caption and post date                     |
| `viewCount`, `likeCount`, `commentCount`, `shareCount`, `saveCount`, `repostCount` | Engagement counts            |
| `isPhotoPost`, `images`                                 | Photo posts and their images                              |
| `durationSeconds`, `width`, `height`, `definition`, `format` | Video details                                        |
| `coverUrl`, `originalCoverUrl`, `videoUrl`, `downloadUrl` | Cover image and video file links                        |
| `hashtags`, `hashtagDetails`, `mentions`, `mentionedUsers` | Hashtags and mentioned accounts                        |
| `music`                                                 | Sound: title, author, album, original or not, links       |
| `author`                                                | The creator's profile and counts                          |
| `language`, `isAd`, `isSponsored`, `isAiGenerated`, `hasShopProduct`, `isPinned` | Flags                            |
| `hasSubtitles`, `subtitleLinks`                         | Subtitle files TikTok provides                            |
| `transcript`                                            | Only with **Include transcript**: `transcript` text, `hasSpeech`, `transcriptSource` (`tiktok_captions` or `ai`), `transcriptLanguage`, `wordCount`, timed `segments`, `audioMinutes` (AI only), optional `srt`; `error` when none could be made |
| `source`                                                | Your link (`url`) or the video a related video came from (`related`) |
| `error`, `errorCode`, `input`                           | Only on links that could not be collected (not charged)   |
| `scrapedAt`                                             | When the row was collected                                |

#### Example output

```json
{
  "type": "video",
  "id": "7680982718900981022",
  "url": "https://www.tiktok.com/@mrbeast/photo/7680982718900981022",
  "text": "gave a quarter back to my hood call me tom brady ",
  "createdAt": "2026-09-02T16:56:23Z",
  "isPhotoPost": true,
  "language": "en",
  "viewCount": 16400000,
  "likeCount": 2000000,
  "commentCount": 32900,
  "shareCount": 76700,
  "saveCount": 91126,
  "coverUrl": "https://p16-common-sign.tiktokcdn-us.com/...",
  "images": ["https://p16-common-sign.tiktokcdn-us.com/..."],
  "author": { "username": "mrbeast", "name": "MrBeast", "verified": true, "followerCount": 142900000 },
  "source": { "type": "url", "value": "https://www.tiktok.com/@mrbeast/video/7680982718900981022" },
  "scrapedAt": "2026-10-05T18:01:50Z"
}
```

A link that could not be collected:

```json
{
  "id": "7999999999999999999",
  "url": "https://www.tiktok.com/@khaby.lame/video/7999999999999999999",
  "input": "video 7999999999999999999",
  "error": "Video not available. It was removed, made private or restricted.",
  "errorCode": "unavailable"
}
```

### How To Use

1. Add one or more video links.
2. Optionally turn on **Include transcript**, or **Include related videos** and set how many per link.
3. Run the Actor and open the **Output** tab, export the results, or read them through the Apify API.

### Pricing

This Actor uses pay-per-event pricing, so you only pay for results you receive:

- **Video**: each video or photo post saved to your dataset, including related videos
- **Transcript** (optional add-on): each linked video that gets a transcript
- **AI transcript minute** (optional add-on): each started minute of audio transcribed by AI, only for videos without TikTok captions
- **Actor start**: a small fee each time a run starts

Rows for links that could not be collected are free. Videos with no speech (music only, photo posts) or no transcript are not charged for a transcript. Current prices for each Apify plan are shown on the Actor's Pricing tab.

If a run reaches the maximum cost you set for it, it stops cleanly and keeps everything collected so far.

#### Free plan

On the Apify free plan every feature is available to try, with smaller amounts per run: up to **10** links, **5** related videos per link and **10** minutes of AI transcription. Upgrade to a paid Apify plan to remove these limits.

### Best Practices

- To track a video's stats over time, schedule a run with the same links and compare the counts.
- Video file links expire after a while, so download files soon after the run if you need them.

### FAQ

#### How many related videos can I get?

TikTok usually shows 15 to 25 related videos per video, so higher numbers may return fewer. Each related video is saved once per run, even if it is related to several of your links.

#### Are related videos transcribed?

No, only your own links. For transcripts of many videos, including a profile's latest videos, use the TikTok Transcript Scraper.

#### Do I get the country a video was posted from?

No. TikTok's public web data does not include it, so `locationCreated` is usually empty.

#### Can I scrape all videos of a profile or hashtag?

Use the TikTok Scraper, TikTok Profile Scraper or TikTok Hashtag Scraper for that. This Actor reads the links you give it.

### Responsible Use

This Actor collects publicly available data only. Make sure your use complies with TikTok's terms, applicable laws and data-protection rules such as the GDPR, especially when you process personal data.

### Troubleshooting

- **A row has `error` filled in**: the video was removed, made private or restricted, or the link is wrong. Open it in a browser to check. These rows are not charged.
- **A link was skipped**: it opens a profile, hashtag or sound instead of a video.

If something still does not work, open an issue on the Actor's Issues tab with your run link and we will take a look.

# Actor input Schema

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

TikTok videos or photo posts, one per row.

Supported formats:

- `https://www.tiktok.com/@khaby.lame/video/7623088450576633119`
- `https://www.tiktok.com/@nike/photo/7658332028584168717`
- short links such as `https://vm.tiktok.com/ZMabc123/`

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

Also collect the videos TikTok shows as related to each link (the "You may like" list). Each related video is a normal row, charged as a video. `source.type` is `related` and `source.value` is the video it was found beside.

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

TikTok usually shows 15-25 related videos per video, so higher numbers may return fewer. Each related video is saved once per run, even if it is related to several of your links.

## `includeTranscript` (type: `boolean`):

Add what is said in each of your linked videos as a `transcript` object on its row: TikTok's captions when the video has them, else AI speech-to-text. A transcript is an add-on with its own price; AI transcripts are also charged per minute of audio. Videos without speech get a transcript object saying so, and are not charged for it. Related videos are not transcribed.

## `aiTranscription` (type: `boolean`):

Needs **Include transcript**. About half of TikTok videos have no captions. With this on, their speech is transcribed by AI, charged per minute of audio. With it off, only TikTok's captions are used.

## `transcriptLanguage` (type: `string`):

Needs **Include transcript**. **Detect automatically** works for most videos. Pick a language to get TikTok's captions in that language when the video has them (including TikTok's own translations), and to tell the AI which language is spoken, which helps with accents and videos that mix languages. Included at no extra cost.

## `includeSrt` (type: `boolean`):

Needs **Include transcript**. Also add the transcript as an SRT subtitle file (text field `srt`), ready for video editors and players. Included at no extra cost.

## Actor input object example

```json
{
  "videoUrls": [
    "https://www.tiktok.com/@khaby.lame/video/7623088450576633119"
  ],
  "includeRelated": false,
  "maxRelatedPerVideo": 10,
  "includeTranscript": false,
  "aiTranscription": true,
  "transcriptLanguage": "auto",
  "includeSrt": false
}
```

# Actor output Schema

## `videos` (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/@khaby.lame/video/7623088450576633119"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("calm_builder/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/@khaby.lame/video/7623088450576633119"] }

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,calm_builder/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/7uIPf21uriQhQVJmd/builds/QEshWeNjraXDAsgEo/openapi.json
