# TikTok Transcript Scraper - Video Captions & Subtitles to Text (`renzomacar/tiktok-transcript-scraper`) Actor

Paste TikTok video links and get each video's transcript as clean text plus timed segments, in the spoken language or an available translation. Author, plays, likes and length included. No login, no API key.

- **URL**: https://apify.com/renzomacar/tiktok-transcript-scraper.md
- **Developed by:** [Renzo Madueno](https://apify.com/renzomacar) (community)
- **Categories:** 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

$1.50 / 1,000 transcripts

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

Paste TikTok video links, get each video's **full transcript as clean text** plus **timed segments** (start and length of every line). It reads the captions TikTok already has for the video: the subtitles TikTok generates automatically from the speech, or the captions written by the creator. Every row also has the author, the video caption, hashtags, plays, likes, comments, shares, saves and length.

No login, no cookies, no API key. Short share links (`vm.tiktok.com/…`, `tiktok.com/t/…`) work too.

### What you get

| Field | Example |
|---|---|
| `authorUsername` | chefchrischo |
| `description` | How to Cook Perfect Rice 🍚 #comfortfood #homecooked |
| `language` / `languageName` | `en` / English |
| `isAutoGenerated` | `true` (generated by TikTok from the speech) |
| `isTranslation` | `false` (the language spoken in the video) |
| `transcript` | Look at that. Yo, this is how you make rice without a rice cooker. Oh, this is literally all you need, a pot and some rice… |
| `wordCount` | 200 |
| `segments` | `[{ "start": 0.352, "duration": 1.097, "text": "Look at that." }, { "start": 1.449, "duration": 2.816, "text": "Yo, this is how you make rice without a rice cooker." }, …]` |
| `availableLanguages` | `["en"]` (a Spanish video may list `["es", "en"]` when TikTok has an English translation) |
| `plays`, `likes`, `comments`, `shares`, `saves`, `durationSeconds`, `createdAt`, `hashtags`, `authorFollowers`, `music` | video details |

The `transcript` text joins the lines into readable sentences and starts a new paragraph where the speaker pauses, so it can go straight into a summary, a script analysis, an LLM prompt or a search index. The `segments` keep the timing for subtitles or quotes with a timestamp.

### How to use it

1. Paste one link per line in **Video links**: `tiktok.com/@user/video/…`, a short share link, or the numeric video ID.
2. Optional: write a **Language** code (`en`, `es`, `pt`, `fr`, `de`…). Leave it empty to get the language spoken in the video. For some videos TikTok also has a translation (often English); `availableLanguages` shows what exists.
3. Choose what happens when a video has no transcript in that language: return its own language, or skip it.
4. Run. Each video is one row in the dataset; download it as JSON, CSV or Excel, or read it through the API.

#### Input example

```json
{
    "videos": [
        "https://www.tiktok.com/@chefchrischo/video/7036492957121514798",
        "https://www.tiktok.com/@girlandthekitchen/video/7460657174600027434"
    ],
    "language": "",
    "ifLanguageMissing": "original",
    "includeSegments": true
}
```

### Pricing

You pay **per transcript returned**. Videos without captions, private or removed videos still get a row with the reason in the `error` column, and **those rows are free**. You can set a maximum cost per run in the run options; the run stops when it is reached.

### Good to know

- The transcript comes from TikTok's own captions. Videos with no speech (music only, text on screen only) and videos whose creator turned captions off have none; they come back free with the reason.
- Automatic captions are as good as TikTok's speech recognition: names and slang can be misspelled.
- Translation is only available when TikTok has one for that video; nothing is machine-translated by this Actor.
- Private and removed videos cannot be read without signing in, so they are returned with an error and not charged.

### Use it from code

```bash
curl -X POST "https://api.apify.com/v2/acts/renzomacar~tiktok-transcript-scraper/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"videos":["https://www.tiktok.com/@chefchrischo/video/7036492957121514798"]}'
```

The same works from Python or JavaScript with the Apify client, from Make, Zapier, n8n, or as a tool for AI agents through the Apify MCP server.

### Questions or a missing feature?

Open an issue on the actor's **Issues** tab; it is read and answered.

# Actor input Schema

## `videos` (type: `array`):

One per line: a TikTok video link (tiktok.com/@user/video/…), a short share link (vm.tiktok.com/…, tiktok.com/t/…) or the numeric video ID.

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

Two-letter code of the transcript language you want, for example en, es, pt, fr, de. Leave empty to get the language spoken in the video. TikTok offers translations for some videos; availableLanguages lists them.

## `ifLanguageMissing` (type: `string`):

Return the transcript in the language spoken in the video, or skip that video (you are not charged for skipped videos).

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

Add every line of the transcript with its start time and length in seconds, besides the full text.

## `proxyConfiguration` (type: `object`):

Not needed: public pages are read directly and Apify Proxy is used automatically if TikTok stops answering. Set your own proxy only if you want every request to go through it.

## Actor input object example

```json
{
  "videos": [
    "https://www.tiktok.com/@chefchrischo/video/7036492957121514798",
    "https://www.tiktok.com/@girlandthekitchen/video/7460657174600027434"
  ],
  "language": "",
  "ifLanguageMissing": "original",
  "includeSegments": true
}
```

# Actor output Schema

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

One row per video with its full transcript, language and video details.

# 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 = {
    "videos": [
        "https://www.tiktok.com/@chefchrischo/video/7036492957121514798",
        "https://www.tiktok.com/@girlandthekitchen/video/7460657174600027434"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("renzomacar/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 = { "videos": [
        "https://www.tiktok.com/@chefchrischo/video/7036492957121514798",
        "https://www.tiktok.com/@girlandthekitchen/video/7460657174600027434",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("renzomacar/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 '{
  "videos": [
    "https://www.tiktok.com/@chefchrischo/video/7036492957121514798",
    "https://www.tiktok.com/@girlandthekitchen/video/7460657174600027434"
  ]
}' |
apify call renzomacar/tiktok-transcript-scraper --silent --output-dataset

```

## MCP server setup

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