{"repo":"jdepoix/youtube-transcript-api","free":true,"listed":false,"github":"https://github.com/jdepoix/youtube-transcript-api","clone":"git clone https://github.com/jdepoix/youtube-transcript-api.git","description":"This is a python API which allows you to get the transcript/subtitles for a given YouTube video. It also works for automatically generated subtitles and it does not require an API key nor a headless browser, like other selenium based solutions do!","language":"Python","stars":8059,"topics":["youtube-api","subtitles","youtube","transcripts","youtube-subtitles","youtube-transcripts","python","transcript","subtitle","cli"],"license":"MIT","category":"cli-tools","readme_excerpt":"✨ YouTube Transcript API ✨ This is a python API which allows you to retrieve the transcript/subtitles for a given YouTube video. It also works for automatically generated subtitles, supports translating subtitles and it does not require a headless browser, like other selenium based solutions do! If you feel more comfortable using a hosted solution, you can use the services of any of our amazing sponsors: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; Maintenance of this project is made possible by all the contributors and sponsors . If you'd like to sponsor this project click here . 💖 Install It is recommended to install this module by using pip: You can either integrate this module into an existing application or just use it via a CLI. API The easiest way to get a transcript for a given video is to execute: Note: By default, this will try to access the English transcript of the video. If your video has a different language, or you are interested in fetching a transcript in a different language, please read the section below. Note: Pass in the video ID, NOT the video URL. For a video with the URL https://www.youtube.com/watch?v=12345 the ID is 12345 . This will return a FetchedTranscript object looking somewhat like this: This object implements most interfaces of a List : If you prefer to handle the raw transcript data you can call fetched transcript.to raw data() , which will return a list of dictionaries: Retrieve different languages You can add the language","default_branch":null,"files":null,"tree":[],"storefront":"/r/jdepoix","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/jdepoix/youtube-transcript-api/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}