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.
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
Use Cases
Analyze competitor YouTube channel strategies and upload frequencies
Perform sentiment analysis on video comments for product launches
Identify trending topics and high-performing video formats
Extract subtitles to train custom AI models or summarize lengthy videos
Vet YouTube influencers by analyzing historical engagement rates
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
Click the 'Try for Free' button to open the YouTube Scraper on Apify.
- 2
Log in to your Apify account or create one for free.
- 3
Paste your target YouTube URLs (Videos, Channels, or Playlists) or enter search keywords.
- 4
Configure specific settings like adjusting the maximum results, or enabling comment/subtitle extraction.
- 5
Click the green 'Start' button and wait for the extraction.
- 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?
Can I extract the actual video file (.mp4) using this tool?
Does it scrape YouTube Shorts?
Can I download closed captions in different languages?
Extracted Data Details
View on Apify Store
Related Tools
Facebook Pages Scraper
Extract Facebook Page data including about info, posts, follower counts, and engagement metrics. Ideal for social media research.
Facebook Posts Scraper
Extract posts, comments, reactions, and engagement data from public Facebook pages and profiles.
Instagram Comments Scraper
Extract comments from Instagram posts and reels. Get comment text, usernames, replies, and engagement data.
Need a Custom Solution?
Contact us for a bespoke scraper built to your exact requirements.
Hire an Expert