# TikTok Transcript Extractor with Timestamps and Batch URLs (`s-r/social-video-transcript`) Actor

Extract the transcript text, language and optional timestamps of public TikTok videos from their URLs. Send a batch of links and get one JSON row per video. Rows without a transcript are not charged. Instagram Reels are accepted but currently return an empty, uncharged row.

- **URL**: https://apify.com/s-r/social-video-transcript.md
- **Developed by:** [SR](https://apify.com/s-r) (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

$5.00 / 1,000 video 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 Extractor

Extract a TikTok transcript from public video links, with language selection, caption source and optional timestamps. Send a batch of links and receive ordered JSON rows suitable for content research, subtitle preparation and text analysis.

**Current platform coverage:** TikTok captions are supported. Instagram Reels URLs are accepted, but currently return an empty, uncharged result with `reason: "asr_unavailable"`. Instagram speech recognition is unavailable in this version. This actor does not turn a reel's post description into a spoken transcript. YouTube links are outside this product's scope.

### What the TikTok transcript extractor returns

The actor downloads available caption text for each TikTok video. When the platform supplies automatic captions, `caption_source` is `platform_auto` and `is_generated` is true. Manual captions, when available, are identified as `platform_manual`. Caption availability depends on the original video, the creator and the platform. A public video can have no downloadable caption track even when words appear visibly inside the video image.

Each delivered transcript includes the video's canonical URL, its platform ID, the selected language, a retrieval timestamp, the full text, word count, segment count and the end time of the last caption segment. The caption end time is not necessarily the video's total running time. It measures the covered captions, so silent endings do not extend that value.

### Input

Supply `videoUrls` as an array containing at least one supported URL. TikTok links use the form shown in the real example below. Instagram `/reel/`, `/p/` and `/tv/` links are accepted and normalised to the reel URL form. Expand shortened share links before submitting them. Blank entries are skipped, and repeated links remain repeated input positions.

```json
{
  "videoUrls": ["https://www.tiktok.com/@rosssmith/video/6989607394561035525"],
  "preferred_languages": ["en"],
  "prefer_manual": true,
  "include_segments": true
}
```

`preferred_languages` accepts language codes in priority order. Comparison ignores letter case. The actor first looks for the requested language, including a match on the language's main code. Within matching tracks, `prefer_manual: true` favours manual captions. If no requested language exists, an available track is selected. This option selects existing captions; it does not translate the video or generate a new language track.

Set `include_segments` to true to include caption segments with `start`, `duration` and `text`. Times are expressed in seconds, rounded to two decimal places. The default is false, which keeps the dataset smaller while retaining the joined transcript text and counts. Neither option changes which video was submitted.

### Output

Results appear in the default dataset, one row for each processed, non-blank input. The full transcript is in `text`. The optional `segments_data` array preserves caption timing. A real retrieved example from the video above begins with “what the heck” and ends with “eat a snickers”. Its returned caption track contains six segments, 34 words and a final caption end time of 17.66 seconds. The machine-readable examples shipped with the actor contain the complete captured handler responses.

A video without captions returns `text: ""`, `reason: "no_captions"` and `error: null`. An Instagram input currently returns the same empty text with `reason: "asr_unavailable"`. Both rows remain in the dataset so that a batch can be reconciled with its input links. They do not count as delivered transcripts.

A video that cannot be retrieved has an error code, such as `not_found`, `upstream_blocked`, `upstream_timeout` or `rate_limited`. Invalid individual links in an otherwise usable batch receive `invalid_input`. These rows also have empty text. If the whole input contains no usable supported URL, the run fails validation before video retrieval begins.

### TikTok subtitles and timing

For anyone who wants the words as TikTok subtitles rather than as a paragraph, set `include_segments` to true. The real example above then returns six rows with `start`, `duration` and `text`, from `5.83` for “what the heck” to `16.94` for “eat a snickers”, covering until `17.66` seconds. That is one line per caption cue: paste it into an SRT template, shift the times if you need a different frame rate, and the subtitle file follows without rewatching the video. The same rows serve as a check on subtitles that already exist elsewhere — the text is the caption track the platform published, so a mismatch is a real difference, not a transcription slip.

Segment timing describes the captions, not the video: a silent opening leaves the first cue at its own start time and a quiet ending does not push the last cue later. Submitting one URL is enough to test this on your own video; the batch form behaves the same way per row.

### Use cases

- **Repurposing short video into written content.** A content team submits the week's links in one batch and receives ordered paragraphs it can turn into a newsletter section, a blog draft or a LinkedIn post without rewatching every video.
- **Subtitle and caption preparation.** Editors use `segments_data` with `start` and `duration` to build SRT files or to check existing subtitles against the words the creator actually published.
- **Script and claim review.** Agencies verify what a sponsored video says before it is amplified elsewhere: the returned text quotes the video, so claims can be searched and compared with the campaign brief.
- **Research and monitoring.** Analysts collect what creators in a niche say over time. Batch input plus stable row order makes the dataset easy to align with the input list, including the videos that had no captions.
- **Feed other tools.** Content teams pipe the `text` field into translation, summarising or keyword tools that expect plain text rather than a video URL.

### How it compares

There are three usual routes to a TikTok transcript. Copying the words out of the app by hand is free but slow, has no timestamps and does not scale past one video. General speech-to-text services take an uploaded recording, take minutes per file and return what they hear, which can differ from the captions the creator chose to publish. Dedicated transcript scrapers on the Apify Store cover TikTok one URL at a time; some charge for every row they push, including rows that ended up empty.

This actor reads the caption track the platform publishes for each URL — automatic or manual — so the text matches the subtitles viewers see, and it does that for a whole list at once. Only delivered transcripts are billed; a URL without captions, a private or removed video, or an Instagram reel in this release comes back as an explicit empty or error row that costs nothing. YouTube videos are not handled here; YouTube transcript needs are served by separate YouTube-specific tools.

### Pricing

Charging is per delivered transcript. Only rows with non-empty `text`, no error and no empty-result reason count toward the transcript event. Empty captions, unavailable Instagram speech recognition and failed video retrievals do not produce transcript charges. The current Store pricing panel is the source of the applicable event price; inspect it before starting a large batch.

Accounts without a paid Apify plan receive at most ten processed rows per run. The input list is limited before retrieval. Error rows and empty rows use positions within this delivery limit, although they do not produce transcript events. A run containing one successful transcript and nine empty results therefore has one billable transcript. Apify platform usage remains subject to your account's own terms.

### Batch use and continuation

The actor processes larger lists in bounded pages and follows continuation automatically. Dataset rows preserve input order. When calling the underlying API directly, pass `next_cursor` back as `cursor` together with the same URL list and options. A null continuation value means the list is complete. A partial page is a continuation signal; it does not mean every remaining video lacks captions.

### FAQ

#### Is this a TikTok transcript generator?

It behaves like one: you paste video URLs and get transcript text back. The words come from the caption track the platform publishes — automatic captions when the creator enabled them, manual captions when they typed them — rather than from a fresh speech-recognition pass, so the result matches the subtitles viewers see. A video whose captions are switched off therefore returns an empty row with `reason: "no_captions"` instead of invented text.

#### Does this generate transcripts for Instagram Reels?

Instagram speech recognition is unavailable in this release. Accepted reel links return the explicit, uncharged `asr_unavailable` result. Use those rows to track inputs, and do not rely on this release for Instagram transcript text.

#### Does it recognise speech when TikTok has no captions?

No additional speech recognition is performed. The actor returns an empty `no_captions` result. Text placed visibly in a video and the creator's written post description are separate from downloadable captions.

#### Can I translate captions or request any language?

Language preferences select from tracks already supplied by the platform. A preference does not promise a translated track. Check the returned `language` field before using the transcript in a language-specific workflow.

#### Can I download TikTok subtitles as an SRT file?

Not as a ready-made file. The actor returns the caption track as text plus, on request, segments with `start`, `duration` and `text` — the three values an SRT line needs. Assembling those rows into an `.srt` file is a copy step on your side, and the timing section above shows what the values look like on a real video.

#### Why do I get an error for a public video?

A video may become unavailable, require login, be restricted, or temporarily reject retrieval. Inspect the per-row error code. Retry temporary failures later. An error row never contains a substitute transcript and does not trigger a transcript charge.

# Actor input Schema

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

TikTok video URLs and Instagram reel URLs. Instagram currently returns an uncharged asr_unavailable row.

## `preferred_languages` (type: `array`):

Language codes in priority order, case insensitive. Falls back to an available track.

## `prefer_manual` (type: `boolean`):

Prefer manual captions when tracks match the same preferred language.

## `include_segments` (type: `boolean`):

Include start, duration and text for each caption segment.

## `cursor` (type: `string`):

Continuation index from next_cursor. Keep the same videoUrls and options.

## Actor input object example

```json
{
  "videoUrls": [
    "https://www.tiktok.com/@rosssmith/video/6989607394561035525"
  ],
  "preferred_languages": [
    "en"
  ],
  "prefer_manual": true,
  "include_segments": false
}
```

# Actor output Schema

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

Dataset rows, including uncharged empty results.

## `output` (type: `string`):

Delivered rows, charges and free tier flags.

# 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/@rosssmith/video/6989607394561035525"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("s-r/social-video-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 = { "videoUrls": ["https://www.tiktok.com/@rosssmith/video/6989607394561035525"] }

# Run the Actor and wait for it to finish
run = client.actor("s-r/social-video-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 '{
  "videoUrls": [
    "https://www.tiktok.com/@rosssmith/video/6989607394561035525"
  ]
}' |
apify call s-r/social-video-transcript --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,s-r/social-video-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/MIUF2bKtzHBL9hnft/builds/tdw9cQlUAkFbbVDFG/openapi.json
