# TikTok Video Scraper - Views, Likes & Transcript (`sumitr_mardy/tiktok-video-scraper`) Actor

TikTok video scraper, $0.50 per 1,000 videos: views, likes, comments, shares, saves, caption, hashtags, sound, author stats and optional transcript for a list of video URLs or ids. One row per input; missing videos are free. No login.

- **URL**: https://apify.com/sumitr_mardy/tiktok-video-scraper.md
- **Developed by:** [Sumitr Mardy](https://apify.com/sumitr_mardy) (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 $0.35 / 1,000 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/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 - Views, Likes & Transcript

Paste TikTok video links and get one row per video: views, likes, comments, shares, saves, caption, hashtags, mentions, sound, duration, posting time, author stats and, if you want it, **the spoken transcript** from TikTok's own captions. Built for campaign reporting, creator vetting, content research and feeding videos to AI tools as text.

**$0.50 per 1,000 videos, transcript included at no extra cost.** Missing videos and invalid lines are returned free. No TikTok login, no cookies.

### What you get

| Field | Example |
|---|---|
| `views`, `likes`, `comments`, `shares`, `saves`, `reposts` | 6800000, 419300, 5970, 16600, 22163, 0 |
| `caption`, `hashtags`, `mentions` | "Made it, just in time! #comedy", \["learnfromkhaby","comedy"], \[] |
| `createTime`, `durationSeconds` | 2025-02-21T17:53:48Z, 20 |
| `transcript`, `transcriptLanguage` | "every country on this map is a country that...", eng-US |
| `subtitles` | every caption track: language, source (ASR = speech recognition, LC = creator, MT = machine translation), url |
| `authorUsername`, `authorFollowers`, `authorLikes`, `authorVideos`, `authorVerified` | khaby.lame, 162900000, ... |
| `musicTitle`, `musicAuthor`, `musicOriginal`, `musicId` | ominous, insensible, false |
| `width`, `height`, `coverUrl` | 576, 1024, cover image (TikTok links expire) |
| `location`, `language`, `isAd`, `isAiGenerated` | US, en, false, false |
| `status` | `ok`, `not_found`, `unavailable`, `failed`, `invalid_input`, `cost_limit_reached` |
| `input`, `id`, `url`, `scrapedAt` | the line you gave, video id, canonical link, lookup time |

One row per input line, fixed shape: numbers always numbers, lists always lists, text always text. `status` says why a row is empty.

### How to use it

Put one video per line. All of these work:

```
https://www.tiktok.com/@khaby.lame/video/7473932112865840406
https://vm.tiktok.com/ZMabc123/
7460972535832644907
```

Turn on **Include transcript** to get the spoken text. TikTok has captions for many talking videos but not for music-only clips; those return an empty `transcript`. The original-language track is preferred over machine translations.

Duplicates are looked up and billed once.

### Pricing

Pay per event, **$0.0005 per video found** ($0.50 per 1,000), cheaper on higher Apify plans. The transcript costs nothing extra. `not_found`, `unavailable`, `failed` and `invalid_input` rows are free. Apify adds its standard tiny start event per run.

### Status, measured

| | |
|---|---|
| Reference run, 20 lines | 18 videos found, 1 deleted video `not_found`, 1 invalid line, 4 s |
| Transcripts | 6 of 18 videos had caption tracks; all 6 returned text |
| Access | plain requests from Apify's servers, no proxy, no blocks in testing |

### Honest limits

- **You bring the links.** This Actor reads videos you list; it does not search hashtags, sounds or profiles for videos (TikTok does not expose those lists to signed-out visitors).
- **No comments text and no video download.** Counts are included; comment threads and video files need a logged-in session.
- `transcript` exists only when TikTok itself has captions for the video.
- Public data only. Use it in line with TikTok's terms and the privacy laws that apply to you.

### Use it from AI agents (MCP)

Hosted, with OAuth sign-in (Claude, Cursor, VS Code and others):

```json
{
    "mcpServers": {
        "tiktok-videos": {
            "url": "https://mcp.apify.com/?tools=sumitr_mardy/tiktok-video-scraper"
        }
    }
}
```

With an API token instead of OAuth:

```json
{
    "mcpServers": {
        "tiktok-videos": {
            "url": "https://mcp.apify.com/?tools=sumitr_mardy/tiktok-video-scraper",
            "headers": { "Authorization": "Bearer YOUR_APIFY_TOKEN" }
        }
    }
}
```

Local stdio:

```json
{
    "mcpServers": {
        "tiktok-videos": {
            "command": "npx",
            "args": ["-y", "@apify/actors-mcp-server", "--actors", "sumitr_mardy/tiktok-video-scraper"],
            "env": { "APIFY_TOKEN": "YOUR_APIFY_TOKEN" }
        }
    }
}
```

Tip for agents: set `includeSubtitles: true` to read what a video says without downloading it.

### Run it from code

Python:

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("sumitr_mardy/tiktok-video-scraper").call(run_input={
    "videoUrls": ["https://www.tiktok.com/@khaby.lame/video/7473932112865840406"],
    "includeSubtitles": True,
})
for v in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(v["authorUsername"], v["views"], v["likes"], v["transcript"][:80])
```

cURL (waits for the run and returns the rows):

```bash
curl -X POST "https://api.apify.com/v2/acts/sumitr_mardy~tiktok-video-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"videoUrls":["7473932112865840406"],"includeSubtitles":true}'
```

### FAQ

**Is the transcript AI-generated by you?** No. It is the caption track TikTok already has for the video (speech recognition or the creator's own captions), returned as plain text.

**Can I track a campaign over time?** Schedule the same list daily; every row carries `scrapedAt`.

**Why is a row `not_found`?** The video was deleted, made private or the id is wrong. Those rows are free.

# Actor input Schema

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

One per line: full video URLs (https://www.tiktok.com/@user/video/123...), short links (vm.tiktok.com/...) or bare video ids.

## `includeSubtitles` (type: `boolean`):

When TikTok has captions for a video, fetch them and return the spoken text in "transcript". Adds one request per captioned video; same price.

## Actor input object example

```json
{
  "videoUrls": [
    "https://www.tiktok.com/@khaby.lame/video/7473932112865840406",
    "https://www.tiktok.com/@duolingo/video/7478894462014442798",
    "7460972535832644907"
  ],
  "includeSubtitles": false
}
```

# 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/@khaby.lame/video/7473932112865840406",
        "https://www.tiktok.com/@duolingo/video/7478894462014442798",
        "7460972535832644907"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("sumitr_mardy/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/7473932112865840406",
        "https://www.tiktok.com/@duolingo/video/7478894462014442798",
        "7460972535832644907",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("sumitr_mardy/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/7473932112865840406",
    "https://www.tiktok.com/@duolingo/video/7478894462014442798",
    "7460972535832644907"
  ]
}' |
apify call sumitr_mardy/tiktok-video-scraper --silent --output-dataset

```

## MCP server setup

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