YouTube Video Transcript Scraper API
Returns the transcript of a YouTube video as timestamped segments: each with text, start offset and duration (seconds), language, word count, and speech rate. Supports multiple languages via language. Without language, the transcript is in the language spoken in the video's original audio when YouTube publishes it, not a dubbed track, even when the video has auto-dubbed audio in other languages; each segment's lang says which language you got. Retrying returns the same result, with one exception: a video uploaded in the last day can answer captions_disabled until YouTube generates its automatic captions, so a retry a few hours later can succeed.
GET /api/v1/data/youtube/video-transcript · 3 credits per call · The same call repeated within 30 days may get the same answer, so data can be up to 30 days old.
Inputs
url(required): Full URL of the YouTube video
What comes back
result_status(string): success, or not_available when the item does not exist, was removed or is not public.source_data.moments(array): The stretches of the transcript that match, each with a verbatim quote. An empty list means nothing matched.source_data.moments.end_ms(integer): End of the stretch, in milliseconds.source_data.moments.kind(string): What the stretch is. `answers_query` is returned for `q=`: the stretch states the answer to your question.source_data.moments.quote(string): One line copied unchanged from the transcript.source_data.moments.start_ms(integer): Start of the stretch, in milliseconds from the start of the video.source_data.transcript(any): The transcript: timed segments in order, or the whole text as one string. Null when the video has none.source_data(object): Everything the platform sent for this call, as it came.
Good to know
- Each call costs 3 credits. A call that finds nothing, or fails, is free.
- The same call repeated within 30 days may get the same answer, so data can be up to 30 days old.
Example call
GET /api/v1/data/youtube/video-transcript?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdQw4w9WgXcQ
Questions
How much does the YouTube Video Transcript API cost?
Each call costs 3 credits. A call that finds nothing, or fails, costs nothing.
What do I send?
You must send url. Inputs go in the query string of a GET, or as JSON in a POST, along with your API key.
How fresh is the data?
The same call repeated within 30 days may get the same answer, so data can be up to 30 days old.
Do I need a YouTube account or developer app?
No. You call SocialHz with your SocialHz API key, and the same key works for every platform.
Can I try it before paying?
Yes. Signing up gives you 10 free credits, with no card needed.
Related YouTube endpoints
- Video: Get YouTube video details. 1 credit a call
- Video Audio: Get a YouTube video's audio file streams. 5 credits a call
- Video Comment Replies: List YouTube comment replies. 1 credit a page
- Video Files: Get a YouTube video's video file streams. 5 credits a call
- Video Related: Get videos related to a YouTube video. 1 credit a call
- Video Sponsors: Detect sponsors of a YouTube video. 10 credits a call
- Video Subtitles: Get a YouTube video's subtitle files. 1 credit a call
- Video Thumbnails: Get a YouTube video's thumbnail files. 1 credit a call
More YouTube scraper APIs
- YouTube Channel Scraper API
- YouTube Channel About Scraper API
- YouTube Channel Community Posts Scraper API
- YouTube Channel Lives Scraper API
- YouTube Channel Playlists Scraper API
- YouTube Channel Shorts Scraper API
- YouTube Channel Videos Scraper API
- YouTube Channels Scraper API
- YouTube Community Post Scraper API
- YouTube Playlist Scraper API
- YouTube Playlist Items Scraper API
- YouTube Profile Full Scraper API
- YouTube Search Scraper API
- YouTube Search Hashtag Scraper API
- YouTube Search Suggestions Scraper API
- YouTube Shorts Trending Scraper API
- YouTube Video Scraper API
- YouTube Video Audio Scraper API
- YouTube Video Comment Replies Scraper API
- YouTube Video Files Scraper API
- YouTube Video Related Scraper API
- YouTube Video Sponsors Scraper API
- YouTube Video Subtitles Scraper API
- YouTube Video Thumbnails Scraper API
- YouTube Videos Scraper API
- YouTube Videos Trending Scraper API