YouTube Scraper icon

YouTube Scraper

Extract YouTube video statistics, comments, channel details, and subtitles for video marketing and content research.

As an Apify affiliate, we may earn a commission from qualifying purchases made through our links, at no extra cost to you. We only recommend tools we believe in.

EXCEL CSV JSON XML HTML RSS JSONL

Try It Out

Experience the power of this scraper for free.

Run Scraper Now
apify-console
~ apify call youtube-scraper
Loading actor configuration...
Running on Apify cloud...
Run succeeded!
Fetched items: 1,245
Exporting to: CSV Excel

Overview

The YouTube Scraper is a vital data extraction tool designed for video marketers, content creators, and brand researchers. It allows you to scrape extensive data from YouTube without dealing with the restrictive quotas of the official YouTube Data API. You can extract comprehensive details from individual videos (views, likes, precise publication dates, descriptions), scrape entire channels to analyze a creator's upload history and most popular content, or extract thousands of viewer comments for deep sentiment analysis. Furthermore, this scraper can extract automatically generated or manual subtitles/captions, making it incredibly powerful for building natural language datasets or analyzing video scripts at scale.

Key Features

Scrape completely public video metadata (Title, Description, Views, Likes)
Extract all videos from specific YouTube Channels or Playlists
Download thousands of user comments and their top replies
Extract video subtitles/closed captions (CC) in available languages
Search videos by keywords with complex sorting filters
Scrape YouTube Shorts data alongside regular videos
No YouTube account or Google API key required

Use Cases

1

Analyze competitor YouTube channel strategies and upload frequencies

2

Perform sentiment analysis on video comments for product launches

3

Identify trending topics and high-performing video formats

4

Extract subtitles to train custom AI models or summarize lengthy videos

5

Vet YouTube influencers by analyzing historical engagement rates

6

Build datasets of educational video transcripts for research

Input Parameters

Parameter Type Required Description
searchTerms Array Optional Keywords to search for on YouTube (e.g., 'React JS tutorial')
startUrls Array Optional Specific Video, Channel, or Playlist URLs to scrape
maxResults Number Optional Maximum number of videos or comments to extract per run
downloadSubtitles Boolean Optional Enable to extract complete text transcripts of the videos
extractComments Boolean Optional Enable to deeply scrape viewer comments from the target videos

Sample Output

{
  "id": "dQw4w9WgXcQ",
  "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
  "title": "Rick Astley - Never Gonna Give You Up (Official Music Video)",
  "channelName": "Rick Astley",
  "channelUrl": "https://www.youtube.com/@RickAstleyYT",
  "subscribers": 4500000,
  "views": 1500000000,
  "likes": 18000000,
  "date": "2009-10-25T00:00:00Z",
  "duration": "3:33",
  "description": "The official video for 'Never Gonna Give You Up'...",
  "thumbnailUrl": "https://i.ytimg.com/vi/dQw4w9WgXcQ/maxresdefault.jpg",
  "commentsCount": 980000
}

How to Use

  1. 1

    Click the 'Try for Free' button to open the YouTube Scraper on Apify.

  2. 2

    Log in to your Apify account or create one for free.

  3. 3

    Paste your target YouTube URLs (Videos, Channels, or Playlists) or enter search keywords.

  4. 4

    Configure specific settings like adjusting the maximum results, or enabling comment/subtitle extraction.

  5. 5

    Click the green 'Start' button and wait for the extraction.

  6. 6

    Navigate to the Storage tab to download your video data or transcripts in JSON, CSV, or Excel.

API Example

import { ApifyClient } from 'apify-client';

const client = new ApifyClient({
    token: 'YOUR_API_TOKEN',
});

const input = {
    "startUrls": [
        { "url": "https://www.youtube.com/@Apify/videos" }
    ],
    "maxResults": 100,
    "extractComments": false,
    "downloadSubtitles": false
};

const run = await client.actor("streamers/youtube-scraper").call(input);

const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);

Pricing Structure

Pay for usage model. The actor is highly efficient; extracting basic video metadata costs approximately $1.00 per 1,000 videos. Deeply scraping thousands of comments or long video subtitles requires more compute time. Apify's $5 free tier is completely sufficient for most monthly research tasks.

Limitations

  • Scraping the entirety of comments from a viral video with millions of comments will take significant time and compute.
  • Auto-generated subtitles might have spelling or contextual inaccuracies depending on the audio quality.
  • YouTube frequently throttles connections that download too many videos concurrently; the scraper automatically handles retries, but it may artificially slow down giant extractions.

Frequently Asked Questions

Is this a better alternative to the official YouTube API?
Yes. The official YouTube Data API v3 has extremely strict daily quota limits (which drain quickly when querying searches) and requires complex Google Cloud setups. This scraper requires zero API keys and has effectively no quota limits beyond what you pay for computing.
Can I extract the actual video file (.mp4) using this tool?
No. This tool is designed explicitly to extract textual and numerical metadata (Subtitles, Views, Comments, Descriptions). It does not rip or download the actual copyrighted video files.
Does it scrape YouTube Shorts?
Yes, YouTube Shorts are structurally just standard videos. The scraper can extract them from a channel's 'Shorts' feed or general search results.
Can I download closed captions in different languages?
Yes! If the video creator has uploaded manual subtitles in various languages, or if YouTube has auto-generated them, the scraper can detect and extract those specific language tracks.

Extracted Data Details

Video URL & Title Channel Name, URL, & Subscriber Count View, Like, & Comment Counts Full Video Description Publication Date & Duration Video Tags & Keywords High-Res Thumbnail URL Extracted Comments (Text & Author) Subtitles / Captions Text

Pricing Structure Freemium
Category Social Media
Last Verified Mar 2026

View on Apify Store

Need a Custom Solution?

Contact us for a bespoke scraper built to your exact requirements.

Hire an Expert
YouTube Scraper

YouTube Scraper

Ready to extract data from {name}

Run for Free