YouTube Scraper: Outlier Videos, Channels, Comments & Alerts
Pricing
from $1.00 / 1,000 videos
YouTube Scraper: Outlier Videos, Channels, Comments & Alerts
Videos and Shorts of any YouTube channel, search or playlist, each scored against its channel: views per hour and an outlier score (views over the channel's median), with a filter for breakout videos. New-video alerts, subscribers, comments. No API key. $1 per 1,000 videos.
Pricing
from $1.00 / 1,000 videos
Rating
0.0
(0)
Developer
Spyridon Pikoulas
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
4 days ago
Last modified
Categories
Features
Share
Every video and Short of the YouTube channels, searches and playlists you give it, each scored against its own channel, for creators finding what breaks out in their niche, agencies tracking clients and competitors, and analysts building datasets:
-
Outlier videos: every video comes with
viewsPerHourand anoutlierScore, its views over the median of its channel's latest uploads. Set Outliers only to 3, say, and a search gives only the videos that did three times their channel's usual: the topics and titles that work, even on small channels. -
New-video alerts: with New videos only, a scheduled run gives only the videos no earlier run with the same memory gave, free of the ones it leaves out, and each channel's subscriber change since the last run.
-
Channels: by URL, @handle or channel ID. You get the channel's details and its videos, Shorts and live streams, newest, most popular or oldest first.
-
Search: the videos or Shorts YouTube shows for a keyword, with its filters: upload date, duration, and features such as 4K, subtitles, Creative Commons or live.
-
Playlists: every video of a playlist, in its order.
-
Comments: as many as you need per video, top or newest first, with their replies if you want them.
-
Videos and Shorts: by URL or ID, and Include video details for any video. These read YouTube's player, which usually stops the run on Apify's IPs (see Good to know).
Every video comes with its title, rounded views, approximate date and duration, as channel tabs, playlists and search show them. Every channel comes with its subscribers, exact video and view counts, description, links, country and join date. Every comment comes with its text, author, likes, reply count, date, and whether it's pinned, hearted by the creator, or edited.
It needs no browser, no login and no API key. A channel and its 40 videos took 4 seconds, a 30-video search 7, a channel with 3 videos and 10 comments on each 4, and one with 50 videos and 1,500 comments and replies 51. It costs $1 per 1,000 videos and $0.30 per 1,000 comments.
What people use it for
- Content ideas: the outliers of a niche's searches, the videos that beat their channel's median many times over.
- Competitor and influencer research: every upload of a channel with its views, dates and which ones broke out.
- Content research: what ranks for a keyword, which lengths and topics get the views.
- Comment analysis: audience sentiment, questions and feature requests, with the replies.
- Monitoring: the new videos of a list of channels or a search, day by day, each one once.
- Datasets for AI: titles and comments at scale.
How to scrape YouTube
- Click Try for free; Apify's free plan covers a first run.
- Enter Channels, Playlists or Search terms, and how many videos you want.
- Click Start, then download the results as JSON, CSV, Excel or HTML, or read them through the API.
An input with more options:
{"channels": ["@mkbhd", "https://www.youtube.com/@veritasium"],"maxVideosPerChannel": 100,"maxShortsPerChannel": 20,"channelSort": "newest","searchTerms": ["sourdough bread"],"maxResultsPerSearch": 50,"uploadDate": "month","playlists": ["https://www.youtube.com/playlist?list=PLFgquLnL59alCl_2TQvOiD5Vgm1hCaGSI"],"maxCommentsPerVideo": 100,"maxRepliesPerComment": 5}
maxCommentsPerVideo counts replies too. Turn off includeChannelDetails to get a channel's videos
only.
Breakout videos of a niche, and a daily alert of new ones:
{"searchTerms": ["home espresso", "sourdough bread"],"maxResultsPerSearch": 100,"uploadDate": "month","minOutlierScore": 3,"onlyNew": true,"memory": "niche-outliers"}
With Outliers only or New videos only, the video limits count the videos checked, and only those given
are charged. The run's status says how many of those checked it gave. The memory is kept in your account's
key-value store youtube-memory, one record per Memory name; a video not listed for 180 days is forgotten.
How the outlier score works
A channel's baseline is the median views of its latest uploads of the kind (videos, Shorts or streams, up to 30),
read once per channel in a run. A video at 3 has three times the views its channel usually gets. A channel with
fewer than 5 uploads of the kind has no baseline, and its videos no score. viewsPerHour is its views over the
hours since it went up, from "5 hours ago" where YouTube says so, else from its date.
Output
A video with Include video details, when YouTube's player answers. Without them it has the title, rounded views, an approximate date and the duration:
{"type": "video","id": "dQw4w9WgXcQ","url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ","title": "Rick Astley - Never Gonna Give You Up (Official Video) (4K Remaster)","channelName": "Rick Astley","channelId": "UCuAXFkgsw1L7xaCfnd5JJOw","channelUrl": "https://www.youtube.com/channel/UCuAXFkgsw1L7xaCfnd5JJOw","channelHandle": "@RickAstleyYT","channelIsVerified": true,"subscribers": 4550000,"publishedAt": "2009-10-24T23:57:33-07:00","durationSeconds": 213,"views": 1820558994,"likes": 19423981,"commentsCount": 2400000,"commentsOff": false,"description": "The official video for “Never Gonna Give You Up” by Rick Astley. ...","hashtags": ["RickAstleyNever", "RickAstley", "NeverGonnaGiveYouUp", "WheneverYouNeedSomebody", "OfficialMusicVideo"],"keywords": ["rick astley", "Never Gonna Give You Up", "nggyu", "never gonna give you up lyrics", "rick rolled"],"category": "Music","thumbnail": "https://i.ytimg.com/vi/dQw4w9WgXcQ/maxresdefault.jpg","isFamilySafe": true,"isUnlisted": false,"liveStatus": null,"liveStartedAt": null,"input": "https://www.youtube.com/watch?v=dQw4w9WgXcQ","position": null,"viewsPerHour": 12162.3,"channelMedianViews": 102500,"outlierScore": 17761.55}
A channel:
{"type": "channel","id": "UCBJycsmduvYEL83R_U4JriQ","url": "https://www.youtube.com/channel/UCBJycsmduvYEL83R_U4JriQ","handle": "@mkbhd","title": "Marques Brownlee","description": "MKBHD: Quality Tech Videos | YouTuber | Geek | Consumer Electronics | Tech Head | Internet Personality!\n\nbusiness@MKBHD.com\n\nNYC","subscribers": 21300000,"videos": 1853,"views": 5703905192,"joinedAt": "2008-03-21","country": "United States","isVerified": true,"links": [{"title": "Twitter", "url": "http://twitter.com/MKBHD"}, {"title": "Instagram", "url": "http://instagram.com/MKBHD"}],"keywords": "MKBHD MarquesBrownlee Marques Brownlee","avatar": "https://yt3.googleusercontent.com/qu4TmIaYUlS41-dJ9gZ7DUR3nilvmB5_11i6OKSdvNnBNiyOusZP1bMN6ICnuxtjFBb6ioKgRQ=s900-c-k-c0x00ffffff-no-rj","isFamilySafe": true,"input": "https://www.youtube.com/@mkbhd"}
With New videos only, a channel also has subscribersChange, since the last run with the same memory.
A comment:
{"type": "comment","id": "Ugzge340dBgB75hWBm54AaABAg","videoId": "dQw4w9WgXcQ","videoTitle": "Rick Astley - Never Gonna Give You Up (Official Video) (4K Remaster)","text": "can confirm: he never gave us up","author": "@YouTube","authorChannelId": "UCBR8-60-B28hp2BmDPdntcQ","authorIsVerified": true,"authorIsChannelOwner": false,"likes": 320000,"replyCount": 963,"publishedAt": "2025-09-27","publishedTimeText": "1 year ago","isEdited": false,"isPinned": true,"isHearted": true,"isReply": false,"parentId": null}
Shorts have "type": "short" and the same fields. A reply has "isReply": true and its comment's
ID as parentId.
Use it as an API
One call runs it and returns the results as JSON (for runs under 5 minutes; longer ones start a run and read its dataset). Apify's Python and JavaScript clients, and its Make, Zapier and n8n integrations, work the same way.
curl -X POST "https://api.apify.com/v2/acts/pikoulas~youtube/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \-H "Content-Type: application/json" \-d '{"channels": ["@mkbhd"], "maxVideosPerChannel": 5, "searchTerms": ["sourdough bread"], "maxResultsPerSearch": 5, "maxCommentsPerVideo": 5}'
AI agents can call it as a tool through Apify's MCP server: https://mcp.apify.com?tools=pikoulas/youtube.
How much does it cost to scrape YouTube?
You pay $0.001 per video or Short, which is $1 per 1,000, $0.001 per channel, and $0.0003 per comment or reply, which is $0.30 per 1,000. There are no monthly fees. Scores and baselines are free, and so are the videos Outliers only or New videos only leave out.
Good to know
- YouTube shows comment and channel dates only as "3 weeks ago" and rounds them down, so
publishedAtof a comment is the latest date it can be. Likes of comments, subscribers and comment counts are rounded by YouTube too (320K, 21.3M). - Without video details, dates of channel and playlist videos are approximate the same way, and
Shorts from a channel's tab have no date at all.
publishedAfterstill works exactly: the run fetches the date of every video that could be on either side of it, from the player (below). - YouTube's search sorts by relevance or popularity only; it dropped sorting by upload date and by
rating. Use
uploadDatefor recent results. - YouTube's player usually refuses Apify's IPs, with "Sign in to confirm you're not a bot" or a
plain 403. Videos by URL, Include video details and
publishedAfterclose to a video's date all read that player. The run then stops, keeps what it has and says so in the log. It doesn't answer the page or try another IP, so such a run usually comes back with little or nothing, at no charge for what it didn't read. Channels, playlists, search and comments don't read the player. - Any other request YouTube keeps refusing is asked again from the same IP after a wait; if that goes on, the run stops the same way. Comments can meet this on some of Apify's IPs (1 of 9 of our runs): the videos still come, without their comments.
- Private, deleted and members-only videos can't be scraped; the log names them.
FAQ
Is it legal to scrape YouTube?
It collects only what YouTube shows publicly, without logging in. YouTube's terms prohibit this, and your use of it is your own responsibility. Personal data is also protected by laws such as the GDPR and the CCPA. If you're unsure, ask a lawyer; Apify's Is web scraping legal? is a good start.
Something missing or not working?
Open an issue on the Issues tab with the input you used, or ask there for a field you need.
If it does what you need, a review on the Reviews tab helps others find it.