YouTube Scraper - Videos, Shorts, Channels & Playlists
Pricing
from $0.21 / 1,000 videos
YouTube Scraper - Videos, Shorts, Channels & Playlists
Scrape YouTube videos from searches, channels, playlists and single URLs: exact views, likes, publish times, durations, tags and channel data as parsed numbers. $0.30 per 1,000 videos, platform usage included. No minimums, failed inputs and duplicates are free.
Pricing
from $0.21 / 1,000 videos
Rating
0.0
(0)
Developer
Ragnum
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
16 days ago
Last modified
Categories
Features
Share
YouTube Scraper — Videos, Shorts, Channels & Playlists
Scrape YouTube videos from search results, channels, playlists and single video URLs — exact views and likes, publish times, durations, tags, categories, caption languages and channel data, with every number parsed for you. $0.30 per 1,000 videos, platform usage included.
- No minimum per query, no per-query fee, no limit on inputs per run. A single video URL is welcome and returns exactly one row.
- Mix searches, video URLs, Shorts,
@handles, channel URLs and playlists in one run. - Numbers as numbers:
"1.2M views"→1200000, in any interface language (the raw text is kept too). - Failed inputs, unavailable videos and duplicates are free. No login, no cookies, no browser extension.
Copy to your AI assistant
Use the Apify actor ragnum/youtube-scraper to get YouTube videos.Minimal input: {"searchQueries": ["lofi hip hop"], "maxResultsPerInput": 20}Other inputs: startUrls (video / Shorts / channel / @handle / playlist / search URLs, mixed), includeDetails (default true),uploadDate, duration, sortBy, features, contentType (channels: videos | shorts | streams | all), maxResults.Each dataset row is one video. Price: $0.30 per 1,000 videos (error rows and duplicates are free).Full docs: https://apify.com/ragnum/youtube-scraper
Quick start
Search, most viewed this month, over 20 minutes:
{ "searchQueries": ["python tutorial", "react tutorial"], "maxResultsPerInput": 100, "sortBy": "views", "uploadDate": "month", "duration": "long" }
A channel's latest Shorts and two single videos:
{ "startUrls": ["https://www.youtube.com/@mkbhd/shorts", "https://youtu.be/dQw4w9WgXcQ", "https://www.youtube.com/watch?v=9bZkp7q19f0"], "maxResultsPerInput": 50 }
A playlist, listing fields only (fastest):
{ "startUrls": ["https://www.youtube.com/playlist?list=PLFgquLnL59alCl_2TQvOiD5Vgm1hCaGSI"], "includeDetails": false, "maxResultsPerInput": 200 }
Input
| Field | Type | Default | What it does |
|---|---|---|---|
searchQueries | string[] | — | Keywords; each query is searched separately |
startUrls | string[] | — | Video, Shorts, /live/, channel (/@handle, /channel/UC…, /c/…, /user/…), @handle, UC… ID, playlist URL/ID, search URL — mixed |
maxResultsPerInput | integer | 50 | 1–10,000 videos per query / channel / playlist (single video URLs always return one row) |
maxResults | integer | — | Optional total cap for the run |
contentType | enum | videos | Channels: videos, shorts, streams, all |
sortBy | enum | relevance | Searches: relevance, views. Channels: newest, popular, oldest |
uploadDate | enum | any | Searches: hour, today, week, month, year |
duration | enum | any | Searches: short (< 3 min), medium (3–20 min), long (> 20 min) |
features | enum[] | [] | Searches: hd, 4k, live, subtitles, creativeCommons, hdr, vr180, 360 |
includeDetails | boolean | true | Read each video's page for exact time, likes, tags, category, captions list, full description. Same price either way |
hl / gl | string | en / US | Interface language and region |
maxConcurrency | integer | 10 | Parallel requests (1–20) |
Output
One row per video. With details on:
| Field | Example | Notes |
|---|---|---|
videoId, url, type | dQw4w9WgXcQ, …, video | type: video, short, live, upcoming |
title, description | Full description with details; snippet otherwise | |
durationSeconds, durationText | 213, 3:33 | |
viewCount, viewCountText | 1834999906, 1,834,999,906 views | Exact with details |
likeCount, likeCountText | 19495941, 19M | |
commentCount, commentCountText | 2400000, 2.4M | Rounded by YouTube |
publishedAt, publishedDate | 2009-10-25T06:57:33.000Z, 2009-10-25 | Exact, from the video details |
publishedTimeText, publishedAtEstimate | 17 years ago, — | The estimate is filled only when the exact time is unknown (listing-only rows) and is labelled as an estimate |
isLive, isShort, isFamilySafe, category | false, false, true, Music | |
tags, hashtags | ["rick astley", …], ["#RickAstley"] | |
thumbnails | [{url, width, height}] | Largest first |
channel | {id, handle, name, url, isVerified, subscriberCount} | |
captionsAvailable | ["en", "en-auto", "de-DE"] | Caption languages; -auto = auto-generated. null when YouTube did not include the list for that video |
detailsFetched, detailsError | true, null | detailsError says why some detail fields are empty |
source, scrapedAt | The input that produced the row; scrape time |
Example row (shortened):
{"videoId": "dQw4w9WgXcQ", "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ", "type": "video","title": "Rick Astley - Never Gonna Give You Up (Official Video) (4K Remaster)","durationSeconds": 213, "viewCount": 1834999906, "likeCount": 19495941, "commentCount": 2400000,"publishedAt": "2009-10-25T06:57:33.000Z", "category": "Music", "isFamilySafe": true,"tags": ["rick astley", "Never Gonna Give You Up"], "hashtags": ["#RickAstley"],"channel": { "id": "UCuAXFkgsw1L7xaCfnd5JJOw", "handle": "@RickAstleyYT", "name": "Rick Astley", "isVerified": true, "subscriberCount": 4560000 },"captionsAvailable": ["en", "en-auto", "de-DE", "ja", "pt-BR", "es-419"],"source": "https://www.youtube.com/watch?v=dQw4w9WgXcQ", "scrapedAt": "2026-11-08T10:03:49.757Z"}
Error rows. When an input can't be returned (not a YouTube URL, channel not found, video unavailable, blocked after retries), the run writes { input, error, errorCode, retryable } so automations can match every input to an outcome. Error rows are never charged. Filter them out with the errorCode field or use the "Overview" view.
Run summary. Every run stores RUN_SUMMARY in its key-value store: rows per input, why each input stopped, error rows, duplicates skipped, field fill rates and warnings.
Pricing
Pay per result, platform usage included: $0.30 per 1,000 videos (video event, $0.0003). Nothing else is charged — no start fee, no per-query fee. Error rows and duplicates are free.
| Videos | Price |
|---|---|
| 100 | $0.03 |
| 1,000 | $0.30 |
| 10,000 | $3.00 |
Set "Maximum cost per run" in the run options to cap spending; the run stops cleanly when it is reached and keeps everything scraped so far. On the Apify Free plan, runs are a preview: the first input only and up to 20 videos.
Limits and known gaps
- Transcripts are not available in this version. The list of caption languages is included when YouTube returns it and is often
null(unknown) — treat it as a hint, not a guarantee. - Like and comment counts are shown rounded by YouTube in some places (
19M,2.4M);likeCountis exact when YouTube exposes it. publishedAtEstimateis computed from texts like "3 days ago" and is an estimate.publishedAtis exact when details are on.- Searches can't be sorted by upload date any more (YouTube's own limitation); use
uploadDateto get recent videos. - Very large channels and searches are paginated by YouTube; a search usually ends after several hundred results.
- Thumbnail URLs are YouTube CDN links and may change over time.
- Only public, logged-out data. Private, members-only and age-restricted details are not returned.
- No video, audio or image downloads and no streaming URLs.
FAQ
Can I scrape a single video? Yes. Put the URL in startUrls; you get one row and pay for one video.
Does it work with Shorts and live streams? Yes. Shorts URLs, a channel's Shorts tab (contentType: "shorts") and live streams (contentType: "streams") are supported; live rows have type: "live".
Are numbers parsed in other languages? Yes — "2.550.184 Aufrufe", "21,4 Mio. Abonnenten", "948万回視聴" all become numbers. Set hl to get display texts in your language.
Do I need a YouTube account or API key? No.
What if a video is unavailable? You get an uncharged error row with errorCode: "VIDEO_UNAVAILABLE".
Legal
This actor collects only publicly available data that YouTube shows to logged-out visitors. You are responsible for how you use it: make sure your use complies with applicable laws (such as GDPR and CCPA, where personal data like channel names is involved) and with YouTube's Terms of Service. Don't use the data to spam, harass or profile individuals.