# Reels & TikTok Transcript API (`codepoetry/short-form-transcript-api`) Actor

Any short-form video in, one clean transcript out: Instagram Reels, TikTok, YouTube Shorts and Facebook Reels, by URL or whole account, no login anywhere. Captions first, AI when there are none. Timestamped segments, SRT/VTT/JSON, plus caption, hashtags and engagement.

- **URL**: https://apify.com/codepoetry/short-form-transcript-api.md
- **Developed by:** [CodePoetry](https://apify.com/codepoetry) (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 $7.00 / 1,000 reel transcripts

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

## Reels & TikTok Transcript API

Paste short-form video links, get one clean transcript schema back. **Instagram Reels, TikTok, YouTube Shorts and Facebook Reels all work today**, by direct URL or whole account, read logged-out with no account anywhere: public content only, which is both the legal posture and the reason there is no login to configure. Native captions come first where they exist; everything else is transcribed from the audio by a built-in AI model.

Every delivered row carries the transcript in the formats you asked for (plain text, timestamped segments, SRT, VTT, LLM-cleaned text), plus the video's own metadata: title, caption, hashtags, duration, publish time, plays, likes, comments and shares where the platform reports them.

Reels & TikTok Transcript API is an **unofficial** scraper. It is **not affiliated** with, endorsed by, or sponsored by any site it reads.

### Pricing

Pay per delivered transcript: **$0.010 per video**, plus a $0.0001 platform start. Nothing else bills:

- silent videos (music only) are returned as `no_speech` and cost nothing
- failed videos carry the reason on their row and cost nothing
- videos skipped by your spend limit cost nothing

Set **Max total charge (USD)** and the run stops before its delivered transcripts would cost more than that, returning every unrun video as a `charge_limit_skipped` row. The Apify Free plan's monthly credit covers a full trial run.

### What you get

One row per video, in one schema across platforms.

| Field | Type | Description |
|---|---|---|
| url | string | Canonical URL of the video as the platform reports it |
| platform | string | `instagram`, `tiktok`, `youtube` or `facebook` |
| status | string | `transcribed` (billed), `no_speech`, `failed`, `charge_limit_skipped`, `item_limit_skipped` (never billed) |
| handle | string | The account that posted the video |
| title | string | Video title |
| caption | string | The caption or description the poster wrote |
| hashtags | array | Hashtags from the caption, without the # |
| duration_seconds | integer | Video length in seconds |
| taken_at | string | Publication time, UTC, ISO 8601 / RFC 3339 |
| plays / likes / comments / shares | integer | Engagement counts where the platform reports them |
| language | string | Transcript language, ISO 639-1 |
| transcript_source | string | `native_captions` or `whisper` |
| is_ai_generated | boolean | True when transcribed from audio |
| transcript_text | string | Plain-text transcript |
| transcript_json | array | Timestamped segments: `{start, end, text}`, with per-word timings on request |
| transcript_srt / transcript_vtt | string | Subtitle renderings |
| transcript_llm | string | Text cleaned for LLM use: music marks and annotations stripped |
| error | array | Scoped failure facts for the row, null when clean |

A run also writes one **receipt** row: items requested, transcribed, silent, failed and skipped, events charged, and the price each was charged at. It is the honesty artifact to check an invoice against.

### Use cases

- Turn any TikTok or Shorts link into text for content repurposing (blogs, newsletters, clip descriptions)
- Transcribe a whole creator's recent videos in one run: paste `@handle`, get a dataset
- Build searchable archives of spoken short-form content with timestamps
- Feed LLM pipelines with the `llm` format: cleaned, ready-to-chunk text
- Caption generation: SRT and VTT come out aligned to the video's own timings

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| urls | array | `[]` | Direct video links: Instagram Reels, TikTok (any share-link shape), YouTube (watch, Shorts, youtu.be), Facebook Reels. Mix platforms in one run. |
| handles | array | `[]` | Instagram or TikTok accounts (`@name`, a profile URL; a bare name reads as Instagram). Each lists its latest reels and videos, up to Max videos per handle. |
| max_per_handle | integer | `10` | Videos each handle contributes |
| max_items | integer | `1000` | Run-wide ceiling; videos past it return as `item_limit_skipped` rows |
| max_total_charge_usd | number | `5` | Spend guard; videos past it return as `charge_limit_skipped` rows, uncharged. 0 disables |
| languages | array | `[]` | Preferred transcript languages (ISO 639-1 codes, dropdown), priority order. Empty: the video's own captions if any exist, else transcription |
| transcription_language | string | `""` | Force the transcription language, or detect automatically |
| transcribe_audio | boolean | `true` | Off means captions-only: caption-free videos fail with the reason and never bill |
| output_formats | array | `["text"]` | `text`, `json`, `srt`, `vtt`, `llm` |
| word_timestamps | boolean | `false` | Per-word timings inside each segment |
| max_ai_minutes | integer | `30` | Ceiling on transcribed audio minutes per run |
| geo | string | `"us"` | Country to read from (dropdown names each country; ISO 3166-1 alpha-2 underneath). Platforms localize and gate by the reader's address, so pinning it keeps results consistent |

### How to run it

**Console:** open the actor, paste a TikTok link or an `@handle`, Start. A one-video run costs one cent plus platform pennies.

**Schedule:** runs are cheap to repeat; a daily run over your handles gives you every new video's transcript as it posts.

**API:**

```json
{
  "urls": ["https://www.tiktok.com/@nasa/video/7707774305056083213"],
  "handles": ["@nasa"],
  "max_per_handle": 5,
  "output_formats": ["text", "srt"]
}
```

### Use it from n8n

Any automation tool that can call a REST API can drive this actor. In n8n, one **HTTP Request** node is enough (current n8n builds no longer ship a dedicated Apify node):

1. Create a credential of type **Header Auth**: name `Authorization`, value `Bearer <your Apify API token>`.
2. Add an **HTTP Request** node: method `POST`, URL
   `https://api.apify.com/v2/acts/codepoetry~short-form-transcript-api/run-sync-get-dataset-items`,
   authentication **Generic → Header Auth**, body type JSON:
   `{"urls": ["<any Reels, TikTok, Shorts or FB Reels link>"], "output_formats": ["text", "json"]}`,
   and raise the request timeout (a transcription run takes a minute or two).
3. The node returns dataset rows, one per video, with `transcript_text` and `transcript_json` ready to map downstream.

A ready-made form-to-transcript workflow (paste any Reels or TikTok link, get the transcript back) ships in [`integrations/n8n-template.json`](integrations/n8n-template.json): import it, connect the Header Auth credential, publish the form.

### FAQ

**What happens to music-only videos?** They come back `no_speech` with the reason on the row and are not charged. You pay for transcripts, not for news that there is none.

**Which languages work?** The dropdown lists the languages transcription and captions commonly serve (ISO 639-1). Caption languages follow what the platform itself published.

**How accurate is the AI transcription?** It runs a large-v3-turbo class model locally on the audio. For English and major languages, expect clean, timestamped text; heavy background music over speech is the known hard case, and `no_speech` says so honestly when there is nothing to read.

**How does it read Instagram and Facebook without an account?** Logged-out, like a visitor with no session: Instagram account tiles, reel pages and the public embed renderer, Facebook reel pages, and each platform's own media CDN. No account, no cookies beyond a normal visitor's, public content only. A reel that is private, removed or gated comes back with that reason on its row and is not charged.

### For agents and LLMs

One transcript schema across Instagram Reels, TikTok, YouTube Shorts and Facebook Reels, with per-row charge state (`status`) and a run receipt row to reconcile an invoice against. Inputs are plain lists: `urls` (any mix of the four platforms, share shortlinks followed) and `handles` (Instagram or TikTok accounts). The `llm` output format is text pre-cleaned for chunking: music markers and bracketed annotations stripped. Only delivered transcripts bill; `no_speech`, failed and skipped rows cost nothing.

Minimal input:

```json
{
  "urls": ["https://www.tiktok.com/@nasa/video/7707774305056083213"],
  "output_formats": ["text", "llm"]
}
```

Every field a buyer or agent can filter on is documented in the input and dataset schemas above.

# Changelog

This Actor's version history is a separate document: https://apify.com/codepoetry/short-form-transcript-api/changelog.md

# Actor input Schema

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

Direct links to transcribe: Instagram Reels, TikTok videos, YouTube Shorts and Facebook Reels. Share shortlinks (vm.tiktok.com, fb.watch, youtu.be) are followed to the video they name. Mix platforms freely in one run; every platform is read logged-out, public content only.

## `handles` (type: `array`):

Instagram or TikTok accounts to transcribe recent videos from: @name, a bare name (read as Instagram), or a profile URL. Each account's latest reels are listed (the profile's own tiles, no login), then transcribed like any URL, up to Max videos per handle.

## `max_per_handle` (type: `integer`):

How many recent videos each handle contributes. One listing request walks the account; the count caps how far it walks.

## `max_items` (type: `integer`):

Ceiling on items processed in the whole run, across URLs and handles. Items past the ceiling are each returned as a skipped row naming the ceiling, so nothing disappears silently.

## `max_total_charge_usd` (type: `number`):

Spend guard: the run stops before its delivered transcripts would cost more than this. Rows past the guard come back as charge_limit_skipped and are not billed. 0 disables the guard; the flat USD 0.010 per delivered transcript is the number the guard counts.

## `languages` (type: `array`):

Preferred transcript languages, in priority order, as ISO 639-1 codes (the dropdown lists the languages transcription and platform captions commonly serve). Native captions are used when they exist in one of these languages; otherwise the audio is transcribed. Empty means: use the video's own captions if any exist, else transcribe the audio.

## `transcription_language` (type: `string`):

Force the transcription language and skip detection (ISO 639-1 code), or leave blank to detect each video's language from its audio. Applies to audio transcription; native captions keep their own language.

## `transcribe_audio` (type: `boolean`):

Transcribe the audio of videos that carry no readable captions, with the resident AI model. Off means captions-only: videos without captions come back failed with the reason on the row and are not billed, and the run needs no transcription capacity.

## `output_formats` (type: `array`):

Which transcript renderings each row carries: plain text, timestamped segments (json), SubRip, WebVTT, and llm (text cleaned of music markers and annotations). Timestamped segments always back every rendering.

## `word_timestamps` (type: `boolean`):

Attach per-word start and end times inside each segment, where the source provides them. Roughly triples segment payload size.

## `max_ai_minutes` (type: `integer`):

Ceiling on audio minutes transcribed from scratch per run. Videos past the ceiling fail with the reason on their row; nothing past it is billed.

## `geo` (type: `string`):

Which country the run reads platforms from (ISO 3166-1 alpha-2). The platforms localize and gate by the reader's address, so pinning it keeps results and access consistent; the client's language and locale headers match the exit.

## Actor input object example

```json
{
  "max_per_handle": 10,
  "max_items": 1000,
  "max_total_charge_usd": 5,
  "languages": [],
  "transcription_language": "",
  "transcribe_audio": true,
  "output_formats": [
    "text"
  ],
  "word_timestamps": false,
  "max_ai_minutes": 30,
  "geo": "us"
}
```

# Actor output Schema

## `records` (type: `string`):

The scraped records, one row each.

## `summary` (type: `string`):

Run-level fields: source, the run instant, any run-level errors, and `run` — how many records were delivered, how many were rejected before delivery, how many the platform itself refused, and `failuresDatasetId`, the dataset holding the rejected records themselves.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("codepoetry/short-form-transcript-api").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("codepoetry/short-form-transcript-api").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 '{}' |
apify call codepoetry/short-form-transcript-api --silent --output-dataset

```

## MCP server setup

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

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/FBQ88SzQMtol2D5Go/builds/Cu3W5zUhr4GCTGIV8/openapi.json
