> ## Content Index
> Fetch the complete content index at: https://www.bramadams.dev/llms.txt
> Use this file to discover other available public pages before exploring further.

# Using The Python youtube-transcript-api
- URL: https://www.bramadams.dev/202301290410/
- Published: 2023-01-29T09:12:04.000Z
- Updated: 2023-01-29T09:12:04.000Z
- Author: Bram Adams
- Tags: programming

Used this to build [GitHub - bramses/youtube-transcript-obsidian](https://github.com/bramses/youtube-transcript-obsidian?ref=bramadams.dev) \-- though these days I just use Whisper to transcribe my video files.

> The easiest way to get a transcript for a given video is to execute:  
> ([View Highlight](https://pypi.org/project/youtube-transcript-api?%5F%5FreadwiseLocation=0%2F21%2F3%2F5%2F3%2F1%2F1%2F7%2F17%3A0%2C0%2F13%2F23%2F3%2F5%2F3%2F1%2F1%2F7%2F17%3A1&ref=bramadams.dev#:~:text=The%20easiest%20way%20to%20get%2Cto%20execute%3A%0Afrom%20youtube%5Ftranscript%5Fapi%20import%20YouTubeTranscriptApi%0A%0AYouTubeTranscriptApi.get%5Ftranscript%28video%5Fid%29))

```python
from youtube_transcript_api import YouTubeTranscriptApi  
YouTubeTranscriptApi.get_transcript(video_id)

```