Extract transcript from YouTube videos.
This endpoint is specifically for YouTube videos. For non-YouTube videos, use /transcript instead.
Options:
transcript_text=true: Returns the transcript as a single plain-text string instead of an array of segments.metadata_only=true: Returns only video metadata (no transcript). Usage is counted as a regular transcript request.fallback_to_metadata=true: If transcript is unavailable, returns video metadata with an empty transcript instead of a 404 error (ignored when metadata_only=true).| Parameter | Type | Required | Description |
|---|---|---|---|
video_url | string | Yes | URL of the YouTube video |
language | string | No | ISO2 language code (e.g., “en”, “es”, “fr”) |
metadata_only | boolean | No | When true, returns only video metadata without fetching the transcript. Takes precedence over fallback_to_metadata. |
fallback_to_metadata | boolean | No | When true, returns video metadata with an empty transcript if transcript is unavailable (returns 200 instead of 404). Ignored if metadata_only is true. |
transcript_text | boolean | No | When true, returns the transcript as a single plain-text string instead of an array of segments. |
metadata_only: true bypasses the residential proxy and counts as regular transcript usage, making it more cost-effective when you only need video information.metadata_only: true. This bypasses the residential proxy and counts as regular transcript usage:
https://youtube.com/watch?v=VIDEO_IDhttps://www.youtube.com/watch?v=VIDEO_IDhttps://youtu.be/VIDEO_IDhttps://www.youtube.com/shorts/VIDEO_IDhttps://m.youtube.com/watch?v=VIDEO_IDfallback_to_metadata: true to get metadata even when transcript is unavailable.available_languages field in the response to see which languages are available.video_info object and a transcript object.
transcript_text: truetranscript_text: true, the transcript is returned as a single string:
metadata_only: truemetadata_only: true, only the video metadata is returned:
API key authentication. Include your VidNavigator API key in the X-API-Key header.
URL of the YouTube video
"https://youtube.com/watch?v=dQw4w9WgXcQ"
ISO2 language code (optional)
2"en"
When true, returns only video metadata without transcript. Usage is counted as a regular transcript request.
When true, returns video metadata with an empty transcript if transcript is unavailable (200). Ignored if metadata_only is true.
When true, returns the transcript as a single plain-text string instead of an array of segments.