What it does
- Extracts full video transcripts as text
- Supports multiple languages when available
- Works with any public YouTube video URL
Pricing
**2 per 1,000 requests)
Authentication
Include your API key in the Authorization header:Endpoint
POST /api/v1/youtube_transcript
SDK Usage
Request Parameters
The YouTube video URLSupported formats:
https://www.youtube.com/watch?v=VIDEO_ID
https://youtu.be/VIDEO_ID
Language code for the transcript (e.g., “en”, “es”, “fr”)If not specified, returns the default transcript
Response
The full transcript text of the video
The YouTube video URL
The language code used for the transcript
Cost in USD ($0.001)
Language Codes
Common language codes:en
- Englishes
- Spanishfr
- Frenchde
- Germanpt
- Portugueseit
- Italianja
- Japaneseko
- Koreanzh
- Chinese
Limitations
- Video must be public (not private or age-restricted)
- Video must have captions/subtitles available
- Requested language may not be available for all videos
- Live streams may not have transcripts
- Subject to rate limits based on your plan
Error Codes
401 - Authentication Error
401 - Authentication Error
Invalid or missing API key
400 - Invalid URL
400 - Invalid URL
The provided URL is not a valid YouTube video URL
500 - Transcript Error
500 - Transcript Error
Failed to retrieve transcript (video may be private, deleted, or without captions)
Need Help? Join our Discord or email support@llmlayer.ai