youtube-transcript-api
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!
- youtube-api
- subtitles
- youtube
- transcripts
- youtube-subtitles
- youtube-transcripts
- python
- transcript
- subtitle
- cli
- captions
- youtube-captions
- youtube-transcript
- youtube-video
- translating-transcripts
- Stars
- 8,619
- Forks
- 869
- + today
- +1
- Created
- 8y
Ranking data as of November 24, 2026 (UTC).
Star History
Today, hour by hour
01
Overview
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! It ranks #2130 on GitTiger, gaining +1 star on November 24, 2026 (UTC).
The project is written in Python and has 869 forks. It was created 8y ago.
Installation
git clone https://github.com/jdepoix/youtube-transcript-api.git
cd youtube-transcript-api
# see README for setup