YouTube Scraper
Pricing
from $1.50 / 1,000 results
YouTube Scraper
Scrape YouTube searches, channels, playlists and videos without an API key or quota: views, duration, tags, subscribers, plus optional transcripts (text, SRT, VTT), comments, likes and engagement rate (these may need a residential proxy). Filtered or failed videos never billed. $3 per 1,000 results.
Pricing
from $1.50 / 1,000 results
Rating
0.0
(0)
Developer
Badr Bouargan
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
0
Monthly active users
2 days ago
Last modified
Categories
Features
Share
What is YouTube Scraper?
YouTube Scraper extracts views, likes, comments, durations and transcripts from YouTube searches, channels, playlists and videos, so you can research topics, compare creators and feed transcripts to AI tools without an API key or quota. It reads the public pages any visitor sees, with yt-dlp, and never logs in. It does not use the official YouTube Data API. You pay per row saved.
- Scrape searches, channels, playlists and video links, several of each in one run.
- Get views, likes, comment counts, duration and date of every video, with tags, hashtags and category.
- Use computed metrics: engagement rate, views per day, likes per 1,000 views and performance against the channel's average.
- Add transcripts in text, SRT or VTT: published subtitles first, automatic captions as fallback.
- Collect comments and replies, with an option to anonymise authors.
- Filter before you pay: minimum views or likes, date, Shorts, long videos or live, duration and title keywords.
- Pay only for rows saved: failed, filtered and partial videos are never billed.
- Open a visual report of every run, with cards, charts, filters and exports.
Who uses it: creators and content strategists, influencer marketers, YouTube SEO specialists, market researchers, and developers feeding transcripts to AI tools.
This Actor is not affiliated with, endorsed by or sponsored by YouTube or Google. It reads only public pages and never logs in.
What data can you extract from YouTube?
One row per video, and optionally one per channel and per comment (type). Every video row has the same columns, null when unknown.
| Field | Description | Example |
|---|---|---|
🎬 title, url, videoId | The video | Best of lofi hip hop 2021 ✨ [beats to relax/study to] |
👁️ viewCount, likeCount, commentCount | Views, likes and comments | 58985871, 500688, 10000 |
⏱️ duration, durationSeconds, isShort | Length and Shorts flag | 6:10:58 |
📅 publishedAt, videoAgeDays | Upload date and age | 2021-12-31T16:30:13+00:00 |
📈 engagementRate, viewsPerDay, likesPerThousandViews | Computed metrics | 0.866, 32916, 8.5 |
🚀 performanceVsChannel | Views of this video ÷ channel average | 84.946 |
🏷️ tags, hashtags, category | Keywords and category | lofi, Music |
📺 channelTitle, channelHandle, channelSubscribers | The channel | Lofi Girl, @LofiGirl, 15800000 |
📝 transcript, transcriptIsAutomatic | Transcript (option) | text, SRT or VTT |
💬 text, author, likeCount (comment rows) | Comments (option) | isReply, parentCommentId |
🧩 detailsLevel, detailsNote | full, partial or listing | full |
Channel rows (type: "channel") carry subscriberCount, averageViewsPerVideo, viewsPerSubscriber, keywords and verified. Input and output names familiar from other YouTube scrapers (startUrls, maxResults, likes, commentsCount, channelName, numberOfSubscribers) are accepted too.
How to scrape YouTube
- Click Try for free on this page, or create a free Apify account.
- Type a keyword in Search queries (
lofi hip hop), a channel in Channels (@LofiGirl), or paste video and playlist links. - Set Maximum videos per source; 10 is a good first run.
- Turn on Get the transcript or Get comments if you need them, and run the Actor with Start.
- Download your data as JSON, CSV, Excel or HTML, or open the visual report.
Try it free: run it once with the default input. The prefill searches lofi hip hop with 5 videos per source and took about a minute on Nov 27, 2026. With an empty input, the Actor runs a 10-video demo search instead of failing.
What you can paste:
| You paste | Understood as |
|---|---|
https://www.youtube.com/watch?v=…, youtu.be/…, /shorts/…, /live/…, an 11-character ID | A video |
https://www.youtube.com/@LofiGirl, @LofiGirl, UC…, /channel/UC…, /c/…, /user/… | A channel |
https://www.youtube.com/playlist?list=PL…, PL… | A playlist |
…/results?search_query=…, /hashtag/lofi, plain words in Start URLs | A search |
Lists on one line, extra spaces and duplicates are cleaned, and a link pasted in the wrong field is still routed correctly. Anything that is not YouTube is listed in FAILED_INPUTS, never billed.
Two speeds: full detail (one page per video) or list mode (up to 50 videos per request, without likes or exact date).
How much does it cost to scrape YouTube?
You pay per row saved: a video, channel or comment. Platform usage is included.
| Event | Free | Starter | Scale | Business and above |
|---|---|---|---|---|
| Result (per 1,000) | $3.00 | $2.40 | $1.95 | $1.50 |
| Actor start (per GB of memory, minimum one) | $0.00005 | $0.00005 | $0.00005 | $0.00005 |
The default memory is 1 GB, so a run starts at $0.00005.
The Apify Free plan gives you $5 of platform credit each month. That covers about 1,650 rows a month at Free plan prices.
Examples on the Free plan:
- The prefill (4 full videos saved) costs about $0.012.
- 20 videos with transcripts = 20 rows, about $0.06.
- 10 videos with 20 comments each = 210 rows, about $0.63. Cap comments with Maximum comments per video.
What is never billed:
- Failed inputs: private, deleted or refused videos go to
FAILED_INPUTS. - Filtered videos: removed by your views, likes, date or type filters.
- Partial videos: when YouTube refuses the full video page on every attempt, the video is saved free in a separate dataset of the run (
PARTIAL_ROWSrecord), withdetailsLevel: "partial"or"listing"and adetailsNote.
Set Maximum results for the whole run, or a maximum cost per run, and the run stops cleanly at that limit.
Announced prices, not active yet. A later pricing keeps video and channel rows at the price above, gives comment rows a lower price ($2.00 to $0.90 per 1,000) and adds a fee per AI summary ($10.00 to $6.00 per 1,000 videos). Until it is switched on, every row costs the price above and AI summaries are free; the run log says so. A row is never charged twice.
⬇️ Input
The prefill:
{"searchQueries": ["lofi hip hop"],"maxVideosPerSource": 5,"videoDetails": "full","maxCommentsPerVideo": 20,"proxyConfiguration": { "useApifyProxy": false },"maxConcurrency": 8}
A research run with transcripts and comments:
{"searchQueries": ["python tutorial"],"searchUploadDate": "month","searchFeatures": ["hd", "subtitles"],"channelUrls": [{ "url": "https://www.youtube.com/@LofiGirl" }],"maxVideosPerSource": 20,"maxItems": 100,"includeTranscript": true,"subtitlesFormat": "text","includeComments": true,"maxCommentsPerVideo": 20,"videoType": "videos","minViews": 10000}
| Field | What it does |
|---|---|
| Search queries, Channels, Videos, Playlists, Start URLs | What to read. |
| Maximum videos per source, Maximum results for the whole run | Exact caps; separate caps for Shorts and live streams. |
| How much detail per video | full (likes, comments, exact date) or list mode (faster). |
| Add channel data to every video | Subscribers and channel average views. |
| Get comments, Comments order, Include replies | Top or newest comments, with replies. |
| Get the transcript, Transcript format, Timestamped segments | Text, SRT or VTT, with optional segments. |
| Video type, Minimum views, Minimum likes, Published within, Title contains | Filters applied before saving. |
| Search: upload date, duration, features | YouTube's own search filters. |
| AI summary and chapters | Your own Claude, ChatGPT or Gemini key; available from a date to be announced, no effect until then. |
| Anonymise comments | Keeps the text, removes author name and link. |
⬆️ Output
Each run saves a dataset with one row per result. You can download your data as JSON, CSV, Excel, XML or HTML, or read it through the API. A video row from the run below, shortened:
{"type": "video","id": "n61ULEU7CO0","url": "https://www.youtube.com/watch?v=n61ULEU7CO0","title": "Best of lofi hip hop 2021 ✨ [beats to relax/study to]","publishedAt": "2021-12-31T16:30:13+00:00","videoAgeDays": 1792,"duration": "6:10:58","durationSeconds": 22258,"isShort": false,"viewCount": 58985871,"likeCount": 500688,"commentCount": 10000,"viewsPerDay": 32916,"engagementRate": 0.866,"likesPerThousandViews": 8.5,"performanceVsChannel": 84.946,"tags": ["lofi", "lofi hip hop", "chill beats"],"category": "Music","hasCaptions": false,"channelTitle": "Lofi Girl","channelHandle": "@LofiGirl","channelSubscribers": 15800000,"channelVerified": true,"channelAverageViews": 694393,"detailsLevel": "full","transcript": null}
The table view of the run's visual report (the Type and Format columns hidden to fit the width; one thumbnail showing a cartoon character blurred):

Real run UhzaUXtY4D2qpTZ6v · Nov 27, 2026 · prefill: search "lofi hip hop", 5 videos per source
That run saved 4 full videos. A fifth video, whose full page YouTube refused, went free of charge to the separate PARTIAL_ROWS dataset, and the report says so at the top.
Every run also saves a visual report: warnings, key figures (videos, total and median views, total likes, average engagement, channels), views per video, channels by total views, most viewed videos and data completeness, then one card per video, channel or comment. You get search, filters, sorting, a thumbnail viewer, and JSON, CSV or Excel export. Open it from the Output tab (Visual report) or the REPORT record. Thumbnails load from YouTube in your browser. The report holds the first 2,000 results, and the dataset keeps every row.

Real run UhzaUXtY4D2qpTZ6v · Nov 27, 2026 · prefill: search "lofi hip hop", 5 videos per source
Records in the run's key-value store:
RUN_SUMMARY: status, stop reason, videos, channels and comments saved, failures by code, rows by details level, partial rows not charged andproxyNote.FAILED_INPUTS: each failed input with a stablecodeand a reason. Never billed.PARTIAL_ROWS: the link to the free dataset of videos with incomplete details.REPORT: the visual report. Saving it is never billed and can never make a run fail.
The dataset has Videos, Channels, Comments and Summaries views.
Integrations and API
You can start runs and read results from code with the apify-client package (npm, PyPI). The full reference is in the Apify API docs.
Python:
from apify_client import ApifyClientclient = ApifyClient("YOUR_APIFY_TOKEN")run = client.actor("badr_xba/youtube-data-scraper").call(run_input={"searchQueries": ["python tutorial"],"channelUrls": ["@LofiGirl"],"maxVideosPerSource": 20,})for item in client.dataset(run["defaultDatasetId"]).iterate_items():print(item["type"], item.get("title"), item.get("viewCount"))
JavaScript:
import { ApifyClient } from 'apify-client';const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });const run = await client.actor('badr_xba/youtube-data-scraper').call({startUrls: ['https://www.youtube.com/@LofiGirl'],maxVideosPerSource: 20,includeTranscript: true,});const { items } = await client.dataset(run.defaultDatasetId).listItems();console.log(items.length);
cURL (runs the Actor and returns the rows in one call):
curl -X POST "https://api.apify.com/v2/acts/badr_xba~youtube-data-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \-H "Content-Type: application/json" \-d '{"searchQueries": ["lofi hip hop"], "maxVideosPerSource": 10}'
Other ways to connect it:
- Make, n8n and Zapier: push new videos into Google Sheets, Airtable, Notion or Slack when a run ends.
- Webhooks: trigger an action when a run ends, and branch on
RUN_SUMMARY.status(docs). - Schedules: a weekly run on competitor channels tracks views per day and engagement (docs).
- MCP: add
https://mcp.apify.com/?actors=badr_xba/youtube-data-scraperto Claude, ChatGPT or Cursor (docs).
Other YouTube scrapers
More Actors by the same developer:
- YouTube Email Scraper: the business emails the channels publish.
- YouTube AI Summary, Transcript & Channel Analytics: official captions, AI summaries and channel analytics.
- TikTok Scraper: the same creators on TikTok.
- Instagram Reel Scraper: reel plays, sponsors and music.
- Kick Scraper: streamers, followers and viewers on Kick.
- AI Document & Web Analyzer (Claude): analyse transcripts with AI.
❓ FAQ
Is it legal to scrape YouTube?
The Actor reads only public data that anyone can see without signing in, and never downloads video or audio files. You are responsible for complying with YouTube's terms and with data-protection law such as the GDPR. Comment authors' names are personal data: use Anonymise comments if you do not need them. The Apify blog explains the general rules in Is web scraping legal?.
Can I use YouTube Scraper through an MCP server?
Yes. Add https://mcp.apify.com/?actors=badr_xba/youtube-data-scraper to your MCP client (Claude, ChatGPT, Cursor). You can then ask, for example, "get the 20 latest videos of @LofiGirl with views and likes".
Can I integrate YouTube Scraper with other apps?
Yes. It works with Make, n8n, Zapier, Google Sheets, Google Drive, Slack and any tool that accepts webhooks.
Can I use YouTube Scraper with the Apify API or in Python?
Yes. Use apify-client for Python or JavaScript, or call the REST API directly. The examples above show all three.
How much does it cost to scrape YouTube?
$3.00 per 1,000 rows on the Free plan, down to $1.50 on Business, plus $0.00005 per GB of memory at the start. Failed, filtered and partial videos are never billed.
Do I need proxies to scrape YouTube?
No. The prefill runs without a proxy. When YouTube refuses a page, each retry uses a new Apify datacenter address, up to 8 attempts in about 90 seconds. Residential proxies are not used: a RESIDENTIAL group set in Proxy is replaced by the datacenter proxy, and RUN_SUMMARY.proxyNote says so.
Is there an official YouTube API?
Yes, the YouTube Data API v3. It needs a Google Cloud project, an API key and a daily quota, and it returns no transcripts. This Actor does not use it: it reads the public pages any visitor sees, so it needs no key and has no quota.
Are transcripts always available?
Only when the video has subtitles. Published subtitles come first and automatic captions are the fallback; transcriptIsAutomatic tells you which.
What can't it do?
- Not available: private, members-only, deleted and age-restricted videos (listed in
FAILED_INPUTS). - Not available: dislikes, revenue, watch time and YouTube Analytics data.
- No video or audio download, and no speech-to-text.
- List mode has no likes or exact dates: YouTube's lists do not contain them.
- Full details are not guaranteed when YouTube refuses the player data; run those videos again later.
YouTube Scraper not working?
code in FAILED_INPUTS | What to do |
|---|---|
INVALID_INPUT | Not a YouTube link, handle, ID or search. Fix the value. |
VIDEO_UNAVAILABLE | Private, deleted, age-restricted or region-locked. |
SOURCE_NOT_FOUND | Channel, playlist or search not found. Check the link. |
BLOCKED_BY_YOUTUBE | YouTube refused every attempt. Run it again later, with fewer videos in parallel. |
TIME_LIMIT | Not finished before the run's timeout. Raise the timeout or lower the limits. |
PARTIAL_DETAILS | Only partial details, and they could not be saved free. Run it again later. |
- Videos missing from the main dataset: they had incomplete details; open the
PARTIAL_ROWSrecord. - The run succeeded but saved nothing: the status message says why, and nothing is charged. Turn on Mark the run as failed on input errors to get a Failed run instead.
- The run stopped early:
RUN_SUMMARY.stopReasonsaysmaxItems,budgetortimeLimit.
Your feedback
Found a bug, a missing field or a video that should have worked? Open an issue on the Issues tab with your run ID. A short review on the Store page also helps other users find the Actor.