Youtube Comment Scrapper avatar

Youtube Comment Scrapper

Try for free

Pay $1.80 for 1,000 comments

Go to Store
Youtube Comment Scrapper

Youtube Comment Scrapper

deeper/youtube-comment-scrapper
Try for free

Pay $1.80 for 1,000 comments

Scrape comments on Youtube Video Pages. Just specify the video page urls to visit and how many comments you would like to collect. We'll get all meaningful information: comment text, author, publication date, number of likes and replies and video+channel url and id

Developer
Maintained by Community

Actor Metrics

  • 13 monthly users

  • 5.0 / 5 (1)

  • 9 bookmarks

  • >99% runs succeeded

  • Created in Oct 2023

  • Modified 11 days ago

Youtube Channel/Video/Comment Scrapper

A simple youtube scrapper that either

  • collect channel information and video details for the first 30 videos.
  • collect video details and comments from a list of youtube video URLs.

If you provide a channel url in input, we will collect channel information and up to 30 most recent videos for that channel, and possibly collect details information and comments for each of these. If you provide a video url in input, we will collect video information and possibly comments but we could miss some channel information.

The "details" parameter should be used if you want to collect details information about all video found on the channel. The "max_comments" parameter allows you to specify how many comments you want to collect for each video URL. Note that this number is indicative as comments are collected by page (of 20 comments in general). If comments are collected, you will pay per video+comments collected otherwise it's just based on the number of video collected

FAQ

What data are collected ?

For the channel
1{
2  "channel_id": "UC4f0qvPJLqGTuLyy2iHOd-g",
3  "channel_url": "https://www.youtube.com/@rtbf_info/",
4  "channel_shortname": "rtbf_info",
5  "channel_name": "RTBF Info",
6  "channel_description": "Cette chaîne vous propose les actualités quotidiennes les plus importantes de la rédaction info de la RTBF. Vous les trouverez sous forme d'extraits du JT, de shorts, de lives, et de contenus exclusifs.\n\nLa RTBF (Radio Télévision Belge Francophone) produit, édite et diffuse des programmes à l’attention de tous les publics dans leurs diversités. Elle propose de multiples offres audiovisuelles dans les médias (Radio, TV, Internet et Réseaux sociaux).",
7  "channel_thumbnail": "https://yt3.googleusercontent.com/JjwCgdIt3BCKiq-AaTCpdmhwa3a01ejjJC8K6xcjoTSZnUxiTE9t5Z2jupkr4a1cwHCgPAtYAw=s900-c-k-c0x00ffffff-no-rj",
8  "channel_joined_date": "2022-10-14T00:00:00",
9  "channel_location": "Belgium",
10  "channel_videos": 2223,
11  "channel_views": 46933391,
12  "channel_subscribers": 193000,
13}
For the video
1{
2  "video_idx": 1,
3  "video_id": "xpg_PujFT7s",
4  "video_thumbnail": "https://i.ytimg.com/vi/xpg_PujFT7s/hqdefault_8866.jpg?sqp=-oaymwEjCNACELwBSFryq4qpAxUIARUAAAAAGAElAADIQj0AgKJDeAE=&rs=AOn4CLAGS4syUXTIGh57ZRQla0Xlawim-A",
5  "video_title": "Donald Trump devient officiellement le 47ème président des Etats-Unis - RTBF Info",
6  "video_url": "https://www.youtube.com/watch?v=xpg_PujFT7s",
7  "video_text": "Donald Trump a prêté serment en tant que 47e président des États-Unis lundi peu après 12h00 locales (18h00 heure belge) dans la Capitol. Il devient ainsi le deuxième président états-unien de l’histoire à effectuer deux mandats non consécutifs.\n\n0:00 Introduction\n0:17 Donald Trump est le 47ème président des États-Unis \n2:50 20.000 personnes dans une salle omnisports\n3:22 Le froid n'a pas dissuadé ses partisans \n7:47 Les suprémacistes de l'extrême droite en évidence\n8:44 Quel impact économique?\n\nUn sujet diffusé le 20/01/25\n\n-----------------------------------------------------------------------------------------------------------------------\n\n📌 Retrouvez l'info de la RTBF\n\nSur Auvio ► https://www.rtbf.be/auvio/emissions/d...\n\nSur le site RTBF info ► https://www.rtbf.be/info/\n\nSur Facebook ►   / rtbfinfo  \n\nSur Instagram ►   / rtbfinfo  \n\n-----------------------------------------------------------------------------------------------------------------------\n\n© RTBF \n\n#trump #usa #rtbf #rtbfinfo #trumpnews #trumpupdate #musk",
8  "video_relative_date": "2 days ago",
9  "video_duration": "11:51",
10  "video_views": 27428,
11  "video_comments": 134,
12  "video_likes": 336,
13  "video_date": "2025-01-21T09:00:00",
14}
For the captions
1{
2  "caption_languageCode": "fr",
3  "caption_languageName": "French (auto-generated)",
4  "caption_data": [...All the text segments...]
5}
For the comment
1{
2  "comment_idx": 1,
3  "comment_id": "UgwGmC_S-wtGvMiMxa54AaABAg",
4  "comment_url": "https://www.youtube.com/watch?v=xpg_PujFT7s&lc=UgwGmC_S-wtGvMiMxa54AaABAg",
5  "comment_author_name": "jeanrenaissance309",
6  "comment_author_channel": "UCljlLgqDA5fHLn2EoQwHnZg",
7  "comment_author_thumbnail": "https://yt3.ggpht.com/ytc/AIdro_ltG5Vixvi3d0Yh00mrIlUB2on93_zWY8hkMojmBpX9mvBiNJjt4vNgL5Rn8XCPf9bnFg=s88-c-k-c0x00ffffff-no-rj",
8  "comment_relative_date": "1 day ago",
9  "comment_date": "~2025-01-23T09:00:00+00:00",
10  "comment_text": "Vive Trump !!\nLe ménage va commencer.",
11  "comment_likes": 6,
12  "comment_replies": 0
13}

Can we get more than 30 videos per channel ?

if you are interested by replies to comment, let us know and we'll adapt the scrapper

Can we get the video captions ?

Yes, simply activate the "scrap_captions" parameter

Can we get the video captions only in specific language ?

Yes, use the "caption_languages" paramter to pass the language code you are interested in

Can we get the comments count ?

Can I get the commentCount on the video without scrapping the comments themselves ? Unfortunately, no, you can't. We need to collect the comments to get the count information.

Why am I not getting the replies to the comments ?

Currently, only the first level comments is being collected, if you are interested by replies to comment, let us know and we'll adapt the scrapper

Why am I getting fake/empty comments in my list of results ?

Youtube scrapping is occasionaly slow, when this happens, we are loosing money because the CPU cost (that we have to pay to Apify) is larger than the Revenue that we receive from this actor. We are happy to share our scrapper actor with the community but it has to be somehow profitable for us too... In order to not loose money with that kind of runs, we can add fake/empty comments to the results dataset to compensate for the CPU cost that we have to pay. We hope that you understand our position and we guarantee you that this is just a security for us and not a way to make money