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

Extract transcripts and subtitles from TikTok videos in all available languages. Timestamped segments, full plain-text transcript, and video metadata per URL.

- **URL**: https://apify.com/ihndev/tiktok-transcript-scraper.md
- **Developed by:** [IHNDEV](https://apify.com/ihndev) (community)
- **Categories:** Social media, Videos, AI
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $1.00 / 1,000 transcript extracteds

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js/docs.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python/docs.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## TikTok Transcript Scraper

Extract **transcripts and subtitles from TikTok videos** — every language TikTok provides, with timestamped segments, full plain text, and video metadata. Paste video URLs, get structured JSON back. No login, no cookies, no per-minute pricing.

### What you get per video

- **Full transcript** as plain text, ready for LLMs, search indexes, or content pipelines
- **Timestamped segments** (`start`, `end`, `text`) for subtitle generation and keyword-at-timestamp lookups
- **All available languages** — creator captions, original-language ASR, and TikTok machine translations, ranked by quality (`creator_caption` > `ASR` > `MT`)
- **Video metadata** — author, caption, duration, post date, plays, likes, comments, shares
- Optional **raw WebVTT** subtitle files

### How to use it

1. Add one or more TikTok video URLs (full links or `vm.tiktok.com` / `vt.tiktok.com` short links).
2. Optionally set preferred languages (default `en`) or enable **Include all languages**.
3. Run. Each video becomes one dataset item.

#### Input example

```json
{
    "videoUrls": ["https://www.tiktok.com/@apifytech/video/7398101551744552225"],
    "preferredLanguages": ["en"],
    "includeAllLanguages": false
}
````

#### Output example

```json
{
    "id": "7398101551744552225",
    "url": "https://www.tiktok.com/@apifytech/video/7398101551744552225",
    "author": "apifytech",
    "description": "Yes, you can scrape job listings #data in a minute!!",
    "createTime": "2024-08-01T15:04:11Z",
    "durationSeconds": 58,
    "stats": { "plays": 12345, "likes": 678, "comments": 90, "shares": 12 },
    "availableLanguages": [
        { "code": "eng-US", "source": "ASR" },
        { "code": "deu-DE", "source": "MT" }
    ],
    "transcript": {
        "languageCode": "eng-US",
        "source": "ASR",
        "text": "Yes, you can scrape job listings in a minute...",
        "segments": [
            { "start": "00:00:00.000", "end": "00:00:03.200", "startSeconds": 0, "endSeconds": 3.2, "text": "Yes, you can scrape job listings" }
        ]
    }
}
```

### Error handling

When a video cannot be processed — deleted, private, or region-blocked — the Actor pushes an **error item** to the dataset instead of silently skipping it. Error items carry an `errorCode` field (`NOT_FOUND`, `PRIVATE`, `BLOCKED`, `UNSUPPORTED`) so you can separate them from normal results. Normal output items never contain `errorCode`.

Videos that exist but have no subtitles still return their full metadata with `"transcript": null`, charged at a reduced rate.

### Pricing

Pay per event: you are charged per transcript actually delivered. Videos without subtitles cost a fraction of the transcript price, and failed videos cost nothing beyond the flat run-start fee. No subscription, no per-minute audio billing.

### Use cases

- **AI pipelines & RAG** — feed TikTok transcripts into LLMs for summarisation, classification, and Q\&A
- **Content repurposing** — turn videos into blog posts, newsletters, and social copy
- **SEO & trend research** — extract spoken keywords from high-performing videos at scale
- **Brand & competitor monitoring** — schedule daily runs over creator accounts and track messaging
- **Localization analysis** — pull all subtitle languages of a video in a single run
- **Accessibility** — reuse TikTok's own subtitle files (`.vtt`) in your player

### FAQ

**Where do the transcripts come from?**
From TikTok's own subtitle system: creator-uploaded captions, TikTok's automatic speech recognition (ASR), and TikTok's machine translations. This makes extraction fast and cheap, but it also means a video with no subtitles returns metadata only — no speech-to-text is synthesised.

**Do I need TikTok credentials or cookies?**
No. Only public video URLs are processed.

**Is it legal to scrape TikTok transcripts?**
The Actor only accesses publicly available video content and does not extract private user data. Results may contain personal data, which is subject to GDPR in the EU and similar regulations elsewhere. Only scrape data for legitimate purposes.

**Found a bug?**
Please open an issue on the Actor's Issues tab in Apify Console.

### Use cases

- **AI & RAG pipelines** — feed spoken content into LLMs for summarisation, classification, or Q\&A
- **Content repurposing** — turn videos into blog posts, newsletters, and threads
- **SEO & keyword research** — extract spoken keywords and topics from high-performing videos
- **Accessibility** — generate subtitle files for videos TikTok has not captioned
- **Trend & competitor analysis** — process transcripts at scale to track messaging and topics

### Notes

- Accesses only publicly available video content. Results may contain personal data subject to GDPR; scrape for legitimate purposes only.
- Subtitle availability is set by TikTok. Some videos have creator captions, some only auto-generated (ASR) captions, and some none at all.
- Photo posts have no audio track and return an `UNSUPPORTED` item.

# Actor input Schema

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

One or more TikTok video URLs. Full web URLs (https://www.tiktok.com/@user/video/123...) and short links (vm.tiktok.com, vt.tiktok.com) are supported. Photo posts have no audio track and will return a NO\_SUBTITLES item.

## `preferredLanguages` (type: `array`):

Ordered list of preferred subtitle languages as ISO codes or prefixes (e.g. 'en', 'de', 'eng-US'). The first available match is returned as the main transcript. If nothing matches, the best available language is used.

## `includeAllLanguages` (type: `boolean`):

When enabled, transcripts for every subtitle language TikTok provides are downloaded and returned in the 'otherTranscripts' field, in addition to the main transcript. Each extra language is charged as a separate transcript event.

## `includeRawVtt` (type: `boolean`):

When enabled, the raw WebVTT subtitle file content is included in each transcript object under 'vtt'. Useful if you need the original subtitle file for players or further processing.

## `residentialFallback` (type: `boolean`):

When enabled, retries that hit TikTok bot protection are routed through the RESIDENTIAL proxy group. Disable to force datacenter-only traffic.

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

Proxy settings for outgoing requests. Apify Proxy (automatic datacenter) is recommended; residential fallback is applied automatically on blocks unless disabled.

## Actor input object example

```json
{
  "videoUrls": [
    "https://www.tiktok.com/@apifytech/video/7398101551744552225"
  ],
  "preferredLanguages": [
    "en"
  ],
  "includeAllLanguages": false,
  "includeRawVtt": false,
  "residentialFallback": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `transcripts` (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/@apifytech/video/7398101551744552225"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("ihndev/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/@apifytech/video/7398101551744552225"],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("ihndev/tiktok-transcript-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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/@apifytech/video/7398101551744552225"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call ihndev/tiktok-transcript-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=ihndev/tiktok-transcript-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "TikTok Transcript Scraper",
        "description": "Extract transcripts and subtitles from TikTok videos in all available languages. Timestamped segments, full plain-text transcript, and video metadata per URL.",
        "version": "0.1",
        "x-build-id": "2FASodLOUnqsvByI2"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/ihndev~tiktok-transcript-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-ihndev-tiktok-transcript-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/ihndev~tiktok-transcript-scraper/runs": {
            "post": {
                "operationId": "runs-sync-ihndev-tiktok-transcript-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/ihndev~tiktok-transcript-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-ihndev-tiktok-transcript-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "videoUrls"
                ],
                "properties": {
                    "videoUrls": {
                        "title": "TikTok video URLs",
                        "type": "array",
                        "description": "One or more TikTok video URLs. Full web URLs (https://www.tiktok.com/@user/video/123...) and short links (vm.tiktok.com, vt.tiktok.com) are supported. Photo posts have no audio track and will return a NO_SUBTITLES item.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "preferredLanguages": {
                        "title": "Preferred languages",
                        "type": "array",
                        "description": "Ordered list of preferred subtitle languages as ISO codes or prefixes (e.g. 'en', 'de', 'eng-US'). The first available match is returned as the main transcript. If nothing matches, the best available language is used.",
                        "default": [
                            "en"
                        ],
                        "items": {
                            "type": "string"
                        }
                    },
                    "includeAllLanguages": {
                        "title": "Include all languages",
                        "type": "boolean",
                        "description": "When enabled, transcripts for every subtitle language TikTok provides are downloaded and returned in the 'otherTranscripts' field, in addition to the main transcript. Each extra language is charged as a separate transcript event.",
                        "default": false
                    },
                    "includeRawVtt": {
                        "title": "Include raw WebVTT",
                        "type": "boolean",
                        "description": "When enabled, the raw WebVTT subtitle file content is included in each transcript object under 'vtt'. Useful if you need the original subtitle file for players or further processing.",
                        "default": false
                    },
                    "residentialFallback": {
                        "title": "Residential proxy fallback",
                        "type": "boolean",
                        "description": "When enabled, retries that hit TikTok bot protection are routed through the RESIDENTIAL proxy group. Disable to force datacenter-only traffic.",
                        "default": true
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Proxy settings for outgoing requests. Apify Proxy (automatic datacenter) is recommended; residential fallback is applied automatically on blocks unless disabled.",
                        "default": {
                            "useApifyProxy": true
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
