YouTube Transcripts API
Transcripts of up to 20 videos in one call, in the order given. Each row in `videos` has `id`, `title`, `language` (caption language code used), `language_name`, `is_auto_generated`, `segments` (each `start` and `duration` in seconds, and `text`) and `chapters` from the video description (each `start` in seconds and `title`; empty when the description lists none). A video without captions, or that cannot be fetched, gives a row with `id` and `error` (`code`, `message`) instead of failing the call; `code` is `invalid_id`, `unavailable`, `no_transcript` or `fetch_failed`.
https://api.maviapi.com/v1/sites/youtube/transcripts5 credits per callParameters
| Name | Required | Example | Description |
|---|---|---|---|
idsstring in query | Optional | dQw4w9WgXcQ,jNQXAC9IVRw | comma-separated video ids or video URLs, at most 20 (duplicates are dropped) |
langstring in query | Optional | en | comma-separated caption language codes in order of preference, such as `de,en` (a bare code like pt also matches pt-BR); when none of them exists the video's original caption language is used. Empty for always the original. |
Response fields
counte.g.2videos
ide.g."dQw4w9WgXcQ"titlee.g."Rick Astley - Never Gonna Give You Up (Official Video) (4K Remaster)"languagee.g."en"language_namee.g."English"is_auto_generatede.g.falsesegments
starte.g.1.36duratione.g.1.68texte.g."[♪♪♪]"chapterspagination
counte.g.2has_moree.g.falsenext_cursorfetched_ate.g."2026-11-26T23:52:08.044Z"agee.g.0Example request
Set MAVI_KEY to your API key. A successful call costs 5 credits per call, and a failed call costs nothing.
curl 'https://api.maviapi.com/v1/sites/youtube/transcripts' \
-H "Authorization: Bearer $MAVI_KEY"YouTube Transcripts API questions
What you get, what it costs and how to call it.
What does the YouTube Transcripts API return?
Transcripts of up to 20 videos in one call, in the order given. Each row in `videos` has `id`, `title`, `language` (caption language code used), `language_name`, `is_auto_generated`, `segments` (each `start` and `duration` in seconds, and `text`) and `chapters` from the video description (each `start` in seconds and `title`; empty when the description lists none). A video without captions, or that cannot be fetched, gives a row with `id` and `error` (`code`, `message`) instead of failing the call; `code` is `invalid_id`, `unavailable`, `no_transcript` or `fetch_failed`. The response has count, videos, pagination, fetched_at and age.
Which parameters does the YouTube Transcripts API take?
Every parameter of GET /transcripts is optional. You can pass ids and lang.
How much does one YouTube Transcripts API call cost?
One successful call costs 5 credits. A failed call costs nothing. On the Hobby plan ($49 a month for 250,000 credits), 1,000 calls cost about $0.98. The Free plan gives you 1,000 credits a month, with no credit card required. See plans and credit prices for everything after that.
How do I call the YouTube Transcripts API?
Send an HTTPS GET request to https://api.maviapi.com/v1/sites/youtube/transcripts with your API key in the Authorization header, as in the example request on this page. Create a key on your API keys page, or try the endpoint first in the console with the free test key.
Is the YouTube Transcripts API official?
No. It is an independent, hosted API from maviapi for the public data on youtube.com, and it is not made, endorsed or supported by YouTube. Its parameters and response fields are documented on this page.