Youtube Video Subtitles Scraper

Youtube Video Subtitles Scraper

by simpleapi

Extract clean subtitle tracks and captions from any YouTube video. Download timed transcripts in SRT, VTT, or TXT formats for research, SEO, translation, and accessibility workflows.

15 runs
2 users
Try This Actor

Opens on Apify.com

About Youtube Video Subtitles Scraper

Need the actual words from a YouTube video? This scraper pulls the full subtitle and caption tracks for you, straight from the source. It’s perfect for when you’re working with video content and need the text in a usable format. You get the complete timed transcript, which languages are available, and you can download everything as an SRT file for editing, VTT for web players, or plain TXT for quick analysis. I use it for a few specific things that save a ton of time. If you're doing content research or competitive analysis, it lets you quickly scan what's being said in videos without watching hours of footage. For SEO, having a transcript is gold for repurposing into blog posts or getting indexed for spoken keywords. It’s also a lifesaver for creating accessible content or getting a clean text base for translations. Instead of manually copying or using shaky OCR on auto-generated captions, this tool gives you the structured data directly. Just plug in the video URL, pick your language, and grab the file. It handles the extraction so you can focus on your actual workflow, whether that’s building a dataset, analyzing trends, or making content more accessible.

What does this actor do?

Youtube Video Subtitles Scraper is a web scraping and automation tool available on the Apify platform. It's designed to help you extract data and automate tasks efficiently in the cloud.

Key Features

  • Cloud-based execution - no local setup required
  • Scalable infrastructure for large-scale operations
  • API access for integration with your applications
  • Built-in proxy rotation and anti-blocking measures
  • Scheduled runs and webhooks for automation

How to Use

  1. Click "Try This Actor" to open it on Apify
  2. Create a free Apify account if you don't have one
  3. Configure the input parameters as needed
  4. Run the actor and download your results

Documentation

YouTube Video Subtitles Scraper

Extracts subtitles and metadata from public YouTube videos. Outputs structured data (JSON, CSV, Excel) for analysis, AI training, or integration into automated workflows.

Overview

This actor scrapes captions from YouTube videos. For each video, it extracts the subtitle text, timestamps, language, and related video metadata (title, author, description, tags). It handles both manual and auto-generated (ASR) subtitles. Data is processed on the Apify platform and returned in a clean format ready for use.

Key Features

  • Extracts Comprehensive Data: Gets subtitle text, start/end timestamps, duration, language, video title, description, URL, uploader, video length, and tags.
  • Dual Caption Support: Can scrape both user-provided manual captions and YouTube's auto-generated subtitles.
  • Multi-Format Export: Results can be downloaded as JSON, CSV, Excel (XLSX), HTML, or plain text (TXT).
  • Bulk Processing: Scrape subtitles from hundreds of videos in a single run by providing multiple URLs.
  • Developer Integration: Output is structured for easy use with Python scripts, GitHub projects, or AI/NLP pipelines.
  • Simple Configuration: Run with minimal setup directly via the Apify UI or integrate via API.

How to Use

  1. Access the Actor: Find the "YouTube Video Subtitles Scraper" in the Apify Store. You'll need an Apify account.
  2. Configure Input: In the actor's input tab, provide one or more YouTube video URLs. You can paste them directly or upload a CSV file containing a list.
  3. Set Options:
    • Define the preferred subtitle language (e.g., en).
    • Choose whether to include auto-generated captions if manual ones are unavailable.
    • Select other optional filters.
  4. Run: Click "Start" to launch the scraper. Processing time depends on the number of videos.
  5. Download Results: Once complete, fetch your dataset from the actor's output. Choose your preferred format (JSON, CSV, etc.) and download.

Input/Output

Input Schema

The primary input is a list of YouTube video URLs. Configuration is typically set via the Apify UI. For API usage, the input is a JSON object. Key parameters include:
* videoUrls: (Array) List of YouTube URLs to scrape.
* subtitleLanguage: (String) Language code for preferred subtitles (e.g., "en").
* includeAutoGenerated: (Boolean) Whether to fall back to auto-generated captions.

Example input for the API:

{
  "videoUrls": ["https://www.youtube.com/watch?v=example1", "https://www.youtube.com/watch?v=example2"],
  "subtitleLanguage": "en",
  "includeAutoGenerated": true
}

Output

The actor returns an array of items, one for each video. Each item contains the scraped video metadata and an array of subtitle segments.

Example output structure (simplified):

[
  {
    "videoUrl": "https://www.youtube.com/watch?v=example",
    "videoTitle": "Example Video Title",
    "uploader": "Channel Name",
    "subtitles": [
      {
        "text": "This is the first subtitle line.",
        "start": "0:00:01.500",
        "duration": "0:00:02.000",
        "language": "en"
      }
    ]
  }
]

The dataset can be downloaded in full via the Apify platform in JSON, CSV, Excel, HTML, or TXT formats.

Common Use Cases

Market Research

Gather competitive intelligence and market data

Lead Generation

Extract contact information for sales outreach

Price Monitoring

Track competitor pricing and product changes

Content Aggregation

Collect and organize content from multiple sources

Ready to Get Started?

Try Youtube Video Subtitles Scraper now on Apify. Free tier available with no credit card required.

Start Free Trial

Actor Information

Developer
simpleapi
Pricing
Paid
Total Runs
15
Active Users
2
Apify Platform

Apify provides a cloud platform for web scraping, data extraction, and automation. Build and run web scrapers in the cloud.

Learn more about Apify

Need Professional Help?

Couldn't solve your problem? Hire a verified specialist on Fiverr to get it done quickly and professionally.

Find a Specialist

Trusted by millions | Money-back guarantee | 24/7 Support