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

> Send the video's link to POST /v1/transcript for its words as plain text, or to /v1/captions for timed lines. One key, 3 credits a transcript, errors free.

[Answer](https://wagamiai.com/answers)

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 get | Send | What comes back | Price |
| --- | --- | --- | --- |
| One video, plain text | POST /v1/transcript with ref (an id or any YouTube link) and lang | transcript: one string | 3 credits |
| One video, timed lines | POST /v1/captions with ref and lang | Lines with a start, a length and the words | 3 credits |
| Up to 10 videos at once | POST /v1/transcripts with refs (1 to 10) and lang | One transcript per video, in the order asked | 3 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](https://wagamiai.com/mcp).

## 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

- [The transcript API](https://wagamiai.com/youtube-transcript-api)
- [Transcript in the docs](https://wagamiai.com/docs#transcript)
- [Pricing](https://wagamiai.com/pricing)
- [All answers](https://wagamiai.com/answers)

## Try it with your own key

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

[Get started](https://wagamiai.com/signup) [See pricing](https://wagamiai.com/pricing)

---
This is the Markdown copy of https://wagamiai.com/answers/youtube-transcript-with-an-api (WagamiAI). Every page has one: add `.md` to its address. All pages: https://wagamiai.com/llms.txt
