# TikTok Transcript Scraper API + AI Hook & Script Analyzer (`hayleai/tiktok-transcript`) Actor

TikTok transcript scraper: any video to text with Whisper, even without captions. Links or @usernames in; transcript, 3-second hook, SRT/VTT, views and shares out. Optional AI hook score, beats, CTA and rewrites, on-screen text, and new-videos-only watchlists. No login.

- **URL**: https://apify.com/hayleai/tiktok-transcript.md
- **Developed by:** [Jamie Hayle](https://apify.com/hayleai) (community)
- **Categories:** Social media, AI, Videos
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $8.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 Scraper API + AI Hook & Script Analyzer

Turn any public TikTok into text. Paste video links, profile links or @usernames and get the **full transcript** of every video, the **hook** (the words spoken in the first 3 seconds), timestamps and SRT/VTT subtitles, next to its views, likes, comments, shares and saves.

Transcription runs on **Whisper large-v3-turbo on a dedicated GPU**, so it works even on videos with no TikTok captions. No TikTok login, no cookies, no API key.

Then go further than a transcript:

- 🎯 **AI hook analysis** for every video: hook type, a 1-10 hook score, the script's beats, the call to action, why it works and 3 ideas for a stronger version.
- 📊 **Profile strategy report**: content pillars, the hook patterns behind a creator's top videos, content gaps and 5 new video ideas with hook lines.
- 🖼️ **On-screen text**: music-only videos with text on screen? Switch it on and the text in the video becomes the transcript.
- 🔁 **Watchlist mode**: put it on a schedule and only pay for videos posted since the last run.

### What does it cost?

You pay per video that comes back with a transcript. Videos without speech, photo slideshows, private or deleted videos and anything that fails are free.

| Event | Price |
|---|---|
| Video transcript (first 3 minutes included) | **$0.008** |
| Each started minute after the first 3 | $0.004 |
| AI hook and script analysis, per video (optional) | $0.02 |
| Profile strategy report, per profile (optional) | $0.10 |

**Your full cost per video**, including the video collection step on Apify's Free plan:

| What you run | Cost per video |
|---|---|
| Transcript only, from links or @usernames | about **$0.013** ($0.008 here + $0.005 for TikTok Scraper with video download) |
| Transcript + AI hook analysis | about **$0.033** |
| Transcript from direct video links | **$0.008** (no scraper needed) |

The collection step uses [TikTok Scraper](https://apify.com/clockworks/tiktok-scraper) with its video download option. It runs in your account and shows as its own line on your Apify bill, with a $0.001 start fee per run. The date filter adds a small fee there. Higher Apify plans pay less for it.

For comparison, TikTok Scraper's own transcript add-on is $0.048 per started minute on the Free plan. A 45-second video costs about 4x more there than here, without hook analysis.

**1,000 videos**: about $13 for transcripts, or about $33 with AI hook analysis.

**Free plan**: runs on Apify's Free plan are limited to 20 videos each, so you can try it on Apify's free monthly credit. Any paid Apify plan removes the limit.

### How to use it

1. Paste **video links**, **profile links** or **@usernames**.
2. For profiles, choose how many videos and whether you want the **latest** or the **most popular** ones.
3. Leave **AI hook analysis** on, or switch it off for transcripts only.
4. Click **Start**. Download the results as JSON, CSV or Excel, or read them through the API.

Tip: set **Which profile videos** to **Most popular** to study what already works for a creator.

### What you get for each video

- **Full transcript** as plain text, plus `textSource` (`speech` or `on_screen`)
- **Hook**: the words spoken in the first 3 seconds
- **Timestamped segments**, plus optional **SRT and VTT** subtitles
- **Detected language** (99 languages) and optional **translation to English**
- **Video details**: link, creator, followers, caption, hashtags, sound, post date, length, views, likes, comments, shares and saves

### AI hook and script analysis

| Field | What it holds |
|---|---|
| `hookType` | the kind of opening, such as question, statistic or curiosity gap |
| `hookStrength` | 1-10 for how well the opening stops the scroll |
| `topic` | what the video is about |
| `beats` | the script's steps in order |
| `callToAction` | what the viewer is asked to do |
| `whyItWorks` | one or two sentences |
| `rewriteIdeas` | 3 concrete ideas for a stronger version |
| `keywords` | search terms for the video |

**Profile strategy report.** For each profile with at least 3 analyzed videos you also get one row with `status: profile_report`, saved in the key-value store as `PROFILE_REPORTS` too: content pillars, winning hook patterns, what top videos do that weak ones don't, content gaps and 5 new video ideas with hook lines.

The analysis runs on a 27B open model on the same dedicated GPU. Your transcripts are not sent to a third-party AI service.

### Track creators on a schedule (watchlist)

Switch on **Only new videos (watchlist)** and create a schedule in Apify Console (**Schedules** > **Create**), for example every morning. Each run skips every video this Actor already transcribed for you, so you only pay for new posts. Use a different **Watchlist name** per client or project.

```json
{
  "urls": ["@khaby.lame", "https://www.tiktok.com/@tiktok"],
  "maxVideosPerProfile": 10,
  "newVideosOnly": true,
  "watchlistName": "competitors"
}
```

### Music-only videos (on-screen text)

Many TikToks have no voiceover, only music and text on screen. Switch on **Read on-screen text when nobody speaks** and the text shown in the video is read from its frames and delivered as the transcript, with `textSource: on_screen`. Such a video is charged as one video transcript, the same price as a spoken one. With the option off (default), videos without speech stay free.

### Input

| Field | What it does |
|---|---|
| `urls` | Video links, short links, profile links or usernames (`@khaby.lame`) |
| `maxVideosPerProfile` | Videos to take per profile (default 10) |
| `profileSorting` | `latest`, `popular` or `oldest` (default `latest`) |
| `onlyVideosNewerThan` | A date (`2026-10-01`) or a number of days (`7`) |
| `excludePinnedVideos` | Leave out pinned videos (default off) |
| `datasetId` | A dataset from TikTok Scraper |
| `videoUrls` | Direct video or audio links |
| `analyzeScripts` | AI hook and script analysis per video (default on) |
| `profileReport` | Strategy report per profile (default on) |
| `includeOnScreenText` | Read on-screen text when nobody speaks (default off) |
| `newVideosOnly` | Skip videos transcribed in earlier runs (default off) |
| `watchlistName` | Name of the watchlist (default `default`) |
| `maxItems` | Stop after this many videos in total (default 200) |
| `maxMinutesPerVideo` | Skip videos longer than this (default 15) |
| `language` | Two-letter code such as `en`. Empty means detect per video |
| `translateToEnglish` | Output English for videos in other languages |
| `includeSegments` | Add timestamped segments (default on) |
| `includeSubtitles` | Add SRT and VTT text (default off) |

### Output

One dataset row per video:

```json
{
  "videoUrl": "https://www.tiktok.com/@tiktok/video/7708408003065580831",
  "authorUsername": "tiktok",
  "status": "ok",
  "textSource": "speech",
  "language": "en",
  "durationSeconds": 79,
  "playCount": 379100,
  "likeCount": 3992,
  "commentCount": 1429,
  "shareCount": 425,
  "saveCount": 524,
  "hook": "You know their game. But are they ready for your comments?",
  "hookType": "question",
  "hookStrength": 7,
  "text": "...",
  "segments": [{ "start": 0.0, "end": 3.1, "text": "..." }]
}
```

`status` is one of:

- `ok`: transcript delivered (charged)
- `no_speech`: no spoken words, and no on-screen text read (free)
- `skipped`: slideshow, private, deleted, or longer than your limit (free)
- `error`: the video could not be downloaded or transcribed (free)

### Use it from the API, Make, n8n or an AI agent

Run it and get the rows back in one call:

```bash
curl -X POST "https://api.apify.com/v2/acts/hayleai~tiktok-transcript/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"urls": ["@khaby.lame"], "maxVideosPerProfile": 5, "profileSorting": "popular"}'
```

It also works in Make, n8n and Zapier through the Apify integrations, and from Claude, ChatGPT, Cursor and other MCP clients through the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp).

### What people use it for

- **Competitor research**: what top creators in your niche say, and how they open
- **Hook swipe files**: hundreds of first-3-second hooks, scored, in one spreadsheet
- **Content ideas**: profile reports with gaps and 5 new video ideas per creator
- **Repurposing**: turn your own TikToks into captions, posts, blogs and newsletters
- **AI workflows**: feed transcripts to an LLM, a RAG pipeline or an agent
- **Subtitles**: export SRT or VTT for editing

### FAQ

**Does it need TikTok captions?** No. Every video is transcribed from its audio with Whisper, so videos without captions work too.

**Do I need a TikTok login or cookies?** No. Only public videos are processed. Nothing is posted, liked or followed.

**What about videos with only music?** Free by default. Switch on on-screen text to get the text shown in the video.

**Which languages?** 99, detected automatically per video. Set `language` if you know it.

**Is my data stored?** Audio is deleted from the transcription server after processing. Results live only in your Apify account.

**Something failed?** Open an issue on the Issues tab with the run ID and it will be looked at quickly.

### Related Actors

- [Instagram Reels Transcript Scraper + AI Hook Analyzer](https://apify.com/hayleai/instagram-reels-transcript)
- [Facebook Reels Transcript Scraper + AI Hook Analyzer](https://apify.com/hayleai/facebook-reels-transcript)
- [Audio & Video to Text (Whisper)](https://apify.com/hayleai/fast-whisper-transcriber): any media link up to 4 hours, $0.006 per minute

Only use this Actor on public content, and follow TikTok's terms and the laws that apply to you.

# Actor input Schema

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

Video links (https://www.tiktok.com/@khaby.lame/video/7313...), short links (vm.tiktok.com/...), profile links (https://www.tiktok.com/@khaby.lame) or usernames (@khaby.lame). Public content only, no login. Videos are collected with TikTok Scraper and its video download option in your account: about $0.005 per video on the Free plan (less on paid plans), shown as its own line on your Apify bill. All-in that is about $0.013 per transcribed video.

## `maxVideosPerProfile` (type: `integer`):

How many videos to take from each profile.

## `profileSorting` (type: `string`):

Latest takes the newest videos. Most popular takes a profile's top videos, which is what you want for studying what works.

## `onlyVideosNewerThan` (type: `string`):

A date (2026-10-01) or a number of days (7). Works with Latest and Oldest. TikTok Scraper charges a small extra fee for this filter. Leave empty for no date filter.

## `excludePinnedVideos` (type: `boolean`):

Leave out the videos a creator pinned to the top of their profile.

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

Already scraped the videos? Pick the dataset from TikTok Scraper and every video in it is transcribed. Videos scraped without the video download option are fetched again.

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

Direct links to video or audio files that anyone can download, for example files you host yourself.

## `analyzeScripts` (type: `boolean`):

Adds a strategist's breakdown to every transcribed video: hook type and a 1-10 hook score, the script's beats in order, the call to action, why it works, 3 ideas for a stronger version and search keywords. Charged per analyzed video (see Pricing). Turn off for transcripts only.

## `profileReport` (type: `boolean`):

For each profile with at least 3 analyzed videos, writes one report: content pillars, winning hook patterns, what top videos do that weak ones don't, content gaps and 5 new video ideas with hooks. Saved as a row with status profile_report and in the key-value store as PROFILE_REPORTS. Charged once per profile (see Pricing). Needs AI script analysis.

## `includeOnScreenText` (type: `boolean`):

Many TikTok videos are music with captions on screen. Switch this on and the text shown in the video is read from its frames and delivered as the transcript (textSource: on_screen). Such a video is charged as one video transcript, the same price as a spoken one. Off (default): videos without speech stay free.

## `newVideosOnly` (type: `boolean`):

Remembers every video this Actor already transcribed and skips it on later runs. Put this Actor on a daily or weekly schedule to track creators: you only pay for videos posted since the last run. Skipped videos are never charged.

## `watchlistName` (type: `string`):

Keep separate lists with different names, for example one per client. Saved in your own account, in the key-value store hayleai-tiktok-watchlist.

## `maxItems` (type: `integer`):

Stop after this many videos across all inputs. Use it to cap what one run can cost.

## `maxMinutesPerVideo` (type: `integer`):

Videos longer than this are returned as skipped rows and are not charged.

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

Two-letter language code such as en, es, de. Leave empty to detect it automatically for each video.

## `translateToEnglish` (type: `boolean`):

Output English text for videos spoken in another language.

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

Adds a list of segments with start and end times to each row.

## `includeSubtitles` (type: `boolean`):

Adds ready-to-use SRT and VTT subtitle text to each row.

## Actor input object example

```json
{
  "urls": [
    "https://www.tiktok.com/@tiktok"
  ],
  "maxVideosPerProfile": 10,
  "profileSorting": "latest",
  "excludePinnedVideos": false,
  "analyzeScripts": true,
  "profileReport": true,
  "includeOnScreenText": false,
  "newVideosOnly": false,
  "watchlistName": "default",
  "maxItems": 200,
  "maxMinutesPerVideo": 15,
  "translateToEnglish": false,
  "includeSegments": true,
  "includeSubtitles": false
}
```

# Actor output Schema

## `transcripts` (type: `string`):

One row per video: transcript, opening hook, language, timestamps and video stats.

## `profileReports` (type: `string`):

One report per profile: content pillars, winning hook patterns, gaps and new video ideas.

# 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 = {
    "urls": [
        "https://www.tiktok.com/@tiktok"
    ]
};

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

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,hayleai/tiktok-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/pyoCSEPgCKgZa1evk/builds/wyglnHarccaV95cqB/openapi.json
