Skip to content
WagamiAI
ProductPricingDocsMCPCompareSupportSign inGet started
Answer

How do I get a YouTube video's transcript with an API?

Send the video's id or link to POST /v1/transcript with your key, and the answer is the transcript as plain text. It costs 3 credits ($1.50 for 1,000 transcripts), and a video with no transcript costs nothing.

Updated 18 November 2026

At a glance

To getSendWhat comes backPrice
One video, plain textPOST /v1/transcript with ref (an id or any YouTube link) and langtranscript: one string3 credits
One video, timed linesPOST /v1/captions with ref and langLines with a start, a length and the words3 credits
Up to 10 videos at oncePOST /v1/transcripts with refs (1 to 10) and langOne transcript per video, in the order asked3 credits per transcript

The exact call

curl -X POST "https://wagamiai.com/v1/transcript" \
  -H "Authorization: Bearer $WAGAMI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ref": "dQw4w9WgXcQ"}'

What comes back:

{"ok": true, "transcript": "Today we look at three simple ways to light a small studio…"}

From an AI agent: the MCP tool is get_transcript. How to connect.

Languages

Pick a language by code with lang (the default is en). A creator's own captions come first, then automatic ones. What exists depends on the video.

Every transcript of a channel

List the channel's uploads with POST /v1/channel/videos (up to 1,000 rows), then ask for each transcript, ten at a time with /v1/transcripts. Your balance is the only limit.

Questions

What does a transcript cost?

3 credits, which is $1.50 for 1,000 transcripts at the base rate of 2,000 credits for $1. Errors, refusals and empty answers are never charged.

Do Shorts and youtu.be links work?

Yes. Send a video id or any YouTube link to the video: a watch link, a Shorts link or a youtu.be link.

Can an AI agent do this by itself?

Yes. On the MCP server the tool is get_transcript, and get_transcripts takes up to 10 videos. Any agent that can make HTTPS requests can call the API directly.

Read next

Try it with your own key

Plans from $20 a month, or credits without a plan from $25. Errors are never charged.