# TikTok & Instagram Subtitles Download: SRT & VTT Files (`emttn/instagram-tiktok-transcript-subtitles`) Actor

TikTok subtitles download: turns the TikTok and Instagram videos of a scraper run's dataset, not pasted URLs, into timestamped transcripts with SRT and VTT files for AI agents and editors: up to 100 videos per run, pay per started minute delivered. Runs on Apify proxies, not your server's IP.

- **URL**: https://apify.com/emttn/instagram-tiktok-transcript-subtitles.md
- **Developed by:** [Frameskim Tools](https://apify.com/emttn) (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

$20.00 / 1,000 started minute of video delivereds

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

## Instagram & TikTok Transcript (SRT, VTT)

**Works from the dataset of a TikTok or Instagram scraper run, not from a pasted URL: turns its videos into timestamped transcripts and SRT and VTT subtitles for AI agents and editors.** It runs on Apify and downloads the videos through Apify's datacenter proxies, not your server's IP, so it also works for agents on a cloud server or VPS; a video that is still blocked is not charged. Pick the dataset of a run of [clockworks/tiktok-scraper](https://apify.com/clockworks/tiktok-scraper), [apify/instagram-reel-scraper](https://apify.com/apify/instagram-reel-scraper) or [apify/instagram-scraper](https://apify.com/apify/instagram-scraper) and get one item per video with the words, the timing and ready-to-use SRT and VTT files.

More: [Instagram & TikTok Transcript (SRT, VTT) on frameskim.dev](https://frameskim.dev/instagram-tiktok-transcript#subtitles)

### What it does

Pass the dataset in `datasetId`, or paste its items in `datasetItems`. Up to 100 videos per run. For each video you get one dataset item:

- `url`, `platform` (`tiktok` or `instagram`), `videoId` and `durationSecs`.
- `lang`: the language detected in the audio, or the language of the video's own captions when it has them.
- `segments`: the transcript as `{ start, end, text }` in seconds, and `text`: the whole transcript as one string.
- `srt` and `vtt`: the same transcript as subtitle files, ready to save or load into a player or an editor.
- `frameskimUrl`: a link to [Frameskim](https://apify.com/emttn/frameskim), the sister actor for frames by time range and the moments of YouTube videos.

A video without speech is delivered with empty `segments`, `text`, `srt` and `vtt`, `noSpeech: true` and the `message` "No speech found. Nothing was charged for this video."

Items that are not TikTok or Instagram videos (image posts, slideshows, rows with a scraper error, YouTube or other platforms) are not processed: each becomes a row with `source` and `error` and is never charged. A YouTube item points to [emttn/youtube-transcript](https://apify.com/emttn/youtube-transcript).

### Pricing

Pay per event: one `minute` event per started minute of each delivered video (a 61 second video is 2 events). Price to be set when the actor is published.

What is not delivered is not charged: a video without speech, a private, removed or blocked video, a video that takes too long or needs more processing than its price covers, and every video left after a stop. If every item fails, the run still ends as succeeded: each failed item is in the dataset with its `error`, the status message gives the first reason, and nothing was charged. If a run fails or returns an error you did not expect, share the run with us from Apify Console or open an issue on the Issues tab with the run ID: we only see the runs you share. Set a maximum charge per run and the actor never goes past it.

### Input

```json
{ "datasetItems": [{ "webVideoUrl": "https://www.tiktok.com/@bbcnews/video/7694767678363340054" }] }
```

or `{ "datasetId": "<the id of your scraper's dataset>" }`. The actor reads the dataset only with the permission you give in the field.

### Output

```json
{ "url": "https://www.tiktok.com/@bbcnews/video/7694767678363340054", "platform": "tiktok", "videoId": "7694767678363340054", "durationSecs": 26.7, "lang": "en", "segments": [{ "start": 0.0, "end": 4.2, "text": "..." }], "text": "...", "srt": "1\n00:00:00,000 --> 00:00:04,200\n...\n", "vtt": "WEBVTT\n\n00:00:00.000 --> 00:00:04.200\n...\n", "frameskimUrl": "https://apify.com/emttn/frameskim" }
```

A video that cannot be delivered becomes a row such as:

```json
{ "url": "https://www.tiktok.com/@someone/video/7000000000000000000", "error": "This video was removed or does not exist. Nothing was charged." }
```

### Limits

- Up to 100 distinct videos per run; more is refused before anything is processed and nothing is charged.
- A run has a time limit; videos left after it stop with "Stopped: time limit reached. Nothing was charged for this video."
- Public videos only: no cookies, no logins, no private accounts.

### Legal

Not affiliated with TikTok, Instagram or Meta. By running this actor you confirm you have the right to process each video you submit. The video is deleted when its item ends; only the text is delivered.

Takedown requests: open an issue in the Issues tab of this page or write to support@frameskim.dev. Blocked videos and accounts are refused on the next run with "This video is not available in this actor. Nothing was charged."

# Actor input Schema

## `datasetId` (type: `string`):

The dataset of a run of clockworks/tiktok-scraper, apify/instagram-reel-scraper or apify/instagram-scraper in your account. The actor reads it only with the permission you give here. Up to 100 videos per run; items that are not TikTok or Instagram videos are reported and not charged.

## `datasetItems` (type: `array`):

Items of one of those scrapers pasted as JSON, instead of choosing their dataset.

## `failWhenEmpty` (type: `boolean`):

Internal: the run ends as failed, instead of succeeded with error items, when no video is delivered. Used by health checks.

## Actor input object example

```json
{
  "datasetItems": [
    {
      "webVideoUrl": "https://www.tiktok.com/@bbcnews/video/7694767678363340054",
      "videoMeta": {
        "duration": 27
      }
    }
  ],
  "failWhenEmpty": false
}
```

# Actor output Schema

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

Dataset items: for a video, its URL, platform, ID, duration, language, timestamped segments, full text, srt, vtt and a Frameskim link; failed items carry an error and are not charged.

# 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 = {
    "datasetItems": [
        {
            "webVideoUrl": "https://www.tiktok.com/@bbcnews/video/7694767678363340054",
            "videoMeta": {
                "duration": 27
            }
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("emttn/instagram-tiktok-transcript-subtitles").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 = { "datasetItems": [{
            "webVideoUrl": "https://www.tiktok.com/@bbcnews/video/7694767678363340054",
            "videoMeta": { "duration": 27 },
        }] }

# Run the Actor and wait for it to finish
run = client.actor("emttn/instagram-tiktok-transcript-subtitles").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 '{
  "datasetItems": [
    {
      "webVideoUrl": "https://www.tiktok.com/@bbcnews/video/7694767678363340054",
      "videoMeta": {
        "duration": 27
      }
    }
  ]
}' |
apify call emttn/instagram-tiktok-transcript-subtitles --silent --output-dataset

```

## MCP server setup

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

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/nzIk4ftOBqfmAGwug/builds/56lwFd3zRA9YhbCkU/openapi.json
