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.
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.
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.
Try live capabilities right now.
Connect to your AI agent in 60 seconds.
Read https://duang.ai/SKILL.md and use duang to run youtube.video.transcript.
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.