Go to example tasks

YouTube comments for sentiment analysis

Export the top comments of a YouTube video to measure audience sentiment with ChatGPT, Claude or a spreadsheet. Each row has comment ID, text, author, likes, reply count, publish date and video ID. Swap in your own video URLs, export to JSON, CSV or Excel, or run it on a schedule via API.

Try for free
YouTube Comments Scraper API
YouTube Comments Scraper APIapi_harbor/youtube-comments-scraper
Video id
Author
Text
Likes
+4 fields
Text
Number
Boolean
List
Object

Input

Videos(required):https://www.youtube.com/watch?v=dQw4w9WgXcQ
Max comments per video:500
Sort:TOP_COMMENTS

Output fields

Video id
Author
Text
Likes
Reply count
Published
Parent id
Error

How it works

Sign up on Apify or log in

The YouTube Comments Scraper API Actor is ready to run with the inputs already set for "YouTube comments for sentiment analysis". Sign up or log in and you'll land in Apify Console with a copy of this exact task.

Start the "YouTube comments for sentiment analysis" task

The YouTube Comments Scraper API Actor will start running based on the input automatically. You can also change all the input fields, like videos, max comments per video, and more, to match your specific use case.

Receive the "YouTube comments for sentiment analysis" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as video id, author, text, and more.

Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also run the "YouTube comments for sentiment analysis" task via API.

Image

Integrate "YouTube comments for sentiment analysis" into your workflow

Connect "YouTube comments for sentiment analysis" with 100+ integrations, or run it via API or MCP.

Webhook

Webhook

n8n

n8n

Make

Make

Zapier

Zapier

Airbyte

Airbyte

Keboola

Keboola

IFTTT

IFTTT

Hubspot

Hubspot

GDrive

GDrive

Gmail

Gmail

Apify MCP

Apify MCP

GitHub

GitHub

Slack

Slack

LangChain

LangChain

LlamaIndex

LlamaIndex

Flowise

Flowise

Pinecone

Pinecone

OpenAI

OpenAI

Mastra

Mastra

Clay

Clay

Frequently asked questions

The YouTube comments sentiment analysis task returns one row per comment with comment ID, text, author, author channel ID, likes, reply count, publish date and video ID.

Export the YouTube comments sentiment analysis task results to CSV or JSON and give the text column to ChatGPT, Claude or a sentiment model. Likes help weight the comments that the audience agrees with most.

The YouTube comments sentiment analysis task needs one or more YouTube video URLs or IDs, a max number of comments per video and a sort order: top comments or newest first.

The YouTube comments sentiment analysis task reads public YouTube comments, so no account, cookies, proxy or YouTube Data API key (and no API quota) is needed.

The YouTube comments sentiment analysis task can be scheduled in Apify Console or called through the Apify API, Python and JavaScript clients, Make, Zapier, n8n or any MCP client like Claude.

The YouTube comments sentiment analysis task costs $0.80 per 1,000 comments, plus $0.00005 per run start. Rows with an error field are delivered but never charged, and there is no proxy fee or monthly fee.