YouTube Transcript API
The transcript (captions) of a video in one language, as `rows` of `start` and `duration` (seconds) and `text`, plus every caption language the video has (`languages`, each with code, name and whether it is auto-generated). Human-made captions are preferred over auto-generated ones in the same language. A video without captions returns empty `languages` and `rows`.
https://api.maviapi.com/v1/sites/youtube/transcript5 credits per callParameters
| Name | Required | Example | Description |
|---|---|---|---|
video_idstring in query | Optional | dQw4w9WgXcQ | 11-character video id, or any youtube.com / youtu.be video URL |
langstring in query | Optional | None | caption language code such as en, de or pt-BR (a bare code like pt also matches pt-BR); one of the video's `languages`. Omit for the video's own default caption language. |
Response fields
video_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.falselanguages
codee.g."en"namee.g."English"is_auto_generatede.g.falserows
starte.g.1.36duratione.g.1.68texte.g."[♪♪♪]"Example 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/transcript' \
-H "Authorization: Bearer $MAVI_KEY"YouTube Transcript API questions
What you get, what it costs and how to call it.
What does the YouTube Transcript API return?
The transcript (captions) of a video in one language, as `rows` of `start` and `duration` (seconds) and `text`, plus every caption language the video has (`languages`, each with code, name and whether it is auto-generated). Human-made captions are preferred over auto-generated ones in the same language. A video without captions returns empty `languages` and `rows`. The response has video_id, title, language, language_name, is_auto_generated, languages and rows.
Which parameters does the YouTube Transcript API take?
Every parameter of GET /transcript is optional. You can pass video_id and lang.
How much does one YouTube Transcript 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 Transcript API?
Send an HTTPS GET request to https://api.maviapi.com/v1/sites/youtube/transcript 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 Transcript 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.