# TikTok Transcript Scraper (`datahamster/tiktok-transcript-scraper`) Actor

TikTok transcript scraper for video links: plain text and timed segments, the caption language or all languages incl. TikTok's English translation, SRT/VTT, auto vs creator captions. Videos without captions get a free status row. No login.

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

## Pricing

from $2.08 / 1,000 result items

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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 Transcript Scraper

TikTok Transcript Scraper turns a list of TikTok video links into transcripts: the plain spoken text, timed segments with start and end seconds, the caption language, every language TikTok has for the video, and whether the captions are auto-generated, machine-translated or added by the creator. No TikTok account, cookies or API key.

**Try it:** the prefilled example returns 15 rows (14 transcripts and one free no-captions row) in about 20 seconds and costs about $0.04. Results cost $2.60 per 1,000.

Coverage: only videos where TikTok itself has captions get a transcript (most videos with speech do; music-only clips usually do not). This actor reads TikTok's own captions and does not run speech-to-text.

### Why this one

- **Pick the language or get all of them.** Ask for `en`, `es` or any other code and get that track, including TikTok's machine translation into English, or set `allLanguages` for one row per available language. The two most used TikTok transcript actors take only a list of URLs and have no language input.
- **Timed segments and plain text in the same row**, plus optional SRT and WebVTT text with `includeSrt` / `includeVtt`. No separate file downloads from a key-value store and no raw WEBVTT string to parse yourself.
- **Videos without captions are answered for free.** Each one gets a `no_captions`, `not_found` or `language_unavailable` row with no charge and it does not count toward `maxItems`, so you know which videos had no transcript and pay only for transcripts.
- **Batch with dedupe.** Paste links or bare numeric ids; the same video listed twice is read and charged once.
- Price: $0.0026 per transcript row. clockworks charges $0.0037 per video on Apify's free plan and $0.003 on Bronze.

### What you get

Real rows from the example dataset:

| videoId | status | language | captionSource | availableLanguages | wordCount | text |
|---|---|---|---|---|---|---|
| `7708898897065938190` | `ok` | `spa-ES` | `auto` | `eng-US, spa-ES` | `126` | La prueba nacional de alerta de emergencia se ha vuelto viral en... |
| `7708898897065938190` | `ok` | `eng-US` | `machine_translation` | `eng-US, spa-ES` | `114` | The national test emergency alert has gone viral on social networks.... |
| `7709435548049394966` | `ok` | `deu-DE` | `auto` | `deu-DE` | `161` | Warnung an alle Microsoft User, kriminelle wollen jetzt offenbar an... |
| `7338085038258457889` | `ok` | `eng-US` | `auto` | `eng-US` | `97` | Hi, we're appetite. Of course it took us half a year to get what we... |
| `7094007066288737582` | `no_captions` | `null` | `null` | `[]` | `0` | `null` (free row, noCaptionReason 3) |

Timed segments of the first row:

```json
[{"start": 0.04, "end": 0.88, "text": "La prueba nacional"}, {"start": 1, "end": 4.04, "text": "de alerta de emergencia se ha vuelto viral en redes sociales."}]
```

Full row: `id`, `videoId`, `url`, `status`, `authorHandle`, `description`, `createdAt`, `durationSeconds`, `language`, `languageCode`, `originalLanguage`, `isOriginalLanguage`, `captionSource`, `captionSourceCode`, `languageMatched`, `availableLanguages`, `text`, `segments` (`start`, `end`, `text`), `segmentCount`, `wordCount`, `srt`, `vtt`, `noCaptionReason`, `query`, `scrapedAt`.

`status` is `ok` for a transcript row (charged). Free status rows: `no_captions` (TikTok has no captions for the video; `noCaptionReason` 3 means no speech was detected), `language_unavailable` (none of your languages exists and `fallbackToOriginal` is off), `caption_fetch_failed` (the caption file did not download), `not_found` (the video was removed or never existed).

The only thing kept about the uploader is the public handle that is already part of the video link. Display name, avatar, bio and follower counts are never read, and comments are not collected.

### Related actors

- [TikTok Video Scraper](https://apify.com/datahamster/tiktok-video-scraper) returns views, likes, shares, saves and hashtags of the same videos.
- [TikTok Hashtag Scraper](https://apify.com/datahamster/tiktok-hashtag-scraper) lists videos of a hashtag; feed its links into this actor.
- [TikTok Comments Scraper](https://apify.com/datahamster/tiktok-comments-scraper) reads the comment text under a video.
- [YouTube Transcript Scraper](https://apify.com/datahamster/youtube-transcript-scraper) does the same for YouTube videos.

### Use cases

- Feed spoken text of TikTok videos into an LLM for summaries, topic tagging or hook analysis.
- Build subtitles in SRT for re-editing a video you have rights to.
- Read Spanish, German or Chinese videos in English through TikTok's own translation track.

### Input

| Field | Meaning | Default |
|---|---|---|
| `videoUrls` | TikTok video links (`https://www.tiktok.com/@handle/video/<id>`) or bare numeric video ids | example videos |
| `languages` | Caption languages in preference order, e.g. `en`, `es`, `eng-US`. Empty = the spoken language | empty |
| `allLanguages` | One row per available caption language (original first, then translations) | `false` |
| `fallbackToOriginal` | When none of `languages` exists, return the original-language track (`languageMatched: false`) | `true` |
| `includeSrt` / `includeVtt` | Add the transcript as SRT text / TikTok's WebVTT file text | `false` |
| `includeStatusRows` | Free rows for videos without a transcript | `true` |
| `maxItems` | Stop after this many transcript rows (status rows are not counted) | `20` |

### Pricing

| Event | Price |
|---|---|
| result | $0.0026 per transcript row ($2.60 per 1,000) |

Apify Store discounts: SILVER -10%, GOLD and higher -20%. Status rows (no captions, not found, language missing, caption file failed) are free. With `allLanguages` each language is its own row. Platform usage is billed by Apify on top; a typical run stays on the free proxy tier.

**Found it useful?** A short review on the Store page helps other people find this actor and tells us what to improve. If something is wrong, open an issue on the actor page.

### How it works

1. Each link is opened as a normal logged-out TikTok video page and the caption list is read from the JSON TikTok embeds in that page.
2. The caption file (WebVTT) linked in that JSON is downloaded and turned into timed segments, plain text and, if asked, SRT.
3. If TikTok answers with a block, the request is retried and then repeated through a datacenter and then a residential proxy. When every video of a run is blocked on every proxy, the run stops with a "blocked" reason instead of returning an empty dataset.

### Limits

- **Captions only, no speech-to-text.** A video TikTok has no captions for gets a free `no_captions` row, not a transcript.
- **Auto-generated captions can contain recognition errors**, and machine translations are TikTok's own.
- **Links only.** The actor does not search TikTok or list a profile; use TikTok Hashtag Scraper for lists of links. Short `vm.tiktok.com` links are not followed: open one once and paste the full address.
- No monitor mode: a video's transcript does not change after posting.

### FAQ

**Do I need a TikTok account?** No. Every request is a logged-out page view.

**Why is the handle the only creator field?** The handle is already part of the video link. Display names, avatars, bios and follower counts are personal profile data and are not collected.

### Changelog

- 0.1: first release with language choice, all languages, timed segments, SRT/VTT output and free status rows.

# Actor input Schema

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

TikTok video links such as https://www.tiktok.com/@tagesschau/video/7709435548049394966, or bare numeric video ids, one per line. Duplicates are read once.

## `languages` (type: `array`):

Caption languages in preference order, one per line, e.g. "en" then "es", or a full TikTok code like "eng-US". Leave empty to get the language spoken in the video. TikTok often adds an English machine translation for non-English videos.

## `allLanguages` (type: `boolean`):

true = one row per caption language TikTok has for the video (original first, then translations), each charged as a result. false = one row per video.

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

true = when none of your Languages exists, return the original-language transcript with languageMatched false. false = return a free language_unavailable row instead.

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

Add the transcript as SRT subtitle text in the srt field.

## `includeVtt` (type: `boolean`):

Add TikTok's WebVTT caption file text in the vtt field.

## `includeStatusRows` (type: `boolean`):

true = a video with no captions, a removed video or a missing language gets a free status row (not charged, not counted toward Max items). false = such videos are skipped.

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

Stop after this many transcript rows. Free status rows (no captions, not found) are not counted. You are charged only for transcript rows.

## Actor input object example

```json
{
  "videoUrls": [
    "https://www.tiktok.com/@telemundo51miami/video/7708898897065938190",
    "https://www.tiktok.com/@noticiastelemundo/video/7709482225242246414",
    "https://www.tiktok.com/@tagesschau/video/7709435548049394966",
    "https://www.tiktok.com/@zdfheute/video/7706537902905314593",
    "https://www.tiktok.com/@freesmoke2377/video/7700720624917925134",
    "https://www.tiktok.com/@flotracktv/video/7097667228253932842",
    "https://www.tiktok.com/@mattchoi6/video/7095042290489593131",
    "https://www.tiktok.com/@apifylife/video/7338085038258457889",
    "https://www.tiktok.com/@stoolpresidente/video/7488736374602927402",
    "https://www.tiktok.com/@renreports/video/7307726351291960622",
    "https://www.tiktok.com/@kzfadez/video/7477698081920748830",
    "https://www.tiktok.com/@gabiteachesenglish/video/7665059864103652629",
    "https://www.tiktok.com/@daniel.labelle/video/7094007066288737582"
  ],
  "languages": [],
  "allLanguages": true,
  "fallbackToOriginal": true,
  "includeSrt": false,
  "includeVtt": false,
  "includeStatusRows": true,
  "maxItems": 20
}
```

# Actor output Schema

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

All pushed rows (dataset, JSON)

## `resultsTable` (type: `string`):

Dataset in the Console viewer

## `runSummary` (type: `string`):

RUN_SUMMARY record

# 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/@telemundo51miami/video/7708898897065938190",
        "https://www.tiktok.com/@noticiastelemundo/video/7709482225242246414",
        "https://www.tiktok.com/@tagesschau/video/7709435548049394966",
        "https://www.tiktok.com/@zdfheute/video/7706537902905314593",
        "https://www.tiktok.com/@freesmoke2377/video/7700720624917925134",
        "https://www.tiktok.com/@flotracktv/video/7097667228253932842",
        "https://www.tiktok.com/@mattchoi6/video/7095042290489593131",
        "https://www.tiktok.com/@apifylife/video/7338085038258457889",
        "https://www.tiktok.com/@stoolpresidente/video/7488736374602927402",
        "https://www.tiktok.com/@renreports/video/7307726351291960622",
        "https://www.tiktok.com/@kzfadez/video/7477698081920748830",
        "https://www.tiktok.com/@gabiteachesenglish/video/7665059864103652629",
        "https://www.tiktok.com/@daniel.labelle/video/7094007066288737582"
    ],
    "allLanguages": true,
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("datahamster/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/@telemundo51miami/video/7708898897065938190",
        "https://www.tiktok.com/@noticiastelemundo/video/7709482225242246414",
        "https://www.tiktok.com/@tagesschau/video/7709435548049394966",
        "https://www.tiktok.com/@zdfheute/video/7706537902905314593",
        "https://www.tiktok.com/@freesmoke2377/video/7700720624917925134",
        "https://www.tiktok.com/@flotracktv/video/7097667228253932842",
        "https://www.tiktok.com/@mattchoi6/video/7095042290489593131",
        "https://www.tiktok.com/@apifylife/video/7338085038258457889",
        "https://www.tiktok.com/@stoolpresidente/video/7488736374602927402",
        "https://www.tiktok.com/@renreports/video/7307726351291960622",
        "https://www.tiktok.com/@kzfadez/video/7477698081920748830",
        "https://www.tiktok.com/@gabiteachesenglish/video/7665059864103652629",
        "https://www.tiktok.com/@daniel.labelle/video/7094007066288737582",
    ],
    "allLanguages": True,
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("datahamster/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/@telemundo51miami/video/7708898897065938190",
    "https://www.tiktok.com/@noticiastelemundo/video/7709482225242246414",
    "https://www.tiktok.com/@tagesschau/video/7709435548049394966",
    "https://www.tiktok.com/@zdfheute/video/7706537902905314593",
    "https://www.tiktok.com/@freesmoke2377/video/7700720624917925134",
    "https://www.tiktok.com/@flotracktv/video/7097667228253932842",
    "https://www.tiktok.com/@mattchoi6/video/7095042290489593131",
    "https://www.tiktok.com/@apifylife/video/7338085038258457889",
    "https://www.tiktok.com/@stoolpresidente/video/7488736374602927402",
    "https://www.tiktok.com/@renreports/video/7307726351291960622",
    "https://www.tiktok.com/@kzfadez/video/7477698081920748830",
    "https://www.tiktok.com/@gabiteachesenglish/video/7665059864103652629",
    "https://www.tiktok.com/@daniel.labelle/video/7094007066288737582"
  ],
  "allLanguages": true,
  "maxItems": 20
}' |
apify call datahamster/tiktok-transcript-scraper --silent --output-dataset

```

## MCP server setup

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