Get a YouTube video transcript
Returns a YouTube video's captions as JSON: timestamped segments (start, dur, text) and a joined text, plus availableLanguages, the picked language, isAutoGenerated, and the video's title, author and lengthSeconds. Pass a video id or any YouTube video URL; choose a caption language with lang. Ideal for LLM/RAG pipelines, subtitles and content analysis.
Request
- Base URL: https://api.scrapeunblocker.com
- URL: https://api.scrapeunblocker.com/content/youtube-transcript
- Auth: API key in header x-scrapeunblocker-key
Query parameters
Video id (dQw4w9WgXcQ) or any YouTube video URL.
Preferred caption language code, e.g. 'en'. Omit for the default/first track. A prefix like 'en' matches 'en-US'.
Output shape: segments, text. 'segments' returns timestamps; 'text' returns only the joined plaintext.
Proxy country the request is sent from (ISO-2, e.g. 'US', 'DE') for the watch page. Defaults to US.
Response
JSON with segments, text and video metadata.
Changes
No recorded changes to this operation across all 1 revision of this API.