{"operation":"transcripts/get","version":"1.0.0","status":"pilot","title":"Get a video's transcript","summary":"The transcript of a YouTube video, line by line with when each is said, by chapter, and its whole text: as the video's \"Show transcript\" panel gives it.","use_when":"You need what is said in a YouTube video, from its id or any of its links: every line of its transcript with the moment it starts and ends (to quote, summarize, search or cite a moment), the chapter it belongs to, and the whole text at once. The transcript is the one the video's page shows: its author's captions in the video's language when it has them, else YouTube's own, made from its speech (`is_auto_generated`). For the video itself (its title, views, chapters, captions languages), use youtube/videos/get; its comments, youtube/comments/list.","categories":["Social media"],"icon":"transcript","source":"youtube","input":{"type":"object","required":["video"],"additionalProperties":false,"properties":{"video":{"type":"string","minLength":11,"maxLength":500,"description":"The video: its id (11 letters, digits, - or _) or any of its links (youtube.com/watch?v=..., youtu.be/..., /shorts/..., /live/..., /embed/...).","examples":["qsrVPdo6svc","https://www.youtube.com/watch?v=dQw4w9WgXcQ"]}}},"record":{"type":"object","additionalProperties":false,"required":["object","id","ids","url","title","channel","language","is_auto_generated","chapters","segments","text","source_url","observed_at"],"properties":{"object":{"const":"transcript"},"id":{"type":"string","description":"The video's id on YouTube, 11 characters."},"ids":{"type":"object","additionalProperties":false,"required":["video_id","channel_id"],"properties":{"video_id":{"type":"string"},"channel_id":{"type":["string","null"],"description":"Its channel's id (UC...)."}}},"url":{"type":"string","description":"The video's page."},"title":{"type":["string","null"],"description":"The video's title."},"channel":{"type":["object","null"],"description":"The channel that published the video.","additionalProperties":false,"required":["id","title","handle","url"],"properties":{"id":{"type":["string","null"]},"title":{"type":["string","null"]},"handle":{"type":["string","null"],"description":"Its @handle."},"url":{"type":["string","null"],"description":"Its page."}}},"language":{"type":["string","null"],"description":"The transcript's language code (en, de...), the one the page shows."},"is_auto_generated":{"type":["boolean","null"],"description":"Made by YouTube from the video's speech, not written by its author."},"chapters":{"type":"array","description":"The video's chapters, as the transcript groups its lines; empty for a video without.","items":{"type":"object","additionalProperties":false,"required":["title","start_ms"],"properties":{"title":{"type":["string","null"],"description":"As its author wrote it (Intro)."},"start_ms":{"type":["integer","null"]}}}},"segments":{"type":"array","description":"The lines of the transcript, in order.","items":{"type":"object","additionalProperties":false,"required":["start_ms","end_ms","timestamp","text","chapter"],"properties":{"start_ms":{"type":["integer","null"],"description":"When it is said, from the start of the video (to the second, as the panel starts it)."},"end_ms":{"type":["integer","null"],"description":"When it ends, to the millisecond (an automatic line may overlap the next)."},"timestamp":{"type":["string","null"],"description":"As shown (1:02:33)."},"text":{"type":"string","description":"The line, as the transcript writes it ([Music], ♪...)."},"chapter":{"type":["string","null"],"description":"The title of its chapter; null without chapters."}}}},"text":{"type":"string","description":"The whole transcript, its lines apart."},"source_url":{"type":"string","description":"The video's page on youtube.com."},"observed_at":{"type":"string","format":"date-time"}}},"price":{"credits_per_call":1,"description":"1 credit a call, one video's whole transcript, however long. A video without a transcript, one that does not exist and a failed call are free.","free":["failed"]},"deadline":{"default_s":30,"max_s":60},"errors":[{"code":"ip_blocked","status":503,"retryable":true,"retry_after":60,"message":"YouTube slowed down the IPs the call tried (429). Retry in a minute; failed calls are free."},{"code":"invalid_video","status":422,"detail":true,"message":"`video` is a YouTube video: its id (dQw4w9WgXcQ) or one of its links (https://www.youtube.com/watch?v=dQw4w9WgXcQ, https://youtu.be/dQw4w9WgXcQ, a /shorts/ link)."},{"code":"video_unavailable","status":404,"detail":true,"message":"YouTube has no such video (removed, private, or never one). Not charged."},{"code":"transcript_unavailable","status":404,"detail":true,"message":"The video has no transcript on YouTube: no captions of its author's, and none YouTube made (music without words, a video too new or in a language YouTube does not transcribe). Not charged."},{"code":"site_unavailable","status":503,"retryable":true,"message":"YouTube did not answer properly; retry later (not charged)."},{"code":"unexpected_answer","status":424,"retryable":false,"message":"YouTube answered in a shape we do not read yet; we are told and fix it (not charged)."}],"examples":[{"request":{"video":"https://www.youtube.com/watch?v=k7Rt2mVxQ4s"},"records":[{"object":"transcript","id":"k7Rt2mVxQ4s","ids":{"video_id":"k7Rt2mVxQ4s","channel_id":"UCa1B2c3D4e5F6g7H8i9J0kL"},"url":"https://www.youtube.com/watch?v=k7Rt2mVxQ4s","title":"Sourdough for Beginners, Step by Step","channel":{"id":"UCa1B2c3D4e5F6g7H8i9J0kL","title":"Acme Kitchen","handle":"@acmekitchen","url":"https://www.youtube.com/@acmekitchen"},"language":"en","is_auto_generated":true,"chapters":[{"title":"Intro","start_ms":0},{"title":"The starter","start_ms":135000}],"segments":[{"start_ms":0,"end_ms":3840,"timestamp":"0:00","text":"Hi, and welcome back to the kitchen.","chapter":"Intro"},{"start_ms":135000,"end_ms":141220,"timestamp":"2:15","text":"A starter is just flour and water, given time.","chapter":"The starter"}],"text":"Hi, and welcome back to the kitchen.\nA starter is just flour and water, given time.","source_url":"https://www.youtube.com/watch?v=k7Rt2mVxQ4s","observed_at":"2026-12-03T12:00:00Z"}]}],"health":{"canaries":[{"from":"youtube/videos/search","into":"video","skip":["transcript_unavailable"],"min_records":1},{"video":"dQw4w9WgXcQ","min_records":1}],"required_fields":["id","url","segments","text"],"sparse":{"chapters":"Videos with chapters: 4 of 5 (03/12).","title":"The page's, not in the panel the morning path keeps (the canaries check it).","channel":"The page's, not in the panel the morning path keeps (the canaries check it).","language":"The page's, not in the panel the morning path keeps (the canaries check it).","is_auto_generated":"The page's, not in the panel the morning path keeps (the canaries check it)."}},"changelog":[{"version":"1.0.0","date":"2026-12-03","notes":"First version: a video's transcript by its id or any of its links, signed out, as its page's panel shows it: every line with when it starts and ends and its chapter, the chapters, the whole text, its language and whether YouTube made it."}],"object":"operation","id":"youtube/transcripts/get","site":{"title":"YouTube","domain":"youtube.com","color":"#FF5A4E"}}