---
slug: youtube-video-transcript-api
category: "Data & Scraping"
title: "How to Get a YouTube Video Transcript via API & MCP for AI Agents"
url: https://duang.ai/guides/youtube-video-transcript-api
---

# How to Get a YouTube Video Transcript via API & MCP for AI Agents

Extract timestamped YouTube video transcripts, video metadata, channel uploads, and top comments via one normalized API or remote MCP—without downloading video files, managing yt-dlp cookies, or running speech-to-text pipelines.

> **Key takeaway:** Pull clean text transcripts directly per call instead of maintaining brittle yt-dlp containers and rotating residential proxies.

## Why scraping YouTube transcripts breaks in production

Local yt-dlp scripts work on a laptop and fail on cloud IPs. YouTube aggressively blocks datacenter addresses, rotates consent cookies, and rate-limits caption fetches—turning a simple transcript feature into proxy maintenance.

## Complete YouTube research pipeline in 3 capabilities

Rather than fetching a single transcript blindly, agents get far better results by chaining search, transcript extraction, and audience comments.

- Find high-signal videos with youtube.videos.search or pull a creator's catalog with youtube.channel.videos.
- Extract full spoken text via youtube.video.transcript for summarization, fact checking, or hook analysis.
- Read audience objections and questions using youtube.video.comments.

### Fetch a YouTube transcript via CLI

```bash
duang call youtube.video.transcript --input '{"url":"https://www.youtube.com/watch?v=dQw4w9WgXcQ"}'
```

## Exact per-call pricing with zero proxy subscriptions

Pay only for successful transcript calls from a single USD balance starting with $1 free credit. If an upstream fetch fails or a video has no accessible captions, upstream errors cost $0.

## Live Capabilities Mentioned

| Capability | Price | Page |
| :--- | :--- | :--- |
| `youtube.video.transcript` | from $0.00225/call | https://duang.ai/data/youtube/video-transcript |
| `youtube.videos.search` | from $0.00225/call | https://duang.ai/data/youtube/videos-search |
| `youtube.video.get` | from $0.00225/call | https://duang.ai/data/youtube/video-get |
| `youtube.video.comments` | from $0.00225/call | https://duang.ai/data/youtube/video-comments |

## Frequently Asked Questions

### Do I need a YouTube Data API key or Google Cloud project to pull transcripts?

No. Google's official YouTube Data API restricts third-party caption downloads. Duang routes youtube.video.transcript through managed data providers with no Google Cloud setup or proxy management.

### Can Claude Code or Cursor summarize a YouTube video directly?

Yes. Once connected to https://api.duang.ai/mcp, paste any YouTube link and ask your agent to pull the transcript and comments for structured notes.

### Does Duang also support TikTok video transcripts?

Yes. Use tiktok.video.transcript from the same balance and MCP connection to extract spoken scripts from TikTok videos as well.

## Try It on Duang

- Start with $1 free credit (no card required): https://duang.ai/sign-up
- Remote MCP endpoint: `https://api.duang.ai/mcp`
- Agent Skill setup: `set up https://duang.ai/SKILL.md`
