Youtube Comment Scraper avatar

Youtube Comment Scraper

Try for free

3 days trial then $20.00/month - No credit card required now

Go to Store
Youtube Comment Scraper

Youtube Comment Scraper

topaz_sharingan/youtube-comment-scraper
Try for free

3 days trial then $20.00/month - No credit card required now

Introducing the YouTube Comment Scraper — a dynamic tool designed to unlock the wealth of insights hidden within YouTube video comments. Whether you're a content creator, researcher, or simply curious, this actor empowers you to effortlessly extract and analyze valuable information, including commen

Introduction

YouTube Comment Scraper is a powerful tool designed to extract valuable data from YouTube video comments. With this scraper, you can effortlessly gather information such as comment content, author details, reply count, like count, and voting status. Additionally, you can choose to include replies to each comment.

Key Features

  • Extract YouTube video comments with ease.
  • Retrieve essential comment details, including author information, reply count, and likes.
  • Option to include all replies to each comment.
  • Configurable to limit the maximum number of comments to scrape.

Typical Use Cases

  • Audience Engagement Analysis: Analyze the engagement and sentiment of comments on a specific YouTube video.
  • Content Improvement: Gain insights from user feedback to enhance video content.
  • Competitor Analysis: Monitor and analyze comments on competitors' videos.

Inputs

Data Input

The scraper takes the following inputs:

  • Start URLs: The URLs of the YouTube videos for which you want to scrape comments.
  • Maximum Comment Count: The maximum number of comments to scrape for each video.

Input Example

1{
2    "startUrls": ["https://www.youtube.com/watch?v=ySA7mSgF54I"],
3    "maxCommentCount": 30,
4    "get_all_comments": false
5}

Outputs

The scraper produces the following output for each comment:

  • Comment Author: The username of the comment author.
  • Author's Thumbnail: The URL of the author's profile thumbnail.
  • Comment Content: The content of the comment.
  • Reply Count: The number of replies to the comment.
  • Comment ID: The unique ID of the comment.
  • Comment Like Count: The number of likes on the comment.
  • Time Posted: The time when the comment was posted.

Output Example

1{
2    "content": "The best country artist in a very long time to me",
3    "author": "@Allman2013",
4    "commentId": "UgwYXDX8ILkTIytauQR4AaABAg",
5    "publishedTime": "4 months ago",
6    "thumbnail": "https://yt3.ggpht.com/ytc/AIdro_ldjGNNBkVwkJPi3uO9izWA4BI69xAM2IlNxZV3vZIJL0qd=s88-c-k-c0x00ffffff-no-rj",
7    "channelId": "UCN7Ypfqdsh4ieWUvCXcneWw",
8    "isVerified": false,
9    "likeCount": "14 likes",
10    "replyCount": "0 replies"
11}

Usage

How to Run the Scraper

  1. Go to Apify and log in or create an account if you don't have one.
  2. Create a new task and select the "YouTube Comment Scraper" scraper.
  3. Configure the scraper's input settings by providing the YouTube video URLs and specifying the maximum number of comments to scrape.
  4. (Optional) Set the "Include All Replies" input according to your preference.
  5. Start the task and wait for it to complete.
  6. Once the task is finished, you can access the scraped data in the task's dataset.

How to Interpret the Scraper's Results

The scraper will provide you with a JSON dataset containing the scraped YouTube video comments data. Each comment will have its own set of properties, as described in the "Outputs" section.

Examples

Example 1: Scraping a Specific Number of Comments.

In this example, we will scrape comments from a YouTube video, including all replies to each comment.

1{
2    "startUrls": ["https://www.youtube.com/watch?v=example_video_id"],
3    "maxCommentCount": 30,
4    "get_all_comments": false
5}

Example 2: Scraping all Comments

In this example, we will scrape comments from a YouTube video, excluding replies.

1{
2    "startUrls": ["https://www.youtube.com/watch?v=example_video_id"],
3    "maxCommentCount": 30,
4    "get_all_comments": true
5}

Troubleshooting

Common Problems and Solutions

Problem: The scraper is not returning any data.

Solution:

Ensure that the provided video URLs are correct, and the videos have comments available.

Problem: Rate limiting issues.

Solution:

If you encounter rate limiting issues, try adjusting the scraping speed or contact Apify support for assistance.

Additional Information

Acknowledgements

This scraper is powered by Apify, a leading web scraping and automation platform. Special thanks to the Apify team for their contributions.

Developer
Maintained by Community

Actor Metrics

  • 12 monthly users

  • 5 stars

  • >99% runs succeeded

  • Created in Nov 2023

  • Modified 5 months ago