# TikTok Transcript & Video to Text (Whisper, timestamps) (`lavidarossi.bv/short-video-transcript`) Actor

TikTok transcript and video to text: transcribe public TikTok videos and direct video or audio links (mp4, mp3, m4a, webm) with Whisper. One row per video: full transcript, timestamped segments, language, duration and the opening hook.

- **URL**: https://apify.com/lavidarossi.bv/short-video-transcript.md
- **Developed by:** [Lavida Data](https://apify.com/lavidarossi.bv) (community)
- **Categories:** Videos, Social media, AI
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 1,000 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/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 & Video to Text (Whisper, timestamps)

Paste public TikTok video links or direct links to a video or audio file, and this Actor writes down what is said. Speech-to-text runs inside the Actor with OpenAI's open Whisper model (base, multilingual), so there is no API key and no extra fee per minute from a third party. Each video gives one row with the full transcript, timestamped segments, the detected language, the duration and the hook: the words spoken in the first seconds, measured from word timestamps.

### What it does

- TikTok video links (www, m. and vm.tiktok.com short links) and direct media links (mp4, mov, webm, mp3, m4a, wav, ogg) in one run.
- Whisper base (multilingual) runs inside the Actor: about 99 languages, detected per video, or fixed by you.
- Timestamped segments with start and end in seconds, ready for subtitles or search.
- Hook field: the words spoken in the first 3 seconds (you can change the window), from word timestamps, no AI guesswork.
- Only the handle and video ID of the creator; no profile fields.
- Pay per transcript, plus a small fee per extra minute for longer videos.

### Use cases

- Collect the opening lines of top TikToks in a niche and study which hooks work.
- Turn short videos into text for an LLM or AI agent: summaries, topic tagging, script templates.
- Make subtitles or a searchable archive of your own short videos.
- Transcribe podcast clips or webinar snippets from a direct mp3 or mp4 link.

### How to use it

1. Fill in the input (or keep the example).
2. Click Start.
3. Download the results from the Output tab, or connect them to your tools with the Apify API or integrations.

The prefilled input is a small test: it stops after 10 results, so the first run costs at most $0.20.

### Input

| Field | Type | Required | Default | Example | Description |
| --- | --- | --- | --- | --- | --- |
| `videoUrls` | array | yes |  | \["https://www.tiktok.com/@nasa/video/7702504724049743117"] | Public TikTok video links (tiktok.com/@user/video/123..., vm.tiktok.com/...) or direct links to a video or audio file (mp4, mov, webm, mp3, m4a, wav, ogg). One per line. Instagram and Facebook links are skipped: they do not show the video to logged-out visitors. |
| `language` | string | no | "auto" | auto | auto detects the language per video. Or give a two-letter code (en, nl, de, es, pt, ...) when you know it: detection on very short clips can pick a wrong language. |
| `hookSeconds` | integer | no | 3 | 3 | The hook field holds the words that start within this many seconds of the video. |
| `maxDurationMinutes` | integer | no | 10 | 10 | Longer videos are transcribed up to this point only (truncated is then true). Caps the cost per video. |
| `includeSegments` | boolean | no | true | true | Add the timestamped segments to each row. Turn off for smaller rows when you only need the text. |
| `maxResults` | integer | no | 100 | 10 | The run stops after this many transcripts. You pay per transcript. |
| `proxyConfiguration` | object | no | {"useApifyProxy":false} | {"useApifyProxy":false} | Optional proxy. Leave off unless runs get blocked. |

Example input:

```json
{
  "videoUrls": [
    "https://www.tiktok.com/@nasa/video/7702504724049743117"
  ],
  "language": "auto",
  "hookSeconds": 3,
  "maxDurationMinutes": 10,
  "includeSegments": true,
  "maxResults": 10
}
```

### Output

Each result is one row in the dataset. Download it as JSON, CSV, Excel or HTML, or read it through the Apify API.

| Field | Type | Description |
| --- | --- | --- |
| `url` | string | The link from the input |
| `platform` | string | tiktok or direct (a direct media link) |
| `videoId` | string | TikTok video ID, or the file name for a direct link |
| `handle` | string | Public TikTok handle of the uploader (without @). Null for direct links |
| `durationSec` | number | Length of the audio in seconds |
| `transcribedSec` | number | Seconds transcribed; lower than the duration when the video is longer than the maximum minutes |
| `truncated` | boolean | True when only the first part of a long video was transcribed |
| `language` | string | Spoken language code, detected by Whisper or taken from the input |
| `transcript` | string | Full transcript text. Empty when the video has no speech (music only) |
| `hook` | string | Words that start within the hook window (default the first 3 seconds) |
| `speechStartSec` | number | Second at which the first spoken segment starts; null when nothing is said. A late start means the video opens without words |
| `wordCount` | integer | Number of words in the transcript |
| `segments` | array | Timestamped segments: start and end in seconds, and text. Null when segments are turned off |
| `audioSource` | string | video (the video file) or sound (the TikTok original sound of the same video, a smaller download) |
| `model` | string | Speech-to-text model used |
| `scrapedAt` | string | ISO time the row was made |

#### Example output

| URL | Handle | Duration (s) | Language | Hook | Speech starts (s) |
| --- | --- | --- | --- | --- | --- |
| https://www.tiktok.com/@nasa/video/7702504724049743117 | nasa | 108.07 | en | Big things are coming together at NASA and | 0 |

Example result:

```json
{
  "url": "https://www.tiktok.com/@nasa/video/7702504724049743117",
  "platform": "tiktok",
  "videoId": "7702504724049743117",
  "handle": "nasa",
  "durationSec": 108.07,
  "transcribedSec": 108.07,
  "truncated": false,
  "language": "en",
  "transcript": "Big things are coming together at NASA and some exciting journeys are just getting started. Here's what's new at your NASA Minute. ...",
  "hook": "Big things are coming together at NASA and",
  "speechStartSec": 0,
  "wordCount": 283,
  "segments": [
    {
      "start": 0,
      "end": 5.5,
      "text": "Big things are coming together at NASA and some exciting journeys are just getting started."
    }
  ],
  "audioSource": "sound",
  "model": "whisper-base-q5_1",
  "scrapedAt": "2026-12-04T08:00:00.000Z"
}
```

### Pricing

This Actor uses pay-per-event pricing. You pay for results, not for compute time or proxies.

| Event | When it is charged | Price | Per 1,000 |
| --- | --- | --- | --- |
| Transcript | One video transcribed and written to the dataset (includes the first minute of audio) | $0.01 | $10.00 |
| Extra minute | Each started minute of audio beyond the first, per video | $0.01 | $10.00 |
| Actor start | Charged by Apify once per run, plus once per GB of memory above 1 GB | $0.00005 | $0.05 |

Example: 1,000 results cost $10.00 in total for one run.
Set "Maximum cost per run" in the run options to cap spending; the Actor stops cleanly when the cap is reached.

### Use it from an AI agent or the API

**MCP (Claude, Cursor, ChatGPT and other MCP clients):** add the Apify MCP server with this Actor as a tool: `https://mcp.apify.com?tools=lavidarossi.bv/short-video-transcript`. The agent sees it as the tool `lavidarossi-dot-bv--short-video-transcript` with the input fields above. Without the parameter, agents can still find it with the `search-actors` tool.

**API:** run it and get the rows in one call (replace `<APIFY_TOKEN>` with your token):

```bash
curl -X POST "https://api.apify.com/v2/acts/lavidarossi.bv~short-video-transcript/run-sync-get-dataset-items" \
  -H "Authorization: Bearer <APIFY_TOKEN>" -H "Content-Type: application/json" \
  -d '{"videoUrls":["https://www.tiktok.com/@nasa/video/7702504724049743117"],"language":"auto","hookSeconds":3,"maxDurationMinutes":10,"includeSegments":true,"maxResults":10,"proxyConfiguration":{"useApifyProxy":false}}'
```

### FAQ

**Which speech-to-text model is used?**

OpenAI Whisper base (multilingual, MIT licence), run with whisper.cpp inside the Actor on CPU. No audio leaves the Actor and there is no third-party API fee.

**How is the hook made?**

Whisper gives a time for every word. The hook is every word that starts within the hook window (default 3 seconds). No AI rewriting. When a video opens with music or silence the hook is empty, and speechStartSec tells you when the first words come.

**Does it work for Instagram Reels or Facebook videos?**

Not with a reel link: Instagram and Facebook do not put the video in the page for logged-out visitors, and this Actor never logs in. If you have the direct mp4 link of a reel, paste that: direct links always work.

**What does a video with only music return?**

A row with an empty transcript and hook, the duration and language. It is charged like any other transcript, because the audio was processed.

**How long does it take?**

With the default 4 GB memory (1 CPU core), about 20 seconds of processing per minute of audio and at least about 11 seconds per video (Whisper always reads a 30-second window), plus a second or two per video for the download. More memory gives more cores and faster runs at about the same cost.

**What happens when a request fails?**

Each request is retried up to 4 times. If a request still fails, the run ends with status Failed and the RUN_SUMMARY record in the key-value store lists the failed URLs. Results saved before that stay in the dataset.

**Can I run it on a schedule?**

Yes. Create a task with your input and add a schedule in Apify Console. Each run is charged per result.

### Limits

- Only public TikTok videos. Private, removed, region-blocked and photo posts are skipped and not charged.
- Instagram and Facebook reel links are skipped; paste a direct media link instead.
- Whisper base makes more mistakes than larger models on names, heavy accents, music under speech and very short clips.
- Videos longer than the maximum minutes are cut at that point (truncated is true).
- TikTok can change its page at any time. The run then fails with a clear error and we fix it.

### Related Actors

- [YouTube Transcript Scraper](https://apify.com/lavidarossi.bv/youtube-transcript-scraper): transcripts of YouTube videos, channels and playlists.
- [TikTok Top Ads Scraper](https://apify.com/lavidarossi.bv/tiktok-top-ads-scraper): top ads from the TikTok Creative Center by country and industry.
- [TikTok Shop Scraper](https://apify.com/lavidarossi.bv/tiktok-shop-scraper): TikTok Shop products, prices and units sold.

### Data

- The Actor returns the video ID, the public handle and what is said in the video. It does not return names, bios, follower counts or any other profile data.
- Transcripts can contain what people say on camera. Use them in line with the GDPR and the platform's terms, for example for research, accessibility or analysis of public content.

# Actor input Schema

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

Public TikTok video links (tiktok.com/@user/video/123..., vm.tiktok.com/...) or direct links to a video or audio file (mp4, mov, webm, mp3, m4a, wav, ogg). One per line. Instagram and Facebook links are skipped: they do not show the video to logged-out visitors.

## `language` (type: `string`):

auto detects the language per video. Or give a two-letter code (en, nl, de, es, pt, ...) when you know it: detection on very short clips can pick a wrong language.

## `hookSeconds` (type: `integer`):

The hook field holds the words that start within this many seconds of the video.

## `maxDurationMinutes` (type: `integer`):

Longer videos are transcribed up to this point only (truncated is then true). Caps the cost per video.

## `includeSegments` (type: `boolean`):

Add the timestamped segments to each row. Turn off for smaller rows when you only need the text.

## `maxResults` (type: `integer`):

The run stops after this many transcripts. You pay per transcript.

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

Optional proxy. Leave off unless runs get blocked.

## Actor input object example

```json
{
  "videoUrls": [
    "https://www.tiktok.com/@nasa/video/7702504724049743117"
  ],
  "language": "auto",
  "hookSeconds": 3,
  "maxDurationMinutes": 10,
  "includeSegments": true,
  "maxResults": 10,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

One dataset item per result, with every field described in the dataset schema.

## `runSummary` (type: `string`):

Counts of results, finished, failed and skipped requests, and whether the charge limit was reached.

# 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/@nasa/video/7702504724049743117"
    ],
    "language": "auto",
    "hookSeconds": 3,
    "maxDurationMinutes": 10,
    "includeSegments": true,
    "maxResults": 10,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("lavidarossi.bv/short-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/@nasa/video/7702504724049743117"],
    "language": "auto",
    "hookSeconds": 3,
    "maxDurationMinutes": 10,
    "includeSegments": True,
    "maxResults": 10,
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("lavidarossi.bv/short-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/@nasa/video/7702504724049743117"
  ],
  "language": "auto",
  "hookSeconds": 3,
  "maxDurationMinutes": 10,
  "includeSegments": true,
  "maxResults": 10,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call lavidarossi.bv/short-video-transcript --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,lavidarossi.bv/short-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/d3xavjAhh2N2P8lLT/builds/s7h30goVb4L1k9UMo/openapi.json
