
YouTube Video Comments Scraper
Under maintenance
Pricing
$0.40 / 1,000 results
Go to Store

YouTube Video Comments Scraper
Under maintenance
Scrape public comments from any YouTube video. Fast, lightweight, and compliant with YouTube's public data policies.
0.0 (0)
Pricing
$0.40 / 1,000 results
1
Total users
3
Monthly users
3
Runs succeeded
>99%
Last modified
a day ago
YouTube Video Comments Scraper
Overview
This script is designed for the Apify platform and uses Playwright to scrape comments from a YouTube video.
Input
Parameters
video_url
– The URL of the YouTube video.limit
(optional) – Maximum number of comments to scrape.
Example Input
{"limit": 20,"video_url": "https://www.youtube.com/watch?v=Y5QZ_u3Cl74"}
Output
The script returns a JSON array, where each object represents a comment and contains the following fields:
author
– An object with details about the commenter:username
url
image_url
date
– The time the comment was posted (e.g., "1 month ago")likes
– Number of likes on the commentreplies_count
– Number of replies to the commenttext
– The comment text
Example Output
[{"author": {"image_url": "https://yt3.ggpht.com/64S3dfzfh_4dOj_Dnb7Bh-9oTrviO6lxBJTrgUVXLQ57-1rzQVMBS7_xjGdmVSL2zq7RmLdVyC0=s88-c-k-c0x00ffffff-no-rj","url": "https://www.youtube.com/@ircmaan","username": "@ircmaan"},"date": "1 month ago","likes": 197,"replies_count": 11,"text": "The biggest TV scammer in history is Kashpirovsky.\nHe scammed people both in scale and over time :)"}]
How to Use
- Create a new task on the Apify platform.
- Provide the input JSON with the desired video URL.
- Run the task. The script will scroll through the comments section and extract comment data.
Disclaimer
This script is provided "as is" with no warranties. You are fully responsible for how you use it. Make sure your use complies with YouTube’s Terms of Service and all applicable laws and regulations.