# TikTok Transcript Extractor — Captions + AI Speech-to-Text (`alex_fodo/tiktok-transcript`) Actor

Get the spoken text of TikTok videos: TikTok's own captions first, built-in AI speech-to-text only when captions are missing. Timestamps, SRT/VTT, English translation, views and likes.

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

## Pricing

from $1.05 / 1,000 transcript returneds

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 Transcript Extractor — Captions + AI Speech-to-Text

Get the spoken text of TikTok videos as clean text, timestamped segments and optional SRT/WebVTT subtitles. The Actor uses **TikTok's own captions first** and runs **built-in AI speech-to-text only for videos without captions**, so you pay AI prices only where AI is needed. Each result says where the text came from.

### What you get per video

- `text` — the full transcript; `segments` — `[{start, end, text}]` in seconds
- `source` — `tiktok_captions`, `ai_fast` or `ai_accurate`; `language`
- `translated_text` — English translation (optional)
- `srt` / `vtt` — subtitle files as text (optional)
- `author`, `description`, `views`, `likes`, `comments`, `shares`, `duration_seconds`, `created_at`
- `status` — `ok`, `no_transcript` (no captions / no speech) or `error` with an `error_code`

### How to use

1. Paste TikTok video links or short links (up to 200 per run).
2. Keep **Transcript source = Auto** (recommended), or choose **TikTok captions only** (cheapest, no AI) or **Always AI**.
3. Optional: **Add English translation**, **Include SRT/VTT**, **AI quality = Accurate** for non-English or noisy videos.
4. Run and export the dataset to JSON, CSV or Excel, or send it to Google Sheets, Make, Zapier or your app.

```json
{
  "urls": ["https://www.tiktok.com/@nasa/video/7708867568920038669"],
  "mode": "auto",
  "aiQuality": "fast",
  "translateToEnglish": false,
  "includeSrt": true
}
```

### How it works

- **Captions:** TikTok creates automatic captions for many spoken videos. In our test of 30 recent videos from 10 accounts (November 2026), 22 had them. They are fetched directly — fast and cheap.
- **AI speech-to-text:** for videos without captions, the Actor downloads the video and transcribes it with an open-source Whisper model running inside the Actor (no third-party AI service, your audio is not sent anywhere else). *Fast* uses Whisper base, *Accurate* uses Whisper small.
- **Translation:** when TikTok offers an English caption track it is used for free; otherwise the accurate Whisper model translates to English (charged as AI minutes at your selected AI quality price).

### Pricing

Pay per event; Apify platform usage is included.

- **Transcript returned:** $0.0015 per video ($1.50 per 1,000; Store discounts on paid Apify plans).
- **AI speech-to-text:** $0.01 per started minute (*Fast*) or $0.02 (*Accurate*), charged only when AI runs. A 45-second video is 1 minute; English translation by AI is a second pass charged the same way.
- **Free:** invalid, private, restricted or failed links; duplicates; videos without captions in *captions only* mode.
- AI minutes are charged when AI processed the audio, even if the video turned out to contain no speech (for example music only). Use *captions only* mode to avoid any AI charges.
- **Max AI minutes per video** (default 3) caps the cost of long videos.

Example: 100 spoken videos in Auto mode, ~75 with captions and ~25 without (each under 1 minute): 100 × $0.0015 + 25 × $0.01 = **$0.40**.

### Limits

- Video links and short links only; profiles, hashtags and searches are not supported yet. Photo (slideshow) posts have no transcript.
- Caption and AI quality vary with audio quality, accents and music. AI may miss words; review where accuracy matters.
- Some posts are restricted by TikTok in some regions (`POST_RESTRICTED`); they are free.
- If TikTok asks for a slower rate (`RATE_LIMITED`), the run stops and lists the remaining links in the `OUTPUT` record.
- AI needs memory: at least 1 GB for *Fast* and 2 GB for *Accurate* and translation (default 2 GB). With less, videos without captions return `NEEDS_MORE_MEMORY` free of charge.
- Each run stops after **Processing time limit** and when your maximum cost per run is reached — a video is never cut short to fit the budget.

### Use it responsibly

Transcribe only content you are allowed to process. The Actor reads public pages only and does not log in.

# Actor input Schema

## `urls` (type: `array`):

1–200 TikTok video links (tiktok.com/@user/video/ID) or short links (vm.tiktok.com/…, vt.tiktok.com/…). Duplicates are processed once.

## `mode` (type: `string`):

Auto uses TikTok's own captions (about 3 of 4 spoken videos have them) and runs AI speech-to-text only for videos without captions.

## `aiQuality` (type: `string`):

Used only when AI speech-to-text runs. Accurate costs twice as much per minute.

## `translateToEnglish` (type: `boolean`):

For non-English videos, add an English translation: TikTok's own translated captions when available (no AI fee), otherwise AI translation (charged per AI minute).

## `maxAiMinutesPerVideo` (type: `integer`):

AI processes at most this many minutes of each video; the rest is skipped. Limits cost on long videos.

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

Add an SRT subtitle text field to each result.

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

Add a WebVTT subtitle text field to each result.

## `requestIntervalSecs` (type: `integer`):

Polite pause between TikTok requests.

## `maxRunSecs` (type: `integer`):

Stop starting new videos after this time; unprocessed links are listed in OUTPUT.

## Actor input object example

```json
{
  "urls": [
    "https://www.tiktok.com/@nasa/video/7708867568920038669",
    "https://www.tiktok.com/@hankgreen1/video/7708983306980789518"
  ],
  "mode": "auto",
  "aiQuality": "fast",
  "translateToEnglish": false,
  "maxAiMinutesPerVideo": 3,
  "includeSrt": false,
  "includeVtt": false,
  "requestIntervalSecs": 2,
  "maxRunSecs": 1800
}
```

# Actor output Schema

## `transcripts` (type: `string`):

No description

## `summary` (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 = {
    "urls": [
        "https://www.tiktok.com/@nasa/video/7708867568920038669",
        "https://www.tiktok.com/@hankgreen1/video/7708983306980789518"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("alex_fodo/tiktok-transcript").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 = { "urls": [
        "https://www.tiktok.com/@nasa/video/7708867568920038669",
        "https://www.tiktok.com/@hankgreen1/video/7708983306980789518",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("alex_fodo/tiktok-transcript").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 '{
  "urls": [
    "https://www.tiktok.com/@nasa/video/7708867568920038669",
    "https://www.tiktok.com/@hankgreen1/video/7708983306980789518"
  ]
}' |
apify call alex_fodo/tiktok-transcript --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,alex_fodo/tiktok-transcript"
        }
    }
}
```

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/FOr1NgWrrAgduNVCp/builds/0fZCI5F6QVbBI6ly4/openapi.json
