# YouTube Shorts & Video Transcript, Subtitles & Hook \[$0.50/1K] (`appropriate_ideal_ksi/youtube-shorts-transcript-subtitles-pro`) Actor

\[$0.50/1K] Ultra-fast, no-browser YouTube Shorts & Video Transcript, SRT Subtitles & 3s Viral Hook API. Extract clean text, timestamps, SRT, views, WPM & hooks by URL, @channel, or keyword in 256 MB RAM.

- **URL**: https://apify.com/appropriate_ideal_ksi/youtube-shorts-transcript-subtitles-pro.md
- **Developed by:** [PureHTTP Labs](https://apify.com/appropriate_ideal_ksi) (community)
- **Categories:** Videos, AI, Agents
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$0.50 / 1,000 extracted youtube video / shorts 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

## YouTube Shorts & Video Transcript, Subtitles & Viral Hook API (`$0.50 / 1K`)

Extract clean **YouTube Shorts & long-form Video transcripts**, **millisecond timestamps**, **SubRip (`.srt`) subtitle files**, and **3-second / 10-second viral hook openings** at **`$0.50 per 1,000 videos`** — running over pure HTTP/2 in **`256 MB` RAM** (`~0.25s` per video, zero headless browser, zero Whisper/LLM token cost, zero residential proxy required).

### Why AI Agents, `n8n`, `Clay`, & Content Teams Switch to This API

- **Built for Both Shorts (`/shorts/...`) & Full Videos (`/watch?v=...`)**: Pass individual URLs/IDs, paste up to `10,000` URLs in bulk, pass **`@creator` handles** to transcribe a creator's latest Shorts/videos automatically, or pass **search keywords** (`shortsOnly: true/false`).
- **3-Second & 10-Second Viral Hook Breakdown**: Every record includes `hook_first_3s`, `hook_first_10s`, `word_count`, and `words_per_minute` (`WPM`) so AI scriptwriters, LLM RAG pipelines, and viral content researchers can analyze retention hooks immediately.
- **Multi-Language + Instant Auto-Translation (`tlang`)**: Prioritizes manual human captions in your `preferredLanguage` before auto-generated ASR, lists all `available_languages`, and supports 100+ language auto-translation via `translateToLanguage`.
- **Zero-Waste Pre-Charge Filter (`onlyWithTranscript: true`)**: Videos with disabled captions are skipped free of charge (`$0.0005` per qualified transcript).

### Quickstart Input (`n8n` / `Clay` / REST API / MCP)

```json
{
  "videoUrls": [
    "https://www.youtube.com/watch?v=aircAruvnKk",
    "https://www.youtube.com/shorts/5qap5aO4i9A"
  ],
  "preferredLanguage": "en",
  "includeTimestamps": true,
  "includeSrt": true,
  "stripMusicTags": true
}
```

# Changelog

This Actor's version history is a separate document: https://apify.com/appropriate_ideal_ksi/youtube-shorts-transcript-subtitles-pro/changelog.md

# Actor input Schema

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

Direct YouTube Shorts URLs (youtube.com/shorts/...), watch URLs (youtube.com/watch?v=...), youtu.be links, or 11-character video IDs.

## `bulkUrlsText` (type: `string`):

Optional newline- or comma-separated YouTube/Shorts URLs or video IDs.

## `channelHandles` (type: `array`):

Extract transcripts from the newest Shorts or Videos of any YouTube creator (e.g. \['@nateherk', '@veritasium']).

## `searchQueries` (type: `array`):

Discover videos or Shorts matching search keywords and extract their transcripts.

## `shortsOnly` (type: `boolean`):

When using channelHandles or searchQueries, restrict discovery to YouTube Shorts (<= 60 seconds).

## `preferredLanguage` (type: `string`):

Preferred transcript language code (e.g. 'en', 'es', 'de', 'fr', 'pt', 'hi', 'ja'). Falls back to first available track if missing.

## `translateToLanguage` (type: `string`):

Optional target ISO language code (e.g. 'en') using YouTube's built-in caption translation (`tlang`).

## `includeTimestamps` (type: `boolean`):

Include structured `segments` array (`start_ms`, `duration_ms`, `text`).

## `includeSrt` (type: `boolean`):

Generate formatted SubRip (`.srt`) subtitle output in `srt_subtitles`.

## `stripMusicTags` (type: `boolean`):

Clean `[Music]`, `[Applause]`, and `♪` markers out of `transcript_text` and `hook_first_3s`.

## `onlyWithTranscript` (type: `boolean`):

Skip and never charge for videos that have captions disabled.

## `maxVideosPerSource` (type: `integer`):

Maximum videos/Shorts to collect per channel handle or search keyword.

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

Maximum total video transcripts to output in this run (up to 10,000).

## `onlyNewVideos` (type: `boolean`):

Skip video IDs already processed in prior scheduled runs via a named Key-Value Store.

## `monitorStoreName` (type: `string`):

Named Apify Key-Value Store used when onlyNewVideos is enabled.

## `concurrency` (type: `integer`):

Parallel HTTP/2 Innertube workers (auto-tuned safely for 256 MB RAM).

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

Tries $0 direct HTTP/2 first and automatically falls back to Residential Proxy only when YouTube challenges shared cloud IPs.

## Actor input object example

```json
{
  "videoUrls": [
    "https://www.youtube.com/shorts/H1rbG6TGfO0",
    "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
  ],
  "channelHandles": [],
  "searchQueries": [],
  "shortsOnly": false,
  "preferredLanguage": "en",
  "includeTimestamps": true,
  "includeSrt": false,
  "stripMusicTags": true,
  "onlyWithTranscript": true,
  "maxVideosPerSource": 15,
  "maxResults": 25,
  "onlyNewVideos": false,
  "monitorStoreName": "youtube-transcripts-seen-ids",
  "concurrency": 6,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

# 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.youtube.com/shorts/H1rbG6TGfO0",
        "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("appropriate_ideal_ksi/youtube-shorts-transcript-subtitles-pro").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.youtube.com/shorts/H1rbG6TGfO0",
        "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
    ],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("appropriate_ideal_ksi/youtube-shorts-transcript-subtitles-pro").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.youtube.com/shorts/H1rbG6TGfO0",
    "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call appropriate_ideal_ksi/youtube-shorts-transcript-subtitles-pro --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,appropriate_ideal_ksi/youtube-shorts-transcript-subtitles-pro"
        }
    }
}
```

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/mbtFq7YWLJm1Td308/builds/92KBbGkFjN2nM66D2/openapi.json
