Youtube Scraper
Pricing
from $1.50 / 1,000 results
Youtube Scraper
Scrape YouTube videos, channels, playlists, and search results. Extract video metadata, view counts, comments, and channel statistics. Export as JSON, CSV, or Excel.
Pricing
from $1.50 / 1,000 results
Rating
0.0
(0)
Developer

Harald
Actor stats
0
Bookmarked
2
Total users
1
Monthly active users
10 hours ago
Last modified
Categories
Share
🎬 YouTube Video & Channel Scraper
Scrape YouTube search results, video details, and channel information — fast and cost-effective using lightweight HTML parsing with Crawlee's CheerioCrawler (no browser needed).
What it does
This actor extracts structured data from YouTube by parsing the server-rendered ytInitialData embedded in page HTML. No headless browser is required, making it significantly cheaper and faster than browser-based scrapers.
Supported inputs
- Search keywords — search YouTube and extract video results with pagination
- Channel URLs — get channel info (subscribers, video count, description) and list their videos
- Video URLs — extract full video details (views, likes, duration, publish date, etc.)
Output
Video data
| Field | Description |
|---|---|
videoId | YouTube video ID |
title | Video title |
description | Video description or snippet |
viewCount | Number of views (numeric) |
likes | Like count (numeric, when available) |
commentCount | Comment count (when available) |
publishedAt | Publish date (ISO format for video pages) |
channelName | Channel name |
channelId | Channel ID |
duration | Video duration (human-readable) |
thumbnailUrl | Highest-res thumbnail URL |
url | Full video URL |
keywords | Video tags/keywords (video pages only) |
category | Video category (video pages only) |
Channel data
| Field | Description |
|---|---|
channelId | YouTube channel ID |
name | Channel name |
subscribers | Subscriber count text |
videoCount | Total video count |
description | Channel description |
joinedDate | Channel creation date |
totalViews | Total channel views |
url | Channel URL |
Input example
{"searchKeywords": ["machine learning tutorial", "cooking recipes"],"channelUrls": ["https://www.youtube.com/@MrBeast"],"videoUrls": ["https://www.youtube.com/watch?v=dQw4w9WgXcQ"],"maxResults": 50,"maxSearchPages": 5}
Input parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
searchKeywords | array | [] | Search queries to find videos |
channelUrls | array | [] | Channel URLs to scrape |
videoUrls | array | [] | Video URLs to scrape |
maxResults | integer | 50 | Max results per search/channel |
maxSearchPages | integer | 5 | Max pagination pages per search |
How it works
- Search — Fetches YouTube search results pages, extracts video renderers from
ytInitialData, and follows continuation tokens for pagination - Channels — Visits the channel's about page for metadata, then the videos tab to list uploads
- Videos — Extracts
ytInitialDataandytInitialPlayerResponsefor comprehensive video details
Cost estimation
- ~1 CU per 100 search results
- ~1 CU per channel (about + videos page)
- ~0.5 CU per 100 individual video pages
Uses Apify residential proxy to avoid blocks.
Limitations
- Comment counts may not always be available (loaded dynamically on some pages)
- Likes are approximate (YouTube shows rounded numbers)
- Search pagination uses YouTube's internal API continuation tokens
- Very large channels may not return all videos in a single run
Tip
For best results, combine search keywords with direct video URLs for the most comprehensive data extraction. Search results provide discovery, while individual video pages give the most detailed metadata.