Skip to content

Latest commit

 

History

History
55 lines (36 loc) · 1.75 KB

README.md

File metadata and controls

55 lines (36 loc) · 1.75 KB

⚡️ YouTube Transcript API: GetTranscript code examples ⚡️

Code examples for the GetTranscript API. Extract YouTube transcripts, subtitles and captions for single videos, playlists and channels from your own code.

🛠 What you can do

  • Export transcripts as TXT, Markdown, SRT, VTT, JSON or CSV
  • Get timestamped captions
  • Extract transcripts for single videos, playlists and channels

❗️ Limits and credits

  • Rate limit: 60 requests per minute per API key / IP
  • Credits: 1 credit per successfully processed video

🗝️ Get an API key

Create a free API key in your GetTranscript dashboard. Credit packs are listed on the pricing page.

The Python and Node.js examples load the key from a .env file (via python-dotenv / dotenv). Create a .env file in the example's folder and set your key there. The exact variable name is at the top of each example script.

🚀 Quick start

Python

cd python
pip install requests python-dotenv
python fetch_transcript.py

Node.js

cd nodejs
npm install axios dotenv
node fetch_transcript.js

cURL

cd curl
bash request.sh

📚 Documentation

Endpoints, parameters and error responses are described in the official API documentation.

🔗 Links