# YouTube Transcript Scraper (`muhammad_noman_riaz/youtube-video-transcript-super-scraper`) Actor

Get timestamped transcripts from any YouTube video or Short, in the spoken language or auto-translated into any language, plus title, channel, views and likes. Pay only for videos that return a transcript.

- **URL**: https://apify.com/muhammad_noman_riaz/youtube-video-transcript-super-scraper.md
- **Developed by:** [Muhammad Noman Riaz](https://apify.com/muhammad_noman_riaz) (community)
- **Categories:** Videos, Developer tools, Lead generation
- **Features:** Limited permissions
- **Stats:** 25 total users, 2 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $1.00 / 1,000 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 Scraper

Get the full transcript of any YouTube video or Short, with timestamps, in the original language or translated into any language YouTube supports. Each result also includes the video's title, channel, views, likes, description, thumbnails and publish date.

**You only pay for videos that return a transcript.** Videos that are removed, private, have no captions, or fail after all retries are skipped and not charged. They are listed in `FAILED_VIDEOS` in the run's key-value store with the reason.

### What you can use it for

- Feed transcripts to ChatGPT, Claude or your own LLM for summaries, Q\&A and RAG
- Turn videos into blog posts, newsletters and social posts
- Research competitors, podcasts, lectures and interviews at scale
- Build subtitle, search or translation datasets

### Features

- **Any URL format:** `watch?v=`, `youtu.be`, `/shorts/`, `/embed/`
- **Language choice:** pick a language and get the human-made track if one exists, otherwise the auto-generated one
- **Auto-translation:** if the language you pick has no track, YouTube translates the video's captions for you (`isTranslated: true`)
- **Spoken language by default:** with `default`, you get the transcript in the language actually spoken in the video
- **Timestamped and plain text:** every segment has `startMs`, `endMs` and `startTimeText`, plus one `transcript_only_text` string ready for an LLM
- **Retries with fresh residential IPs** when YouTube rate-limits or asks for a bot check
- **Lean output:** the raw player response is off by default, so datasets stay small and fast to download

### Input

```json
{
  "startUrls": [
    { "url": "https://www.youtube.com/watch?v=qp0HIF3SfI4" },
    { "url": "https://www.youtube.com/shorts/tPEE9ZwTmy0" }
  ],
  "language": "default",
  "includeTranscript": true,
  "includeFullPlayerResponse": false,
  "maxConcurrency": 10,
  "maxRequestRetries": 10,
  "proxy": { "useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"] }
}
```

| Field | What it does |
|---|---|
| `startUrls` | YouTube video or Shorts URLs |
| `language` | `default` for the spoken language, or a code such as `en`, `es`, `zh-Hans` |
| `includeTranscript` | Turn off to get metadata only |
| `includeFullPlayerResponse` | Adds YouTube's raw player response. Large, off by default |
| `maxConcurrency` | Videos processed at the same time |
| `maxRequestRetries` | Attempts per video before it is skipped |
| `proxy` | Residential proxies are strongly recommended |

### Output

```json
{
  "transcript": [
    { "text": "How do you explain when things don't go as we assume?", "startMs": 7490, "endMs": 10690, "startTimeText": "0:07" }
  ],
  "transcript_only_text": "How do you explain when things don't go as we assume? ...",
  "transcriptLanguage": "en",
  "isAutoGenerated": false,
  "isTranslated": false,
  "videoId": "qp0HIF3SfI4",
  "title": { "simpleText": "How Great Leaders Inspire Action | Simon Sinek | TED" },
  "author": "TED",
  "channelId": "UCAuUUnT6oDeKwE6v1NGQxug",
  "lengthSeconds": "1115",
  "viewCount": "21503849",
  "likeCount": "512000",
  "publishDate": "2010-05-04",
  "category": "Education",
  "shortDescription": "Visit http://TED.com to get our entire library of TED Talks...",
  "thumbnail": { "thumbnails": [{ "url": "https://i.ytimg.com/vi/qp0HIF3SfI4/hqdefault.jpg", "width": 168, "height": 94 }] },
  "isShortsEligible": false,
  "isLiveContent": false
}
```

Also included: `canonicalUrl`, `ownerChannelName`, `ownerProfileUrl`, `uploadDate`, `isFamilySafe`, `isUnlisted`, `embed`, `captions` (all available caption tracks) and other flags from YouTube.

### FAQ

**A video was skipped. Was I charged?** No. Only results written to the dataset are charged. Check `FAILED_VIDEOS` for the reason.

**The video has no captions at all.** It is skipped. YouTube has no transcript to return.

**Can I use it from an AI agent?** Yes. It works through the Apify MCP server, and `transcript_only_text` is ready to pass to a model.

### More scrapers by the same developer

- [YouTube Super Scraper](https://apify.com/muhammad_noman_riaz/youtube-super-scraper)
- [YouTube Comments Super Scraper](https://apify.com/muhammad_noman_riaz/youtube-comments-super-scraper)
- [TikTok Videos Super Scraper](https://apify.com/muhammad_noman_riaz/tiktok-videos-super-scraper)

Questions or a broken video? Open an issue on the actor's Issues tab and it will be looked at quickly.

# Actor input Schema

## `startUrls` (type: `array`):

List of YouTube video URLs to scrape details from. Supports regular videos, Shorts, and various URL formats.

## `includeTranscript` (type: `boolean`):

Whether to include the video transcript in the output. The transcript will be available as both structured data (with timestamps) and plain text.

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

Select the language for the transcript. 'default' will use auto-generated or first available language. If the selected language is not available, will fall back to the default.

## `includeFullPlayerResponse` (type: `boolean`):

Adds the raw YouTube player response (formats, streaming data, tracking) to each result. Large; leave off unless you need it.

## `maxConcurrency` (type: `integer`):

Maximum number of videos that can be processed at the same time.

## `maxRequestRetries` (type: `integer`):

Number of times the scraper will retry a failed request before giving up.

## `proxy` (type: `object`):

Specifies proxy servers that will be used by the scraper. Residential proxies are REQUIRED for YouTube to avoid bot detection.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://youtu.be/qp0HIF3SfI4?si=zzJIfq50xOZzZgPF"
    }
  ],
  "includeTranscript": true,
  "language": "default",
  "includeFullPlayerResponse": false,
  "maxConcurrency": 10,
  "maxRequestRetries": 10,
  "proxy": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "CA"
  }
}
```

# Actor output Schema

## `videoDetails` (type: `string`):

Complete dataset containing all scraped YouTube video details including metadata, player response, microformat, and transcripts

# 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 = {
    "startUrls": [
        {
            "url": "https://youtu.be/qp0HIF3SfI4?si=zzJIfq50xOZzZgPF"
        }
    ],
    "proxy": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "CA"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("muhammad_noman_riaz/youtube-video-transcript-super-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 = {
    "startUrls": [{ "url": "https://youtu.be/qp0HIF3SfI4?si=zzJIfq50xOZzZgPF" }],
    "proxy": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "CA",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("muhammad_noman_riaz/youtube-video-transcript-super-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 '{
  "startUrls": [
    {
      "url": "https://youtu.be/qp0HIF3SfI4?si=zzJIfq50xOZzZgPF"
    }
  ],
  "proxy": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "CA"
  }
}' |
apify call muhammad_noman_riaz/youtube-video-transcript-super-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,muhammad_noman_riaz/youtube-video-transcript-super-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/8WkP8A1qM6J595Lw4/builds/zUPblpENwnYALf35D/openapi.json
