YouTube Video Subtitles (captions) Scraper avatar
YouTube Video Subtitles (captions) Scraper
Try for free

2 days trial then $14.99/month - No credit card required now

View all Actors
YouTube Video Subtitles (captions) Scraper

YouTube Video Subtitles (captions) Scraper

Try for free

2 days trial then $14.99/month - No credit card required now

Extract subtitles (captions) from one or multiple YouTube videos. Download YouTube video subtitles (captions) as a HTML, JSON, CSV, Excel, or XML doc.

This scraper accepts YouTube videos URLs as an input and returns video subtitles (captions).

How do I use YouTube Comment Scraper?

YouTube Video Subtitles (captions) Scraper is designed to be user-friendly, even for those who have never extracted data from YouTube before, Here’s how you can use YouTube Video Subtitles (captions) Scraper to extract YouTube subtitles data:

  • Create an Apify account.
  • Open .
  • Add one or more YouTube video URLs to scrape subtitles.
  • Click the "Start" button and wait for the data to be extracted.
  • Download your data in JSON, XML, CSV, Excel, or HTML.

Input example

The input for YouTube Video Subtitles (captions) Scraper should be a YouTube video URL. You can add as many URLs as you want or even import a CSV file or Google Sheet with a prepared list of URLs. Then select the subtitle language to be extracted and whether to extract automatically generated subtitles (ASR) if there are no subtitles added by users, and click Start. Click on the for a full explanation of an input example in JSON.

What data can you scrape?

  • Subtitle start time
  • Subtitle duration time
  • Subtitle text
  • Video ID
  • Video Author
  • Video URL
  • Video Title
  • Video Description
  • Video Keywords
  • Video Length

Data output example

The scraped data will be shown as a dataset which you can find in the Storage tab. Note that for convenience the video data is repeated in each line of the result. YouTube Video Subtitles (captions) Scraper output example You can preview all the fields and choose in which format to download the YouTube comments you’ve extracted: JSON, Excel, HTML table, CSV, or XML. Here below is the same dataset in JSON:

2    {
3        "videoId": "nn-bCRvhNUM",
4        "videoUrl": "",
5        "videoTitle": "Tour of Apify - The web scraping and automation platform",
6        "videoLength": "192",
7        "videoDescription": "An introduction to Apify, the web scraping, and automation platform. \nLearn how Apify can help you make the web more programmable, turn websites into APIs and automate virtually anything on the web. \n\nApify enables you to easily run serverless cloud programs called actors that can be programmed to perform any job, from sending a simple email to crawling websites with millions of pages. On top of that, Apify enables you to seamlessly integrate actors with other apps, create tasks with pre-defined settings, schedule your runs, access stored data, and much more!\n\n👀 Take a look at Apify! -\n\n🏪 Want to extract data from a specific website? Visit Apify Store -\n\n📖 Learn more about web scraping and automation! -\n\n⌛Timestamps:\n0:00 - Introduction\n0:39 - Welcome to Apify\n1:15 - Actor example\n1:32 - Tasks\n1:30 - Schedules\n2:05- Proxies\n2:30 - Custom solutions\n2:45 - Learn more about web scraping and automation\n2:57 - Check our other videos!",
8        "videoKeywords": [
9            "web scraping platform",
10            "web automation",
11            "scrapers",
12            "Apify",
13            "web crawling",
14            "web scraping",
15            "data extraction",
16            "best web scraping tool",
17            "API",
18            "how to extract data from any website",
19            "web scraping tutorial",
20            "web scrape",
21            "data collection tool",
22            "RPA",
23            "web integration",
24            "how to turn website into API",
25            "JSON",
26            "data extraction tools",
27            "web scraping javascript",
28            "web scraping python",
29            "data collection tools",
30            "data collection tools and techniques",
31            "data collection tools and strategies",
32            "web scraper",
33            "web api integration"
34        ],
35        "author": "Apify",
36        "start": "0",
37        "duration": "4.56",
38        "text": "Do you want to extract data from the web?\nMaybe you’ve tried it, but you had problems,  "
39    }

How much will it cost to scrape Youtube Subtitles?

One short (up to 5 minutes) video scraping cost about $0.004, Apify provides you with $5 free usage credits to use every month on the Apify Free plan and you can get up to 1 250 000 video subtitles for those credits. Note that the cost of parsing depends on the duration of the video and other factors and may vary.

Is it legal to scrape Youtube?

Our scrapers are ethical and do not extract any private user data, such as email addresses, gender, or location. They only extract what the user has chosen to share publicly. We therefore believe that our scrapers, when used for ethical purposes by Apify users, are safe. However, you should be aware that your results could contain personal data. Personal data is protected by the GDPR in the European Union and by other regulations around the world. You should not scrape personal data unless you have a legitimate reason to do so. If you're unsure whether your reason is legitimate, consult your lawyers. You can also read our blog post on the legality of web scraping

Maintained by Community
Actor metrics
  • 18 monthly users
  • 4 stars
  • 58.7% runs succeeded
  • 8.3 hours response time
  • Created in Jul 2023
  • Modified 24 days ago