
Comments Analyzer Agent
Pricing
Pay per event

Comments Analyzer Agent
Prevent PR disasters with AI sentiment analysis. Monitor comments across TikTok, YouTube, and Instagram to detect negative sentiment, toxic content, and potential crises before they escalate. Automate your workflow and send a message when something needs your immediate attention.
5.0 (1)
Pricing
Pay per event
2
Total users
25
Monthly users
25
Runs succeeded
>99%
Last modified
9 days ago
What does Comments Analyzer Agent do?
This Comments Analyzer helps you understand how audiences react to social media posts by analyzing comments for sentiment (positive, negative, or neutral). It also flags potentially harmful content.
🤖 Tip: You can easily set up an automation to receive information about these comments directly on your preferred communication channel so you can act before things escalate. Use Apify internal integrations or one of the automation tools such as Make, Zapier, or n8n.
How to analyze comments with Comments Analyzer?
- Create a free Apify account using your email.
- Gather the URLs of the posts you want to monitor
- Plug them into the Comments Analyzer Agent input.
- Run the Actor and wait for the analysis to be completed.
- Download your data in JSON, XML, CSV, Excel, or HTML and explore the structured dataset with sentiment results and flagged insights.
What information can I get with Comments Analyzer Agent?
🗨️ All comments with sentiment analysis (positive, negative, or neutral). | 📋 A high-level summary of the sentiment landscape | 📈 Absolute and relative counts of positive, negative, and neutral comments | 🚩 Red-flagged comments with a highly negative tone or toxic language |
⬇️ Input
Add the post URLs with comments you want to have analyzed to start the comments analysis.
You can add posts from:
- TikTok
- YouTube
💡Hint: Schedule TikTok, YouTube or Instagram Scraper to fill in the input fields automatically based on your criteria.
Here’s an example input:
And this is the same input, shown in JSON:
{"maxComments": 30,"postUrl": "https://www.youtube.com/watch?v=shbNYsEnpDs"}
⬆️ Output
After the Actor finishes its run, you'll get a dataset with the output.
There, you’ll find the percentage of negative, positive, and neutral comments as well as the sentiment summary:
Open the key-value store if you want to find out about the sentiment of each comment.
Here's an example of the output in JSON format:
{"commentsDatasetUrl": "https://console.apify.com/storage/datasets/1fUMfuzvXWVRQfmML","sentiment": "The sentiment analysis of the YouTube comments reveals a diverse range of opinions, with each sentiment type offering unique insights into the viewers' perspectives.","positiveSentiment": "The comments expressing positive sentiment were largely supportive and appreciative of the individuals and themes discussed in the video. Many users admired the resilience and humanity of the characters, often highlighting their struggles and achievements. For instance, @Alexis-g7c expressed admiration and respect for the individuals mentioned, while @clara4942 praised William and Kate, referring to Kate as the GOAT (Greatest of All Time). These comments often focused on the positive attributes and contributions of the characters, fostering a sense of admiration and respect among viewers. Common reasons for positive sentiment included empathy for personal sacrifices, appreciation for strong relationships, and admiration for personal qualities such as kindness and resilience.","neutralSentiment": "Neutral comments often reflected a more analytical or observational tone, focusing on factual or historical aspects without strong emotional language. For example, @RadonnaMovies provided a historical reference without expressing a strong opinion, while @aquitaineq questioned a historical fact without a strong emotional tone. These comments typically revolved around seeking clarification or providing context, rather than expressing strong feelings. Common reasons for neutral sentiment included curiosity about historical accuracy, interest in factual details, and a desire for more information without emotional bias.","negativeSentiment": "Negative comments were characterized by critical or derogatory language, often expressing dissatisfaction or disapproval of certain characters or themes. For instance, @mursyidomar6995 used derogatory language to describe a character, while @MoRiley9 expressed a negative opinion about the British royals. These comments often focused on perceived flaws or negative behaviors, leading to a critical perspective. Common reasons for negative sentiment included disagreement with character actions, disapproval of certain behaviors, and negative perceptions of relationships or societal norms. Notably, highly negative comments that were red-flagged, such as those by @mursyidomar6995 and @MoRiley9, contained derogatory language that warranted attention due to their potential impact on the community's tone and inclusivity. \n\nOverall, the comments reflected a mix of positive, neutral, and negative sentiments, with many users expressing admiration for the characters' resilience and humanity, while others critiqued certain behaviors or historical interpretations. The overall sentiment of the comments was largely positive, with many users expressing support and admiration for the individuals and themes discussed. However, there were also critical voices that highlighted perceived flaws or disagreements, contributing to a balanced and diverse discussion. Common themes included appreciation for personal qualities, curiosity about historical accuracy, and critical perspectives on societal norms and behaviors. This diversity of opinions enriched the conversation, offering a comprehensive view of the audience's perspectives.","positivePercentage": "36.67%","neutralPercentage": "33.33%","negativePercentage": "30.00%","totalComments": 30,"positiveComments": 11,"neutralComments": 10,"negativeComments": 9}]
And here is the data for each comment in JSON:
"sentiment": "neutral","sentimentAnalysis": "The comment poses a question about the nature of marriage without expressing a clear positive or negative sentiment.","redFlag": false,"commentDetail": {"id": "UgyOsza0PxBoE3UagLN4AaABAg","text": "Do you think marriage is a forever contract or has it changed?","likes": 116,"date": "8 months ago","author": "@MovingPicsOfficial"}}
How will Comments Analyzer help me?
📢 Catch PR disasters before they escalate: Monitor comment sections and get notified when negativity spikes.
⚠️ Set up real-time alerts for extreme reactions: Integrate with Slack, email, or other tools to act on crisis indicators fast.
🕵️ Run sentiment analysis on competitor content: Spot weaknesses in competitor messaging and jump into the conversation.
🎯 Fine-tune your content strategy: Learn what kind of content resonates or triggers backlash.
📊 Benchmark sentiment across your videos or competitors: Track how different posts perform over time or compare sentiment with others in your niche.
Integrate Comments Analyzer and automate your AI Agents
Comments Analyzer can be connected with almost any cloud service or web app thanks to integrations on the Apify platform.
These include:
Alternatively, you can use webhooks to carry out an action whenever an event occurs. For example, whenever Comments Analyzer successfully finishes a run, send the summary to a Slack channel or via email.
FAQ
Which platforms are supported?
TikTok, Instagram, and YouTube post URLs are supported.
What’s a red-flagged comment?
Red-flagged comments are those with strong negative sentiment, potential for controversy, or emotionally charged content that may escalate.
Can I export comments data using API?
Yes, you can access the extracted data through the Comments Analyzer Agent API. You’ll need an Apify account and your API token (available under Integrations settings in the Console). The API is based on RESTful HTTP endpoints that allow you to manage, schedule, and run actors. You can fetch datasets, monitor performance, and integrate with other apps.
For further details, check the API documentation.
Can I use Comments Analyzer Agent Scraper through an MCP Server?
Yes, you can integrate Comments Analyzer Agent with AI workflows via the Model Context Protocol (MCP). Follow these steps:
- Start a Server-Sent Events (SSE) session to receive a
sessionId
. - Use the
sessionId
to trigger the scraper. - The response should be:
Accepted
.
Is it legal to scrape data from social media?
Our social media scrapers operate ethically and extract only publicly available data. For further guidance, you can consult legal advice or check our blog on ethical web scraping.
Not your cup of tea? Build your own Agent
Comments Analyzer doesn’t exactly do what you need?
You can always build your own AI Agent on Apify! Use one of our templates in Python, JavaScript, and TypeScript to get started.
Alternatively, you can write it from scratch using our open-source library Crawlee. You can keep the Actor to yourself or make it public by adding it to Apify Store and start making money on it.
Or let us know if you need a custom solution.
Your feedback
We’re always working on improving our Actors' performance. If you have any technical feedback for Comments Analyzer or simply found a bug, please create an issue on the Actor’s Issues tab in Apify Console.
On this page
Share Actor: