Apify Youtube Scraper
Pricing
from $2.00 / 1,000 video scrapeds
Apify Youtube Scraper
Pricing
from $2.00 / 1,000 video scrapeds
Rating
0.0
(0)
Developer
Abdelkader BENAISSI
Maintained by CommunityActor stats
0
Bookmarked
3
Total users
2
Monthly active users
3 days ago
Last modified
Categories
Share
YouTube Scraper
Scrape YouTube video metadata over plain HTTP — no headless browser, no API key, no waiting. Search any keywords or point it at a channel's /videos page and get back one dataset row per video: title, channel, view count, duration, publish time, description snippet, watch URL and thumbnail.
Built for AI agents, trend research, competitor monitoring and content pipelines that need YouTube metadata as structured data without burning compute on a browser.
What it does
- Search mode — query like
python tutorialreturns matching videos. - Channel mode — pass a channel URL (
https://www.youtube.com/@mkbhd/videos,/channel/<id>/videos,/c/<name>/videos) to scrape that channel's latest videos. - HTTP-only parsing — fetches the page and extracts YouTube's embedded
ytInitialDataJSON: fast (about a second per scrape) and cheap to run. - Clean fields — view counts parsed to integers (
1.2M views→1200000), titles/channel names joined from text runs, thumbnails with amaxresdefaultfallback. - Robust — unparsable videos are skipped with a warning, one bad entry never kills the run; consent/rate-limit pages are detected and reported instead of crashing.
Input
| Field | Description |
|---|---|
query | Search keywords or a YouTube channel URL (required) |
maxResults | Max videos to return, 1–100 (default 20) |
Example input:
{"query": "python tutorial","maxResults": 20}
Channel example:
{"query": "https://www.youtube.com/@mkbhd/videos","maxResults": 20}
Output
One dataset row per video:
| Field | Description |
|---|---|
videoId / videoUrl | YouTube video ID / watch URL |
title | Video title |
channelName / channelId | Channel name / ID |
viewCount | Views as an integer (null when not shown) |
duration | Duration as shown, e.g. 12:34 (null for live streams) |
publishedAt | Relative publish time, e.g. 3 days ago |
description | Description snippet |
thumbnailUrl | Thumbnail image URL |
Pricing
| Event | Price |
|---|---|
| Video scraped | $0.002 per video successfully scraped |
You are only charged for videos that are scraped and delivered to the dataset — failed or skipped entries cost nothing. (Apify platform usage costs are paid by you as usual.)