Pricing
$9.99/month + usage
YouTube Comments Scraper |
[ β¨YouTube Comments Scraper ] Fast & Reliable Scraper Extract CID, type, publish time, comments, author & page URL in seconds Streamline workflow, save time & gather structured data Perfect for research, analysis & business insights .
Pricing
$9.99/month + usage
Rating
5.0
(1)
Developer
Actor stats
0
Bookmarked
10
Total users
0
Monthly active users
5 months ago
Last modified
Categories
Share
π₯ YouTube Comments Scraper
Quickly extract structured comment data from one or more YouTube videos β including comment text, author info, timestamps, votes, and raw fields.
Built to run as an Apify actor. This README shows a summary, inputs, outputs, examples, troubleshooting tips and proxy recommendations. π§
β¨ Summary
This actor scrapes comments from YouTube video URLs and returns structured JSON objects per video, including:
- π¬ Comments (text, id, author, replies, likes/votes, timestamps)
- π€ Author info (author name, author id, author url, avatar if available)
- π§Ύ Video metadata (video id, video url, title, best-effort commentsCount)
- π¦ Raw payload β the original raw comment object is preserved for every comment so you donβt lose any fields.
Key points:
- Input: one or more YouTube video URLs (
startUrls). - Optional:
maxCommentsto limit how many comments per video are scraped. - Optional:
getAllCommentsto ignoremaxCommentsand fetch all available comments. - Optional:
sortByβtop(highest votes first) ornewest(most recent first).
π Highlights
- β‘ Fast, structured output β one JSON object per video run.
- π§© Preserves full
rawcomment object for custom fields. - π― Exact
maxCommentssupport (whengetAllCommentsisfalse) andgetAllCommentstoggle. - π Proxy-aware (Apify Proxy recommended for stability) β use RESIDENTIAL for best results.
- π Supports sorting by
topornewest.
π οΈ Example Input
{"startUrls":["https://www.youtube.com/watch?v=wT4HcYAeV5U","https://www.youtube.com/watch?v=H6l0q4l2NLo"],"maxComments":100,"sortBy":"top",}
π€ Output
For every video the actor writes results both to the Apify dataset and to container files:
output_<videoId>.jsonβ full JSON object for the video (includingcommentsarray).comments_<videoId>.jsonlβ newline-delimited JSON with one comment per line (good for streaming).- Apify dataset entry for each video β downloadable from the Apify Console. βοΈ
Example output (one video object)
{"videoUrl":"https://www.youtube.com/watch?v=wT4HcYAeV5U","videoId":"wT4HcYAeV5U","title":"YouTube","commentsCount":null,"comments":[{"cid":"Ugxl_IUyS2PaN9t-_wV4AaABAg","type":"comment","publishedTimeText":"7 hours ago","publishedTimeTs":1759729079.617027,"comment":"Madhubanti + Rashmika = π₯","author":"@maddockfilmsindia","authorId":null,"authorUrl":null,"authorThumbnail":null,"replyCount":7,"voteCount":5,"isHearted":false,"isEdited":false,"raw":{"cid":"Ugxl_IUyS2PaN9t-_wV4AaABAg","text":"Madhubanti + Rashmika = π₯","time":"7 hours ago","author":"@maddockfilmsindia","channel":"UCGgi8DSEirlGCQ3B3bO5BsQ","votes":"5","replies":"7","photo":"https://yt3.ggpht.com/bhYAlBYCO9k-CfeGL42c3db-vBGi-3vLwQFgXWrQgHAstpaqE5LxHdIHDYdJ0RVje0-v5j7RLQ=s88-c-k-c0x00ffffff-no-rj","heart":false,"reply":false,"time_parsed":1759729079.616943},"videoId":"H6l0q4l2NLo","pageUrl":"https://www.youtube.com/watch?v=H6l0q4l2NLo"},{"cid":"UgxR7iZmrx-cvVYyIZJ4AaABAg","type":"comment","publishedTimeText":"10 hours ago","publishedTimeTs":1759718280.088529,"comment":"This song honestly has the soul of Aaj Ki Raat.\nFeels like SachinβJigar were asked to recreate that same vibe β and they pulled it off.\nJust try singing Aaj Ki Raat over this track and youβll get exactly what I mean","author":"@saho_x","authorId":null,"authorUrl":null,"authorThumbnail":null,"replyCount":1,"voteCount":4,"isHearted":false,"isEdited":false,"raw":{"cid":"UgxR7iZmrx-cvVYyIZJ4AaABAg","text":"This song honestly has the soul of Aaj Ki Raat.\nFeels like SachinβJigar were asked to recreate that same vibe β and they pulled it off.\nJust try singing Aaj Ki Raat over this track and youβll get exactly what I mean","time":"10 hours ago","author":"@saho_x","channel":"UCnVC00Vv0foM0EKkz6Y1iWQ","votes":"4","replies":"1","photo":"https://yt3.ggpht.com/TUTguFWKoy3k8SUTycBbxzhJ3T7B6enA0MGQqsE77VSCl8YeL4p8dK9iZu1QZ5gqGj_IWqN3=s88-c-k-c0x00ffffff-no-rj","heart":false,"reply":false,"time_parsed":1759718280.088388},"videoId":"H6l0q4l2NLo","pageUrl":"https://www.youtube.com/watch?v=H6l0q4l2NLo"},{"cid":"UgyDoXT2Qt9yi8s_K0V4AaABAg","type":"comment","publishedTimeText":"16 hours ago","publishedTimeTs":1759696680.562509,"comment":"Thama Massive Hit Hai π―π₯","author":"@KAMALBOLTAHAI","authorId":null,"authorUrl":null,"authorThumbnail":null,"replyCount":0,"voteCount":2,"isHearted":false,"isEdited":false,"raw":{"cid":"UgyDoXT2Qt9yi8s_K0V4AaABAg","text":"Thama Massive Hit Hai π―π₯","time":"16 hours ago","author":"@KAMALBOLTAHAI","channel":"UC7QK8aH2kx8kV3ZDb78gudg","votes":"2","replies":"","photo":"https://yt3.ggpht.com/-dSC3L4wVQlPFXaE1DQ0pa861J_1gJmKr0whQ_OBAVuC_du6rp3UNXtb9mIImMk2akwNfj1-=s88-c-k-c0x00ffffff-no-rj","heart":false,"reply":false,"time_parsed":1759696680.562357},"videoId":"H6l0q4l2NLo","pageUrl":"https://www.youtube.com/watch?v=H6l0q4l2NLo"},{"cid":"UgxjmCCpexYiRfqxtOZ4AaABAg","type":"comment","publishedTimeText":"52 minutes ago","publishedTimeTs":1759751159.068628,"comment":"πΏAAJ KI RAAT 2.0β ","author":"@SANJAY_GALAXY_369","authorId":null,"authorUrl":null,"authorThumbnail":null,"replyCount":0,"voteCount":1,"isHearted":false,"isEdited":false,"raw":{"cid":"UgxjmCCpexYiRfqxtOZ4AaABAg","text":"πΏAAJ KI RAAT 2.0β ","time":"52 minutes ago","author":"@SANJAY_GALAXY_369","channel":"UC1aOBn-22LWDKOXIEjWpaBQ","votes":"1","replies":"","photo":"https://yt3.ggpht.com/PgPHT8B88ib2qteQGAaQe_zQWPs5D4hQHM6xlyBijbL0paF_AUO6VPdj0eH49QCT5o_5JiVa=s88-c-k-c0x00ffffff-no-rj","heart":false,"reply":false,"time_parsed":1759751159.068529},"videoId":"H6l0q4l2NLo","pageUrl":"https://www.youtube.com/watch?v=H6l0q4l2NLo"},{"cid":"UgxieB4nLFkp3lMGhY94AaABAg","type":"comment","publishedTimeText":"7 hours ago","publishedTimeTs":1759729079.616322,"comment":"Aaj Ki Raat 2.0 β€","author":"@maddockfilmsindia","authorId":null,"authorUrl":null,"authorThumbnail":null,"replyCount":0,"voteCount":1,"isHearted":false,"isEdited":false,"raw":{"cid":"UgxieB4nLFkp3lMGhY94AaABAg","text":"Aaj Ki Raat 2.0 β€","time":"7 hours ago","author":"@maddockfilmsindia","channel":"UCGgi8DSEirlGCQ3B3bO5BsQ","votes":"1","replies":"","photo":"https://yt3.ggpht.com/bhYAlBYCO9k-CfeGL42c3db-vBGi-3vLwQFgXWrQgHAstpaqE5LxHdIHDYdJ0RVje0-v5j7RLQ=s88-c-k-c0x00ffffff-no-rj","heart":false,"reply":false,"time_parsed":1759729079.616239},"videoId":"H6l0q4l2NLo","pageUrl":"https://www.youtube.com/watch?v=H6l0q4l2NLo"},]"scrapedCount":1}
π Typical fields
| Field | Description |
|---|---|
videoUrl | Input video URL |
videoId | YouTube video ID |
title | Best-effort page title (if available) |
commentsCount | Best-effort comment count (may be null) |
comments | Array of comment objects |
comments[].cid | Comment unique id |
comments[].comment | Comment text |
comments[].author | Author display name |
comments[].authorId | Author channel id (if available) |
comments[].authorUrl | Author channel URL (if available) |
comments[].authorThumbnail | Author avatar URL (if available) |
comments[].publishedTimeText | Human readable time (e.g. "2 days ago") |
comments[].publishedTimeTs | Parsed timestamp (when parseable) |
comments[].replyCount | Number of replies |
comments[].voteCount | Likes / votes count (if available) |
comments[].isHearted | Whether channel owner hearted the comment |
comments[].isEdited | Whether the commenter edited the comment |
comments[].raw | Full raw object returned by underlying parser |
π§© Troubleshooting
| Issue | Possible Cause | Fix / Tip |
|---|---|---|
| Empty dataset | Wrong video URL or comments disabled | Verify URLs and check video has comments; try another video. |
| Fewer comments than expected | maxComments limit or generator yielded fewer | Set getAllComments=true or increase maxComments |
commentsCount is null | Not present in page HTML | Use comments[].raw to inspect raw payload for count |
| Partial metadata | Fields hidden or loaded dynamically | Check raw field; consider retries with proxy |
| Rate limiting / 429 errors | Too many requests without proxy | Use Apify Proxy RESIDENTIAL or reduce concurrency |
Here my another actors :
Youtube Iteams:
- πΆ Youtube Audio Downloader (Video/Shorts)
- Youtube Video Downloader Advanced
- Youtube Video Downloader ( Soundless )
- Youtube Video Downloader
- Youtube Video Details Scraper
- Youtube Transcript Ninja (Subtitles)
- Youtube Thumbnails Downloader & Scraper
- Youtube Tags or Hashtags Scraper
- Youtube Tags Scraper
- Youtube Shorts Scraper lite
- Youtube Shorts Downloader Pro
- Youtube Shorts Comments Scraper
- Youtube Community Posts Scraper
- Youtube Channel Id Scraper Pro
- Youtube Video Transcript Scraper ( Subtitles )
- Youtube Video Comments Scraper
- Youtube Shorts Scraper Pro
- Youtube Shorts Scraper
- Youtube Channel Scraper
- YouTube Video Description Extractor
- YouTube Hashtag Scraper
- YouTube Description Scraper pro
- YouTube Comments Scraper | Pay Per Result
- YouTube Channel ID Scraper
Tiktok Iteams:
- Tiktok Video Downloader
- Tiktok Video Details Scraper Pro
- Tiktok Profile Scraper
- TikTok Video Scraper
- TikTok Profile Videos Scraper
- TikTok Profile Scraper pro
- TikTok Audio Downloader π΅
Snapchat Iteams:
- Snapchat Video Downloader (Spotlight )
- Snapchat Video Details Scraper (Spotlight)
- Snapchat Followers Scraper
- Snapchat Profile Scraper
- Snapchat Profile Scraper Mini
Instagram Iteams:
- Instagram video Downloader + Scraper
- Instagram Video Downloader (Soundlss)
- Instagram Thumbnail Scraper Video & Reels
- Instagram Reels Downloader
- Instagram Profile URL to Username Converter & Extractor
- Instagram Profile Scraper
- Instagram Post Videos Downloader
- Instagram Followers Scraper
- Instagram Audio Downloader
- Instagram Video Scraper + Downloader
- Instagram Video scraper Advanced
- Instagram Video Details scraper
- Instagram Reels Details scraper
- Instagram Followers Scraper Pro
Facebook Iteams:
- Facebook reels Downloader (Separate audio or video)
- Facebook Video Downloader advanced
- Facebook Video Details Scraper Advanced
- Facebook Video Details Scraper
- Facebook Transcript & Subtitle scraper
- Facebook Thumbnail Downloader Video & Reels
- Facebook Reels Downloader Advanced
- Facebook Reels Details Scraper Best and Affordable
- Facebook Reels Details Scraper
- Facebook Page Details Scraper
- Facebook Audio Downloader
