# YouTube Transcript Scraper: Subtitles & Comments | $2/1K (`kaitoeasyapi/youtube-transcript-comments-ai-scraper`) Actor

YouTube Transcript Scraper & Subtitles API ($2.00/1K): extract timestamped YouTube video transcripts, plain-text subtitles for LLM/RAG pipelines, metadata & top comments without API keys or proxies.

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

## Pricing

from $2.00 / 1,000 youtube transcript or comment results

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

## YouTube Transcript, Subtitles & Comments Scraper (Timestamped Captions for AI / LLM / RAG)

> **Related YouTube Video, Transcript & Creator Scrapers on Apify Store**
>
> | Actor on Apify Store | Primary Use Case |
> | :--- | :--- |
> | [**YouTube Search & Shorts**](https://apify.com/kaitoeasyapi/youtube-search-videos-shorts-scraper) | Search long-form videos & Shorts with view/like stats |
> | [**YouTube Channel Videos**](https://apify.com/kaitoeasyapi/youtube-channel-videos-scraper) | Full channel uploads, subscriber stats & metadata |
> | [**YouTube Transcripts & Subtitles**](https://apify.com/kaitoeasyapi/youtube-transcript-subtitles-scraper) | Clean timestamped captions for LLM & content pipelines |
> | [**YouTube Comments & Replies**](https://apify.com/kaitoeasyapi/youtube-video-comments-replies-scraper) | Viewer sentiment, top comments & creator hearts |
> | [**YouTube Shorts & Hashtags**](https://apify.com/kaitoeasyapi/youtube-shorts-trending-hashtag-scraper) | Viral Shorts discovery by hashtag & topic |

Extract **timestamped YouTube transcripts**, **clean full-text subtitles**, **auto-generated speech-to-text captions**, **video metadata**, **YouTube Shorts transcripts**, and **viewer comments** in bulk — with **zero YouTube Data API v3 quota limits, zero cookies, and zero proxy configuration**.

Purpose-built for AI engineers, data teams, and no-code builders (n8n, Make, Zapier, LangChain, LlamaIndex) who need reliable JSON subtitles when `yt-dlp` or `youtube-transcript-api` hits datacenter IP blocks (`HTTP 429` / `"Sign in to confirm you're not a bot"`).

***

### Why Developers Choose This YouTube Transcript Scraper

- **AI-Ready Dual Transcript Output (`mode: "transcript"`)**:
  - `fullTranscriptText`: Normalized, single-string plain text ready for instant LLM summarization, meeting/podcast notes, or vector embeddings.
  - `segments[]`: Millisecond-accurate subtitle cues (`startMs`, `endMs`, `startTime`, `text`) for RAG timestamp citations, chapter generation, and clip indexing.
- **Complete Video Metadata Included at $0 Extra Cost**: Every transcript record includes `title`, `channelTitle`, `channelId`, `lengthSeconds`, `viewCount`, `publishDate`, and `language`.
- **Works Across Videos, Shorts & Auto-Captions**: Accepts `youtube.com/watch?v=...`, `youtu.be/...`, `youtube.com/shorts/...`, embed URLs, or raw 11-character video IDs.
- **Viewer Comments Mode (`mode: "comments"`)**: Switch `mode` to `"comments"` to extract viewer feedback (`commentId`, `author`, `authorChannelId`, `text`, `likesCount`, `replyCount`, `publishedAt`).
- **Transparent Pay-Per-Result Pricing**: Pay only **$0.002 per video transcript** ($2.00 / 1,000 results on Gold+ plans; $2.50 / 1,000 on Free tier) — 60%–80% cheaper than legacy per-transcript scrapers.

***

### Quick-Start Input Examples

#### 1. Bulk YouTube Transcript Extraction for LLM Summarization & RAG

```json
{
  "mode": "transcript",
  "videoUrlsOrIds": [
    "https://www.youtube.com/watch?v=Pksr9T8m_aA",
    "https://youtu.be/dQw4w9WgXcQ",
    "https://www.youtube.com/shorts/5qap5aO4i9A"
  ]
}
```

#### 2. YouTube Video Comments Extraction for Audience Research

```json
{
  "mode": "comments",
  "videoUrlsOrIds": [
    "https://www.youtube.com/watch?v=Pksr9T8m_aA"
  ],
  "maxCommentsPerVideo": 100
}
```

***

### Input Parameters

| Field | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `mode` | `string` | `"transcript"` | `"transcript"` for full plain-text + timestamped subtitles & metadata; `"comments"` for video comments. |
| `videoUrlsOrIds` | `string[]` | `["https://www.youtube.com/watch?v=Pksr9T8m_aA"]` | List of YouTube video URLs, Shorts URLs, `youtu.be` links, or 11-character video IDs. |
| `maxCommentsPerVideo` | `integer` | `20` | Maximum comments per video (`1`–`1000`) when `mode` is `"comments"`. |

***

### Output Sample

#### Transcript Mode (`mode: "transcript"`)

```json
{
  "videoId": "Pksr9T8m_aA",
  "url": "https://www.youtube.com/watch?v=Pksr9T8m_aA",
  "title": "JISOO - ADDICTED (Official MV)",
  "channelTitle": "JISOO",
  "channelId": "UC...",
  "lengthSeconds": 189,
  "viewCount": 14820910,
  "publishDate": "2026-02-14",
  "language": "English",
  "hasTranscript": true,
  "fullTranscriptText": "Yeah I think I'm addicted to the rush...",
  "segmentsCount": 55,
  "segments": [
    {
      "startMs": 1240,
      "endMs": 4180,
      "startTime": "0:01",
      "text": "Yeah I think I'm addicted to the rush"
    }
  ]
}
```

#### Comments Mode (`mode: "comments"`)

```json
{
  "videoId": "Pksr9T8m_aA",
  "commentId": "UgzX9...",
  "author": "@musicfan",
  "authorChannelId": "UC...",
  "text": "The production quality on this track is incredible!",
  "likesCount": 342,
  "replyCount": 14,
  "publishedAt": "2 days ago"
}
```

***

### Frequently Asked Questions

#### Does this require a YouTube Data API v3 key, OAuth cookies, or residential proxies?

No. Everything runs out of the box with zero API keys, cookies, or proxy setup.

#### Does it extract both manual subtitles and auto-generated captions?

Yes. Both creator-uploaded subtitles and YouTube's automatic speech recognition (ASR) captions are extracted across long-form videos, podcasts, livestreams, and YouTube Shorts.

#### What happens if a video has no spoken words or captions disabled?

## The item returns `hasTranscript: false`, `segmentsCount: 0`, and `segments: []` while preserving video metadata (`title`, `channelTitle`, `viewCount`, `lengthSeconds`).

### 🔗 Related Scrapers by KaitoEasyApi

| Actor | Price (Gold – Free) | Best For |
| :--- | :--- | :--- |
| [**YouTube Scraper: Video & Shorts Search**](https://apify.com/kaitoeasyapi/youtube-search-videos-shorts-scraper) | **$1.00 – $1.50 / 1K** | Keyword video & Shorts search with zero YouTube API quota limits |
| [**YouTube Channel Scraper: All Videos & Shorts**](https://apify.com/kaitoeasyapi/youtube-channel-videos-scraper) | **$1.00 – $1.50 / 1K** | Bulk extract every video & Short from any @channel or UC ID |
| [**Tweet Scraper (X / Twitter)**](https://apify.com/kaitoeasyapi/twitter-x-data-tweet-scraper-pay-per-result-cheapest) | **$0.18 – $0.25 / 1K** | Trusted by 41,000+ developers · High-speed tweets & search |
| [**TikTok Scraper: Profiles, Posts & Videos**](https://apify.com/kaitoeasyapi/tiktok-profile-posts-scraper) | **$0.18 – $0.25 / 1K** | Creator profiles, follower stats & HD no-watermark MP4s |
| [**TikTok Search Scraper (Date & Country)**](https://apify.com/kaitoeasyapi/tiktok-search-scraper) | **$0.18 – $0.25 / 1K** | Keyword video search with Date, Most Liked & Region filters |
| [**TikTok Comments & Replies Scraper**](https://apify.com/kaitoeasyapi/tiktok-comments-scraper) | **$0.15 – $0.20 / 1K** | Bulk video comments, nested reply threads & commenter bios |
| [**TikTok Followers & Following Scraper**](https://apify.com/kaitoeasyapi/tiktok-followers-following-scraper) | **$0.15 – $0.20 / 1K** | Account follower & following lists (up to 200 users/page) |
| [**TikTok User Search & Influencer Finder**](https://apify.com/kaitoeasyapi/tiktok-user-search-scraper) | **$0.18 – $0.25 / 1K** | Find creators by niche keyword, Follower tier & Verified badge |
| [**TikTok Ads Library Scraper (Creative Center)**](https://apify.com/kaitoeasyapi/tiktok-ads-library-scraper) | **$0.35 – $0.50 / 1K** | Top-performing ads with CTR, cost tier, landing URLs & 1080p MP4 |
| [**TikTok Video Downloader HD (No Watermark)**](https://apify.com/kaitoeasyapi/tiktok-video-downloader-hd) | **$0.20 – $0.30 / 1K** | Bulk 1080p MP4 download links, MP3 audio & slideshows |

# Actor input Schema

## `mode` (type: `string`):

Choose 'transcript' to extract full plain-text + timestamped subtitles and video metadata (ideal for AI summarization, LLM agents, and RAG chunking), or 'comments' to extract viewer comments.

## `videoUrlsOrIds` (type: `array`):

List of YouTube watch URLs, youtu.be links, YouTube Shorts URLs, or 11-character video IDs (e.g. 'https://www.youtube.com/watch?v=Pksr9T8m_aA' or 'Pksr9T8m_aA'). Supports batch extraction.

## `maxCommentsPerVideo` (type: `integer`):

Maximum number of comments to extract per video when Extraction Mode is set to 'comments'. Ignored in 'transcript' mode.

## `feedback` (type: `string`):

Have a feature request, edge-case input, or schema suggestion? Leave an optional note for the maintainers right here.

## Actor input object example

```json
{
  "mode": "transcript",
  "videoUrlsOrIds": [
    "https://www.youtube.com/watch?v=Pksr9T8m_aA"
  ],
  "maxCommentsPerVideo": 20
}
```

# Actor output Schema

## `dataset` (type: `string`):

Dataset containing extracted YouTube transcript or comment items.

# 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 = {
    "mode": "transcript",
    "videoUrlsOrIds": [
        "https://www.youtube.com/watch?v=Pksr9T8m_aA"
    ],
    "maxCommentsPerVideo": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("kaitoeasyapi/youtube-transcript-comments-ai-scraper").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 = {
    "mode": "transcript",
    "videoUrlsOrIds": ["https://www.youtube.com/watch?v=Pksr9T8m_aA"],
    "maxCommentsPerVideo": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("kaitoeasyapi/youtube-transcript-comments-ai-scraper").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 '{
  "mode": "transcript",
  "videoUrlsOrIds": [
    "https://www.youtube.com/watch?v=Pksr9T8m_aA"
  ],
  "maxCommentsPerVideo": 20
}' |
apify call kaitoeasyapi/youtube-transcript-comments-ai-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,kaitoeasyapi/youtube-transcript-comments-ai-scraper"
        }
    }
}
```

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/Ix44X37nKm6xUJvYl/builds/u0DhgF0TGehrE2r3f/openapi.json
