VOOZH about

URL: https://apify.com/alpha-scraper/youtube-comments-scraper

⇱ YouTube Comments Scraper | Β· Apify


Pricing

$9.99/month + usage

Go to Apify Store

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

πŸ‘ Alpha Scraper

Alpha Scraper

Maintained by Community

Actor stats

0

Bookmarked

10

Total users

0

Monthly active users

5 months ago

Last modified

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: maxComments to limit how many comments per video are scraped.
  • Optional: getAllComments to ignore maxComments and fetch all available comments.
  • Optional: sortBy β€” top (highest votes first) or newest (most recent first).

πŸš€ Highlights

  • ⚑ Fast, structured output β€” one JSON object per video run.
  • 🧩 Preserves full raw comment object for custom fields.
  • 🎯 Exact maxComments support (when getAllComments is false) and getAllComments toggle.
  • 🌐 Proxy-aware (Apify Proxy recommended for stability) β€” use RESIDENTIAL for best results.
  • πŸ” Supports sorting by top or newest.

πŸ› οΈ 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 (including comments array).
  • 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

FieldDescription
videoUrlInput video URL
videoIdYouTube video ID
titleBest-effort page title (if available)
commentsCountBest-effort comment count (may be null)
commentsArray of comment objects
comments[].cidComment unique id
comments[].commentComment text
comments[].authorAuthor display name
comments[].authorIdAuthor channel id (if available)
comments[].authorUrlAuthor channel URL (if available)
comments[].authorThumbnailAuthor avatar URL (if available)
comments[].publishedTimeTextHuman readable time (e.g. "2 days ago")
comments[].publishedTimeTsParsed timestamp (when parseable)
comments[].replyCountNumber of replies
comments[].voteCountLikes / votes count (if available)
comments[].isHeartedWhether channel owner hearted the comment
comments[].isEditedWhether the commenter edited the comment
comments[].rawFull raw object returned by underlying parser

🧩 Troubleshooting

IssuePossible CauseFix / Tip
Empty datasetWrong video URL or comments disabledVerify URLs and check video has comments; try another video.
Fewer comments than expectedmaxComments limit or generator yielded fewerSet getAllComments=true or increase maxComments
commentsCount is nullNot present in page HTMLUse comments[].raw to inspect raw payload for count
Partial metadataFields hidden or loaded dynamicallyCheck raw field; consider retries with proxy
Rate limiting / 429 errorsToo many requests without proxyUse Apify Proxy RESIDENTIAL or reduce concurrency

Here my another actors :

Youtube Iteams:

Tiktok Iteams:

Snapchat Iteams:

Instagram Iteams:

Facebook Iteams:

Amazon Iteams:

You might also like

Youtube Video Comments Scraper

alpha-scraper/youtube-video-comments-scraper

[ Lowest Price πŸ’Ž ] Lightning Fast - Extract CID, type, published time, comments & authors Grab page URLs instantly Collect extensive data in seconds Boost productivity & streamline your workflow

8

5.0

Youtube Comments Scraper

scrapers-hub/youtube-comments-scraper

YouTube comments scraper to collect comments, replies, and user data from YouTube videos πŸ’¬πŸ“Š Ideal for sentiment analysis, audience insights, and research. Fast, accurate, and scalable.

Youtube Comments Scraper

scraper-engine/youtube-comments-scraper

YouTube Comments Scraper extracts comments from any public YouTube video or channel. Gather usernames, timestamps, likes, replies, and full comment text. Ideal for sentiment analysis, audience research, or content insights. Export clean structured data in JSON, CSV, or Excel.

πŸ‘ User avatar

Scraper Engine

292

5.0

πŸ’¬ YouTube Comments Scraper

dz_omar/youtube-comments-scraper

πŸ’¬ Extract YouTube comments with author info, likes, timestamps, and nested replies. Perfect for sentiment analysis, market research, and content strategy. ⚑ Fast, reliable, and built for scale.

πŸ‘ User avatar

FlowExtract API

80

5.0

Youtube Comments Scraper

scrapelabsapi/youtube-comments-scraper

πŸ’¬ YouTube Comments Scraper (youtube-comments-scraper) extracts comments, replies, authors, likes, timestamps, IDs & pinned/hearted flags. πŸ” Export CSV/JSON for research, sentiment, social listening, moderation & competitor analysis. πŸš€ Fast & reliable.