
YouTube Transcript Scraper
Pricing
$5.99/month + usage

YouTube Transcript Scraper
YouTube Transcript Scraper – Fast, Clean & Reliable
5.0 (1)
Pricing
$5.99/month + usage
1
1
1
Last modified
15 days ago
🎬 YouTube Transcript Scraper (Python)
Extract video transcripts with timestamps from any YouTube video by providing its Video ID.
This Actor scrapes captions and returns them in structured JSON format, perfect for SEO, research, AI pipelines, or content repurposing.
✨ Features
- 📜 Extracts transcript text with clean timestamps (HH:MM:SS).
- ⚡ Super easy: just provide a YouTube Video ID.
- 📂 Outputs structured JSON, CSV, Excel, or API endpoint.
- 🔎 Removes UI artifacts (like timestamp badges).
- 🛠 Built with Python + Apify SDK.
🛠 Input
Provide a simple input JSON:
{"video_id": "-n9-peovGvk"}
Field Type Required Description video_id string ✅ The YouTube Video ID (example: -n9-peovGvk)
📤 Output The Actor returns structured transcript data:
{"video_id": "-n9-peovGvk","segments": [{"timestamp": "00:00:01","text": "Hello everyone"},{"timestamp": "00:00:05","text": "Welcome to the video"}],"count": 25}
▶️ How to Run on Apify Open the Actor in Apify Console.
Click Run.
In the Input tab, provide your video_id.
After the run, go to the Dataset tab and download results.
💻 Local Development You can also run this Actor locally using Apify CLI:
bash
Install Apify CLI (if not installed)
$npm install -g apify-cli
Create a new Actor project
apify create youtube-transcript-scraper cd youtube-transcript-scraper
Run Actor with example input
apify run --input='{"video_id": "-n9-peovGvk"}' 💡 Use Cases ✍️ Content creators → Repurpose YouTube videos into blog posts.
📊 Researchers → Collect and analyze spoken content.
🌍 SEO specialists → Index transcripts for better search visibility.
🤖 AI / NLP engineers → Feed transcripts into chatbots and language models.
🧑💻 Tech Stack Python 3.13
Apify SDK for Python
Requests + BeautifulSoup4
📌 Notes Works only if the video has available transcripts/subtitles.
Does not work on private, restricted, or age-gated videos.
📝 License MIT © 2025 – Built for the Apify ecosystem 🚀