# Social Media Comments & Reviews Analyzer (`lead.gen.labs/social-media-comments-reviews-analyzer`) Actor

Extracts social media comments and customer reviews from platforms like Trustpilot, Google Maps, and Booking.com to detect the emotional tone and sentiment behind each, helping your brand understand customer feelings and improve engagement

- **URL**: https://apify.com/lead.gen.labs/social-media-comments-reviews-analyzer.md
- **Developed by:** [LeadGen Labs](https://apify.com/lead.gen.labs) (community)
- **Categories:** Agents, Lead generation, Social media
- **Features:** Full permissions
- **Stats:** 16 total users, 0 monthly users, 0.0% runs succeeded, 6 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

### Social Media Comments & Reviews Analyzer -- Extract, Analyze & Understand Customer Feedback

### FAQ

#### 1. What is Social Media Comments & Reviews Analyzer?

Social Media Comments & Reviews Analyzer is a Multi-Platform Analysis Agent actor designed to extract and analyze Social Media Comments(Facebook, Instagram, Tiktok, Twitter/X, and Youtube) and Customer Reviews(Google Maps, Trustpilot, Tripadvisor, Booking.com, Yelp)...and other platforms to be integrated.

It scrapes comments and reviews, classify into positive and negative comments/reviews, and uses LLM-powered emotional tone analysis to cluster feedback into pain points, positive sentiment themes.

***

#### 2. Who can use this tool?

As a business owner, brand strategist, or data analyst, this tool offers actionable insights into customer dissatisfaction, and it empowers you to make smarter decisions and stay ahead of reputation risks.

***

#### 3. What are the Use Cases of this tool?

- **Brand Monitoring:** Track and analyze both positive and negative feedback about your business across social media and review platforms.
- **Customer Experience Optimization:** Identify recurring pain points, highlight what customers appreciate, and prioritize improvements that boost satisfaction.
- **Reputation Management:** Detect risks early by monitoring negative sentiment trends and safeguarding your brand image.
- **Market Research:** Gain insights into audience preferences, frustrations, and expectations in your niche or industry.
- **Competitor Analysis:** Uncover what people like or dislike about competitors to refine your own positioning and strategy.
- **Content & Marketing Insights:** Learn how customers react to campaigns, posts, and products by analyzing engagement sentiment.
- **Product Development** Use real feedback to guide feature requests, service improvements, and innovation decisions.

***

#### 4. How do I use this tool?

#### Step 1:

- Get Your Groq API Key - Visit https://console.groq.com/home
- Register or log in, and it is free to use for your analysis use case except in larger usage
- For larger usage (Analysis of 100,000 comments/reviews ~ 10M tokens ~ $10). You can setup payment - Visit https://console.groq.com/settings/billing/manage
- (N.B - Groq LLM usage is Tokens-as-a-Service meaning you only pay for amount of Tokens used)
- Click on API Keys in the dashboard.
- Generate a new key and copy it.
- Paste it into the `groq_api_key` field when setting up the actor.

🔐 Note: Your API key remains secure and encrypted. It is never visible to the actor creator or anyone else.

#### Step 2: Input Your Business URL or Social Media Post URL

- Copy the review page URL from: Tripadvisor, Trustpilot, Booking, Google Maps or
- from post URL: Facebook, Instagram, Twitter/X, Tiktok, Youtube
- Paste it into the business_url field.
- (N.B You can only process one url at a time) and
- Please Select Analysis Type that corresponds with the type of URL youre processing. When processing any Social Media URLs (Facebook, Twitter/X, Instagram, Tiktok, and Youtube) - Select `SOCIAL MEDIA COMMENTS`, and select either `POSITIVE REVIEWS` or `NEGATIVE REVIEWS` when processing URLS from (Google Maps, Trustpilot, Tripadvisor, and Booking.com)

#### Step 3: Set the Number of Pages to Scrape:

- Specify how many pages of comments/reviews to analyze with the max_pages field.

#### Step 4: Copy Cookies from Twitter/X or Facebook When Processing Either of the URL:

#### How to Export Twitter/X or Facebook Cookies Using Cookie-Editor

- To authenticate with your Twitter/X or Facebook session:
- Install the [Cookie-Editor Chrome Extension](https://chromewebstore.google.com/detail/cookie-editor/hlkenndednhfkekhgcdicdfddnkalmdm?pli=1).
- Go to https://www.facebook.com or https://x.com and log into your account.
- Click the Cookie-Editor extension icon in your Chrome toolbar.
- Use the Export tab to copy your cookies as JSON.
- Paste the exported JSON into the cookies field of the actor input.

Run the Actor and receive a JSON output that highlights the most common themes based on user comments/reviews.

***

#### 5. What are Input Examples?

```json
{
  "business_url": "https://www.trustpilot.com/review/majority.com",
  "select_analysis_type": "select either POSITIVE REVIEWS or NEGATIVE REVIEWS",
  "max_pages": 50,
  "groq_api_key": "your_groq_api_key_here"
}
```

```json
{
  "business_url": "https://web.facebook.com/humansofnewyork/posts/pfbid0BbKbkisExKGSKuhee9a7i86RwRuMKFC8NSkKStB7CsM3uXJuAAfZLrkcJMXxhH4Yl?_rdc=1&_rdr",
  "select_analysis_type": "select SOCIAL MEDIA COMMENTS",
  "max_pages": 10,
  "groq_api_key": "your_groq_api_key_here",
  "cookies": "paste_cookies_from_cookie_editor"
}
```

```json
{
  "business_url": "https://www.tripadvisor.com/Attraction_Review-g187791-d192285-Reviews-Colosseum-Rome_Lazio.html",
  "select_analysis_type": "select either POSITIVE REVIEWS or NEGATIVE REVIEWS",
  "max_pages": 50,
  "groq_api_key": "your_groq_api_key_here"
}
```

```json
{
  "business_url": "https://www.google.com/maps/place/Great+Mall/@37.4157422,-121.8999869,17z/data=!4m8!3m7!1s0x808fcecafdb31371:0x9358407bfd6fb9dd!8m2!3d37.415738!4d-121.897412!9m1!1b1!16zL20vMDVjaF9w?entry=ttu",
  "select_analysis_type": "select either POSITIVE REVIEWS or NEGATIVE REVIEWS",
  "max_pages": 5,
  "groq_api_key": "your_groq_api_key_here"
}
```

```json
{
  "business_url": "https://www.youtube.com/watch?v=Ml97T4oVaV0",
  "select_analysis_type": "select SOCIAL MEDIA COMMENTS",
  "max_pages": 20,
  "groq_api_key": "your_groq_api_key_here"
}
```

***

#### 6 How does the Output Insights looks like?

#### Negative Insights

```json
[
  { "theme": "poor customer service", "count": 8 },
  { "theme": "temperature issues", "count": 5 },
  { "theme": "poorly organised", "count": 5 },
  { "theme": "mass tourism", "count": 3 },
  { "theme": "ticketing issues", "count": 3 },
  { "theme": "poor service quality", "count": 2 },
  { "theme": "overcrowded", "count": 2 },
  { "theme": "ticket quality", "count": 1 },
  { "theme": "overall dissatisfaction with product or service", "count": 1 },
  { "theme": "platform or service issues", "count": 1 },
  { "theme": "disappointing experience", "count": 1 },
  { "theme": "unsafe stairs", "count": 1 }
]
```

#### Positive Insights

```json
[
  { "theme": "fast shipping", "count": 22 },
  { "theme": "fast delivery", "count": 18 },
  { "theme": "product quality", "count": 14 },
  { "theme": "good value for money", "count": 12 },
  { "theme": "excellent customer service", "count": 6 },
  { "theme": "great prices", "count": 5 },
  { "theme": "authentic products", "count": 4 },
  { "theme": "great packaging", "count": 4 },
  { "theme": "quick shipping", "count": 3 },
  { "theme": "super fast shipping", "count": 3 },
  { "theme": "great customer service", "count": 3 },
  { "theme": "timely delivery", "count": 3 },
  { "theme": "authentic fragrances", "count": 3 },
  { "theme": "good prices", "count": 2},
  { "theme": "authentic product", "count": 2 }
]
```

#### Social Media Comment Insights

```json
[
  {"theme": "positive sentiment", "count": 19},
  {"theme": "affection", "count": 13},
  {"theme": "wholesome", "count": 10},
  {"theme": "love", "count": 10},
  {"theme": "shyness", "count": 7},
  {"theme": "chemistry", "count": 6},
  {"theme": "desire for third season", "count": 5},
  {"theme": "love for emma's heels", "count": 5},
  {"theme": "positive chemistry", "count": 5},
  {"theme": "sibling-like relationship", "count": 4},
  {"theme": "request for behind-the-scenes content", "count": 4},
  {"theme": "praise for the dance", "count": 4},
  {"theme": "positive sentiment towards the interview", "count": 4},
  {"theme": "best friends", "count": 4},
  {"theme": "praise for emma myers", "count": 3},
  {"theme": "tone", "count": 3},
  {"theme": "positive sentiment towards emma's heels", "count": 3},
  {"theme": "positive sentiment towards emma's outfit", "count": 3},
  {"theme": "positive sentiment towards emma myers", "count": 3},
  {"theme": "best friend", "count": 3},
  {"theme": "casting suggestion", "count": 3},
  {"theme": "tone of communication", "count": 3},
  {"theme": "need for subtitles", "count": 3},
  {"theme": "sweet interview", "count": 2},
  {"theme": "admiration", "count": 2},
  {"theme": "elizabeth swann", "count": 2},
  {"theme": "request for caption", "count": 2},
  {"theme": "positive relationship", "count": 2},
  {"theme": "admiración por la pareja", "count": 2},
  {"theme": "casting", "count": 2},
  {"theme": "dance", "count": 2},
  {"theme": "praise", "count": 2},
  {"theme": "behind the scenes", "count": 2},
  {"theme": "admiration for emma myers", "count": 2},
  {"theme": "interview", "count": 2},
  {"theme": "affection/love", "count": 2},
  {"theme": "behind the scenes request", "count": 2},
  {"theme": "shyness towards each other", "count": 2},
  {"theme": "positive sentiment towards the show", "count": 2},
  {"theme": "relationship", "count": 2},
  {"theme": "admiration/love", "count": 2},
  {"theme": "desire for a third season", "count": 2},
  {"theme": "desire for behind-the-scenes content", "count": 2},
  {"theme": "favorite actress", "count": 1},
  {"theme": "emma stone", "count": 1},
  {"theme": "praise for entire outfit", "count": 1},
  {"theme": "inquiry about heels' origin", "count": 1},
  {"theme": "request for legend", "count": 1},
  {"theme": "urgent need", "count": 1},
  {"theme": "friendship", "count": 1},
  {"theme": "shyness/social anxiety", "count": 1},
  {"theme": "admiration/excitement", "count": 1},
  {"theme": "positive sentiment towards emma myers as a favorite actress", "count": 1},
  {"theme": "communication", "count": 1},
  {"theme": "affection and love", "count": 1},
  {"theme": "eagerness for third season", "count": 1}
]
```

***

### Feature Requests or Custom Builds?

This actor is actively maintained. Have an idea or a special request? Reach out - lead.gen.labs.1@gmail.com

# Actor input Schema

## `business_url` (type: `string`):

Paste URL from: Facebook, Twitter, Instagram, Tiktok, Youtube, Trustpilot, Tripadvisor, Booking.com, or Google Maps.

## `select_analysis_type` (type: `string`):

Select the analysis type you want

## `max_pages` (type: `integer`):

The maximum number of pages to scrape.

## `groq_api_key` (type: `string`):

The access key to use LLM for the Analysis

## `cookies` (type: `string`):

Paste the exported cookie JSON string from Cookie-Editor extension when processing Twitter/X post urls or Facebook post urls

## Actor input object example

```json
{
  "business_url": "https://www.trustpilot.com/review/www.fashionnova.com",
  "select_analysis_type": "NEGATIVE REVIEWS",
  "max_pages": 1,
  "cookies": ""
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("lead.gen.labs/social-media-comments-reviews-analyzer").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("lead.gen.labs/social-media-comments-reviews-analyzer").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call lead.gen.labs/social-media-comments-reviews-analyzer --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,lead.gen.labs/social-media-comments-reviews-analyzer"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/CEGqpx1nAwMHwpdfd/builds/reWn480t3GZVgaNS5/openapi.json
