# YouTube Transcript: YouTube Videos and Shorts to Text

**Use case:** 

Get the transcript of any public YouTube video or Short. YouTube's own captions are used when they exist, and Whisper AI when they don't, so videos without subtitles work too. Full text, timestamps, optional SRT/VTT subtitles and video details as JSON, CSV or Excel. From $0.02 per video.

## Input

```json
{
  "urls": [
    "https://www.youtube.com/watch?v=jNQXAC9IVRw"
  ],
  "maxVideosPerUrl": 1,
  "publishedAfter": "",
  "extractOnScreenText": false,
  "aiAnalysis": false,
  "translateTo": "none",
  "language": "auto",
  "preferPlatformCaptions": true,
  "includeSegments": true,
  "subtitleFormat": "none",
  "maxDurationMinutes": 120,
  "maxConcurrency": 4,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

## Output

```json
{
  "status": {
    "label": "Status",
    "format": "text"
  },
  "url": {
    "label": "Video",
    "format": "link"
  },
  "platform": {
    "label": "Platform",
    "format": "text"
  },
  "author": {
    "label": "Author",
    "format": "text"
  },
  "durationSec": {
    "label": "Duration (s)",
    "format": "number"
  },
  "language": {
    "label": "Language",
    "format": "text"
  },
  "transcriptSource": {
    "label": "Source",
    "format": "text"
  },
  "wordCount": {
    "label": "Words",
    "format": "number"
  },
  "text": {
    "label": "Transcript",
    "format": "text"
  },
  "onScreenText": {
    "label": "On-screen text",
    "format": "array"
  },
  "translatedText": {
    "label": "Translation",
    "format": "text"
  },
  "errorCode": {
    "label": "Error code",
    "format": "text"
  },
  "error": {
    "label": "Error",
    "format": "text"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Social Media Video to Text: TikTok, Instagram, X Transcripts Actor is ready to run with the inputs already set for "YouTube Transcript: YouTube Videos and Shorts to Text". [Sign up or log in](https://console.apify.com/create-task-from-example/Kvem88yb55CfVldsT) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "YouTube Transcript: YouTube Videos and Shorts to Text" task

The Social Media Video to Text: TikTok, Instagram, X Transcripts Actor will start running based on the input automatically. You can also change all the input fields, like video urls, max videos per url, and more, to match your specific use case.

### 3. Receive the "YouTube Transcript: YouTube Videos and Shorts to Text" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as status, video, platform, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "YouTube Transcript: YouTube Videos and Shorts to Text" task via API](https://apify.com/aemon/video-to-text-for-ai.md).

## FAQ

### Does it work for YouTube videos without subtitles?

Yes. If the video has no captions in the spoken language, the audio is transcribed with Whisper large-v3-turbo.

### Can I transcribe a whole channel or playlist?

Yes. Paste the channel or playlist link and set Max videos per URL to the number of newest videos you want.

### Why is YouTube more expensive than other platforms?

YouTube can only be accessed through premium residential proxies. A video costs $0.02 up to 2 minutes; AI transcription adds $0.003 per extra minute.

### Can I get SRT subtitles?

Yes. Set Subtitle file format to SRT or WebVTT and each row also contains a ready-to-use subtitle file.

### What happens if a video is private or removed?

It is returned as a row with "status": "error", an error code such as PRIVATE or UNAVAILABLE and a readable message. Failed, private and removed videos are never charged.

### Can I run this on a schedule or from code?

Yes. Save the task and add a Schedule, or call it through the Apify API, the JavaScript or Python client, the Apify MCP server, Make, Zapier or n8n.

## About this Actor

This example demonstrates how to use [Social Media Video to Text: TikTok, Instagram, X Transcripts](https://apify.com/aemon/video-to-text-for-ai.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/aemon/video-to-text-for-ai.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/aemon/video-to-text-for-ai.md

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`).
