# TikTok Transcript Scraper: captions, stats, hashtags (`leadharbor/tiktok-transcript-scraper`) Actor

TikTok video transcripts with timestamps plus plays, likes, comments, shares, saves and hashtags, from video links or a creator's videos. It is TikTok's own caption track: by default videos without captions are skipped and not charged. Plain HTTP, no login. Not affiliated with TikTok.

- **URL**: https://apify.com/leadharbor/tiktok-transcript-scraper.md
- **Developed by:** [Mohammed Samaan](https://apify.com/leadharbor) (community)
- **Categories:** Social media, AI, 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.80 / 1,000 video row delivereds

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

Give this Actor TikTok video links or creator handles. For every video you get one row with the **transcript** (full text and timed lines, taken from TikTok's own caption file) and the video's **numbers**: plays, likes, comments, shares, saves, author, followers, music, hashtags, length, language and, for single video links, country.

It reads public TikTok pages with plain HTTP. No login, no cookies, no browser, no speech-to-text service. Not affiliated with TikTok.

![Sample output: TikTok video stats and transcripts from one real run](https://api.apify.com/v2/key-value-stores/ETfrhQo14MUgBgWeP/records/tt-sample-output.png?signature=1m9LZlxxwCfbEwARII053)

### What you get

- **Transcript with timestamps.** `transcript` is the whole text. `segments` are the caption lines with `start` and `end` in seconds.
- **Stats in the same row.** `plays`, `likes`, `comments`, `shares`, `saves`, `reposts` and a computed `engagementRatePct`.
- **Who and what.** Creator handle, display name, verified flag, follower count, description, hashtags, mentions, sound title and author, length, post time, country (only for videos read from a single video link; empty for videos read from a profile, because TikTok's creator video list does not carry it), ad flag, AI-generated flag, topic labels.
- **Language choice.** Leave it empty for the spoken language, or ask for a code such as `en`. `transcriptSource` tells you whether the text was written by the creator, made by TikTok's speech recognition, or machine translated by TikTok.
- **Profiles.** Give a handle and the Actor reads that creator's videos, up to the number you set (1 to 1,000 per profile).
- **Every row says what happened.** Every video row has `transcriptStatus`. Missing, private and blocked videos come back as free rows with `rowType: "error"` and a plain message.

![What you get and the limits of the TikTok transcript scraper](https://api.apify.com/v2/key-value-stores/ETfrhQo14MUgBgWeP/records/tt-what-you-get.png?signature=1e9TtwwQIFox4flIk1R2h)

### Not every TikTok video has a transcript

The transcript comes from the caption track TikTok itself publishes for a video. Videos with no speech, with music only, or where TikTok made no captions have none. In one real run on the Apify platform on 22 November 2026 (run fO89NxoZiPRhaHDal), 71 of 105 recent videos (68%) had a transcript. That was a single run on one day, not a guarantee; your share will differ with the kind of videos you read.

The Actor does not listen to the audio and does not run speech-to-text.

**By default a video without captions is skipped and you are not charged for it.** **Only videos with captions** is on by default: such a video gets a free row with `rowType: "error"` and `errorKind: "no_captions"` that says why. If you also want the stats of videos without captions, turn **Only videos with captions** off: those videos are then delivered with all their stats and `transcriptStatus: "no_captions"`, and charged like any other row.

### Example

Input:

```json
{
  "videoUrls": [
    "https://www.tiktok.com/@tiktok/video/7710348513128828191"
  ],
  "profiles": ["@khaby.lame"],
  "maxVideosPerProfile": 5,
  "language": "",
  "captionsOnly": true,
  "includeSegments": true
}
```

One output row (real values read on 22 November 2026 from a single video link, which is why `country` is filled; transcript shortened here):

```json
{
  "rowType": "video",
  "videoId": "7710348513128828191",
  "url": "https://www.tiktok.com/@tiktok/video/7710348513128828191",
  "authorUsername": "tiktok",
  "authorName": "TikTok",
  "authorVerified": true,
  "authorFollowers": 97000000,
  "description": "one TikTok DM sent @Chef Moe to the grocery store with $5 and gave his cooking a whole new purpose. 🍽️❤️",
  "createdAt": "2026-11-20T20:10:17.000Z",
  "durationSec": 95,
  "plays": 198400,
  "likes": 3207,
  "comments": 2093,
  "shares": 309,
  "saves": 299,
  "reposts": 0,
  "engagementRatePct": 2.98,
  "hashtags": [],
  "mentions": ["chat_n_chops"],
  "musicTitle": "original sound",
  "musicAuthor": "TikTok",
  "musicIsOriginal": true,
  "textLanguage": "en",
  "country": "US",
  "isAd": false,
  "isAiGenerated": false,
  "categories": ["Cooking", "Food & Drink", "Lifestyle"],
  "captionLanguages": ["en"],
  "transcriptStatus": "ok",
  "transcriptLanguage": "en",
  "transcriptSource": "auto",
  "transcript": "I'm Chef Moe, and the number one question I'm asked is, how did you start your ...",
  "segmentCount": 38,
  "segments": [
    { "start": 0.1, "end": 2.94, "text": "I'm Chef Moe, and the number one question I'm asked is," },
    { "start": 2.941, "end": 4.181, "text": "how did you start your" }
  ],
  "source": "video",
  "scrapedAt": "2026-11-22T08:00:00.000Z"
}
```

### Input

| Field | What it does |
|---|---|
| `videoUrls` | Video links (`tiktok.com/@name/video/<id>`) or bare video ids. |
| `profiles` | Handles (`@name` or `name`) or profile links. The Actor reads the creator's videos in the order TikTok's public video list returns them. |
| `maxVideosPerProfile` | 1 to 1,000, default 10. One run reads at most 5,000 videos in total. |
| `language` | Empty = the video's own language. Or a code such as `en`, `es`, `pt-BR`. |
| `fallbackToOriginal` | On (default): if your language is not offered, you get the video's own caption. Off: the row has `transcriptStatus: "language_unavailable"`. |
| `captionsOnly` | On (default): videos without a transcript are skipped and not charged. Off: they are delivered with their stats and charged. |
| `includeSegments` | Off makes rows smaller: only the full text is returned. Default on. |

Give `videoUrls`, `profiles`, or both. The same video twice is read once.

### Transcript status values

| `transcriptStatus` | Meaning | Charged |
|---|---|---|
| `ok` | Transcript included | yes |
| `no_captions` | TikTok has no caption track for this video. Stats are included | only with Only videos with captions off; with it on (default) the video is skipped and free |
| `language_unavailable` | No caption in your language and fallback is off. Stats are included | only with Only videos with captions off; with it on (default) the video is skipped and free |
| `fetch_failed` | TikTok listed a caption but the file could not be read after 3 tries. Stats are included | **no** |

### Error rows (always free)

| `errorKind` | Meaning |
|---|---|
| `invalid_input` | The entry is not a TikTok video link, id, handle or profile link (photo posts included) |
| `not_found` | TikTok says the video does not exist |
| `private` | The video is private |
| `profile_not_found`, `profile_private`, `profile_unavailable` | The profile is missing, private, or TikTok did not return it |
| `no_videos` | The profile lists no public videos |
| `blocked` | TikTok refused this address: HTTP 429, its "Please wait" check page, a redirect to its login page, or HTTP 401 or 403. The first three are tried up to 3 times; a 401 or 403 is counted at once. The Actor never solves the check |
| `request_failed` | Network error, server error, an unexpected page or an unexpected redirect; retryable ones are tried 3 times |
| `unavailable` | TikTok returned a status the Actor does not know (the message carries the code), or returned the video without its counts |
| `no_captions`, `language_unavailable`, `fetch_failed` | With **Only videos with captions** on (default): the video had no usable transcript and was skipped |

### Pricing

Pay per event, one event: **`video`**, charged for each video row delivered.

| Apify plan | Price per video | Per 1,000 videos |
|---|---|---|
| Free | $0.0015 | $1.50 |
| Starter (Bronze) | $0.0010 | $1.00 |
| Scale (Silver) | $0.0009 | $0.90 |
| Business and higher (Gold, Platinum, Diamond) | $0.0008 | $0.80 |

The transcript is included in that price. There is no start fee and no extra charge per minute. With the default setting (**Only videos with captions** on) you are charged only for videos that come with a transcript. If you turn that option off, a video without captions is delivered with its stats and charged the same. Error rows, skipped videos, duplicates and `fetch_failed` rows cost nothing. The live price is always the one on the Pricing tab. Use the run option **Max total charge** to cap a run; the Actor stops when the cap is reached.

### Use it from an AI agent or MCP

- **Apify MCP server:** add `leadharbor/tiktok-transcript-scraper` as a tool, or let the agent find it with `search-actors` and run it with `call-actor`. Minimal input: `{"videoUrls": ["<link>"], "includeSegments": false}`.
- **Smaller answers for a model:** set `includeSegments` to `false` and read only `transcript`, `plays`, `likes`, `authorUsername` with the dataset `fields` parameter.
- **API:** `POST https://api.apify.com/v2/acts/leadharbor~tiktok-transcript-scraper/run-sync-get-dataset-items` with the input as JSON body returns the rows in one call.
- **Retrieval (RAG):** `segments` give you start and end seconds for citations back into the video.

### How it works

1. A video link: one request for the public video page, then one request for the caption file TikTok names in it.
2. A profile: one request for the public profile page, then TikTok's public video list for that creator (15 videos per request, the same list the profile page loads), then one request per caption file. If TikTok refuses the list, the Actor falls back to the 10 videos TikTok shows in the creator embed.
3. Four videos are read at a time. Video rows follow input order; error rows for bad entries and profiles are written first.
4. Blocks, server errors and network errors are tried up to 3 times with a pause. Missing and private videos, and a 401 or 403, are tried once.
5. If TikTok refuses 10 items in a row (a video, a profile or a share link: 429, check page, login redirect, 401 or 403), the run stops and says how many were not read, instead of sending more requests from a refused address.
6. If the charge call to Apify itself fails, the run stops there, keeps the rows already delivered, does not deliver or charge the row it was about to charge for, and says so in the run's status message.

Requests go from Apify's servers with no proxy. No cookie is stored or sent and nothing is signed.

### Limits

- **No transcript without TikTok captions.** See the section above.
- **Counts are TikTok's public numbers.** TikTok rounds some large counts (for example the follower count that comes with a video).
- **No comments, no search, no hashtag or sound feeds, no follower lists, no video file download.** Those need a login, signed requests or a session, which this Actor never uses.
- **Photo posts are not read.**
- **Private accounts and private videos return nothing.**
- **Order of profile videos is TikTok's.** We have not verified where pinned videos land in that list.
- **TikTok can change its pages without notice.** Most changes show up as free error rows (a video that comes back without its counts is never charged). If a field comes back empty that should not be, tell us in the Issues tab.
- **Share links** (`vm.tiktok.com/...`) are followed when TikTok redirects them to a video link. That path has unit tests but has not been tested on live links yet, so prefer full video links.
- **TikTok may slow down or refuse an address.** Then you get free `blocked` rows, and after 10 in a row the run stops; run again later. No block was seen in our real run.
- **Machine translations are TikTok's.** The Actor does not translate.
- One real run on the Apify platform on 22 November 2026 (run fO89NxoZiPRhaHDal): 105 videos read, 71 of them with a transcript, in 31 seconds. That is a single run on one day, not a guarantee.

### Support

Open an issue on the **Issues** tab and include the run ID. We aim to answer within 2 working days. Bug fixes for the fields listed on this page are free. If TikTok changes something and the Actor stops returning data, tell us there first.

### Data handling and fair use

The Actor reads only what TikTok shows to any logged-out visitor. It never asks for, stores or uses a TikTok login, cookie or session. Nothing is kept by us: results live in your own Apify dataset under your account's retention settings.

Creator handles, descriptions and spoken words are personal data and creative work. You are responsible for how you use them: respect copyright, privacy law (for example GDPR) and TikTok's terms where they apply to you. Do not use the output to harass anyone or to republish someone's content as your own.

### Not affiliated

This Actor is an independent tool. It is not affiliated with, endorsed by or sponsored by TikTok or ByteDance. "TikTok" is a trademark of its owner.

### FAQ

**Does it work for videos without spoken words?** TikTok has no captions for them, so by default they are skipped and free. Turn **Only videos with captions** off to get their stats (and be charged for those rows), with `transcriptStatus: "no_captions"`.

**Which languages?** Whatever caption tracks TikTok publishes for the video; `captionLanguages` lists them per video.

**Can I get the transcript in English for a Spanish video?** Only if TikTok offers its own English translation for that video. Set `language` to `en`; `transcriptSource` will say `translated`.

**How many videos can I read from one profile?** Up to 1,000 per profile and 5,000 per run. Very large profiles may stop earlier if TikTok stops returning older videos.

**Do you need my TikTok account?** No. There is no login field.

**Is there a YouTube version?** Yes: [YouTube Transcript Scraper](https://apify.com/leadharbor/youtube-transcripts) returns the same kind of row (text plus timed segments) for YouTube videos.

# Actor input Schema

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

TikTok video links, one per entry: https://www.tiktok.com/@name/video/<id>, or just the video id (15 to 20 digits). Share links (vm.tiktok.com/...) are followed if TikTok redirects them to a video link, but that path is not yet tested on live links, so prefer full links. Each video returns one row with its stats and, when TikTok has captions for it, the transcript. Photo posts and other links get a free error row. The same video twice is read once. Give video links, profiles, or both.

## `profiles` (type: `array`):

TikTok handles (@name or name) or profile links (https://www.tiktok.com/@name). For each public profile the Actor reads the videos in the order TikTok's public video list returns them, up to Max videos per profile. Private or missing profiles get a free error row.

## `maxVideosPerProfile` (type: `integer`):

How many videos to read from each profile, 1 to 1000. Does not apply to Video links. This counts videos read: with Only videos with captions on, videos without captions are skipped, so fewer rows can be delivered. One run reads at most 5,000 videos in total.

## `language` (type: `string`):

Leave empty for the language spoken in the video (a caption written by the creator is preferred over TikTok's automatic one). Or give a language code such as en, es or pt-BR: if TikTok offers a caption in that language (the spoken one or TikTok's own machine translation) it is used; transcriptSource tells you which you got. The Actor does not translate anything itself.

## `fallbackToOriginal` (type: `boolean`):

Only matters when Transcript language is set. On: if TikTok has no caption in that language, the video's own caption is returned (transcriptLanguage says which). Off: the row is delivered with transcriptStatus language_unavailable and no transcript.

## `captionsOnly` (type: `boolean`):

On (default): a video without a transcript is not delivered and not charged; it gets a free row with rowType error that says why. Off: every video is delivered with its stats and charged, also when TikTok has no captions for it; transcriptStatus says whether a transcript is included.

## `includeSegments` (type: `boolean`):

On: rows with a transcript also have segments, the caption lines with start and end in seconds. Off: only the full transcript text is returned, which makes rows smaller. segmentCount is always given.

## Actor input object example

```json
{
  "videoUrls": [
    "https://www.tiktok.com/@tiktok/video/7710348513128828191",
    "https://www.tiktok.com/@khaby.lame/video/7709194461913419038"
  ],
  "profiles": [],
  "maxVideosPerProfile": 10,
  "language": "",
  "fallbackToOriginal": true,
  "captionsOnly": true,
  "includeSegments": true
}
```

# Actor output Schema

## `results` (type: `string`):

Table of the delivered videos (stats and transcript) and any error rows.

## `summary` (type: `string`):

Counts: videos queued, rows delivered, rows with a transcript, error rows, retries and charged events.

# 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/@tiktok/video/7710348513128828191",
        "https://www.tiktok.com/@khaby.lame/video/7709194461913419038"
    ],
    "profiles": [],
    "maxVideosPerProfile": 10,
    "language": ""
};

// Run the Actor and wait for it to finish
const run = await client.actor("leadharbor/tiktok-transcript-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/@tiktok/video/7710348513128828191",
        "https://www.tiktok.com/@khaby.lame/video/7709194461913419038",
    ],
    "profiles": [],
    "maxVideosPerProfile": 10,
    "language": "",
}

# Run the Actor and wait for it to finish
run = client.actor("leadharbor/tiktok-transcript-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/@tiktok/video/7710348513128828191",
    "https://www.tiktok.com/@khaby.lame/video/7709194461913419038"
  ],
  "profiles": [],
  "maxVideosPerProfile": 10,
  "language": ""
}' |
apify call leadharbor/tiktok-transcript-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,leadharbor/tiktok-transcript-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/1zzvn5ZbjMfywWGzL/builds/jDoJdyKJBufpawm1o/openapi.json
