Youtube Comment Scrapper avatar

Youtube Comment Scrapper

Pricing

$2.50 / 1,000 comments

Go to Apify Store
Youtube Comment Scrapper

Youtube Comment Scrapper

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

Pricing

$2.50 / 1,000 comments

Rating

5.0

(2)

Developer

Deeper Scrapper

Deeper Scrapper

Maintained by Community

Actor stats

21

Bookmarked

599

Total users

11

Monthly active users

4 days ago

Last modified

Share

Youtube Channel/Video/Comment Scrapper

A simple youtube scrapper that either

  • collect channel information and video details for the first 30 videos.
  • collect most recent shorts for a channel
  • 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
{
"channel_id": "UC4f0qvPJLqGTuLyy2iHOd-g",
"channel_url": "https://www.youtube.com/@rtbf_info/",
"channel_shortname": "rtbf_info",
"channel_name": "RTBF Info",
"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).",
"channel_thumbnail": "https://yt3.googleusercontent.com/JjwCgdIt3BCKiq-AaTCpdmhwa3a01ejjJC8K6xcjoTSZnUxiTE9t5Z2jupkr4a1cwHCgPAtYAw=s900-c-k-c0x00ffffff-no-rj",
"channel_joined_date": "2022-10-14T00:00:00",
"channel_location": "Belgium",
"channel_videos": 2223,
"channel_views": 46933391,
"channel_subscribers": 193000,
}
For the video
{
"video_idx": 1,
"video_id": "xpg_PujFT7s",
"video_is_short": False,
"video_thumbnail": "https://i.ytimg.com/vi/xpg_PujFT7s/hqdefault_8866.jpg?sqp=-oaymwEjCNACELwBSFryq4qpAxUIARUAAAAAGAElAADIQj0AgKJDeAE=&rs=AOn4CLAGS4syUXTIGh57ZRQla0Xlawim-A",
"video_title": "Donald Trump devient officiellement le 47ème président des Etats-Unis - RTBF Info",
"video_url": "https://www.youtube.com/watch?v=xpg_PujFT7s",
"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",
"video_relative_date": "2 days ago",
"video_duration": "11:51",
"video_views": 27428,
"video_comments": 134,
"video_likes": 336,
"video_date": "2025-01-21T09:00:00",
}
For the captions
{
"caption_languageCode": "fr",
"caption_languageName": "French (auto-generated)",
"caption_data": [...All the text segments...]
}
For the comment
{
"comment_idx": 1,
"comment_id": "UgwGmC_S-wtGvMiMxa54AaABAg",
"comment_url": "https://www.youtube.com/watch?v=xpg_PujFT7s&lc=UgwGmC_S-wtGvMiMxa54AaABAg",
"comment_author_name": "jeanrenaissance309",
"comment_author_channel": "UCljlLgqDA5fHLn2EoQwHnZg",
"comment_author_thumbnail": "https://yt3.ggpht.com/ytc/AIdro_ltG5Vixvi3d0Yh00mrIlUB2on93_zWY8hkMojmBpX9mvBiNJjt4vNgL5Rn8XCPf9bnFg=s88-c-k-c0x00ffffff-no-rj",
"comment_relative_date": "1 day ago",
"comment_date": "~2025-01-23T09:00:00+00:00",
"comment_text": "Vive Trump !!\nLe ménage va commencer.",
"comment_likes": 6,
"comment_replies": 0
}

How does date filtering work ?

You can use "dateFilter" (since) and "dateFilterTill" (till) to collect only videos published within a date range. When a video's publication date cannot be extracted (e.g. for shorts), the video always passes the date filters and is included in the results.

Can we get more than 30 videos per channel ?

Yes, use the "max_videos" parameter to specify how many videos you want to collect. The scraper will paginate through the channel's video listing to fetch beyond the initial 30.

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

How does pricing work ?

This actor uses the pay-per-event pricing model. You are charged based on the operations performed:

EventPrice (USD)Description
Actor start$0.005One-time charge per run (charged automatically by the platform)
Video page$0.005Loading a channel's videos or shorts tab (~30 videos)
Video detail$0.0025Fetching detailed data for a single video
Video comment$0.002Each comment collected
Video caption$0.0025Each caption language collected for a video
Extra compute time$0.001Small charge to cover platform compute costs when needed

Example costs:

ScenarioResultsOld price (pay-per-result)New price (pay-per-event)
Channel with 30 videos (details, no comments)30$0.075~$0.09
Channel with 30 videos + 20 comments each630$1.575~$1.29
Single video with 200 comments201$0.5025~$0.41
Channel with 10 videos + captions (2 languages)30$0.075~$0.09