VOOZH about

URL: https://apify.com/automation-lab/social-media-sentiment

⇱ Social Media Sentiment Scraper β€” Comment Extraction Β· Apify


Pricing

Pay per event

Go to Apify Store

Social Media Sentiment Analysis

Scrape comments from Instagram, Facebook, and TikTok posts. Get comment text, author, timestamps, and likes from any public post URL across all three platforms in one run.

Pricing

Pay per event

Rating

0.0

(0)

Developer

πŸ‘ Stas Persiianenko

Stas Persiianenko

Maintained by Community

Actor stats

0

Bookmarked

41

Total users

5

Monthly active users

23 days ago

Last modified

Share

What does Social Media Comment Scraper do?

Social Media Comment Scraper extracts comments from Instagram, Facebook, and TikTok posts in a single run. Provide any public post URL and get structured comment data including text, author, timestamp, likes, and reply counts β€” plus post metadata and profile information. Supports posts, reels, and videos across all three platforms.

Who is it for?

Social Media Comment Scraper is built for marketers, brand managers, social media analysts, researchers, and data teams who need structured comment data from social media posts without manual collection.

Use cases

  • Brand monitoring β€” Track what people say about your brand across Instagram, Facebook, and TikTok posts
  • Competitor analysis β€” Analyze audience reactions to competitor content across social platforms
  • Content research β€” Identify what topics, themes, or products generate the most engagement
  • Influencer vetting β€” Review comment quality and sentiment on influencer posts before partnerships
  • Market research β€” Gather consumer opinions from social media comments at scale

Why use Social Media Comment Scraper?

  • Three platforms in one β€” No need to run separate scrapers for Instagram, Facebook, and TikTok
  • Rich metadata β€” Post description, likes/comments counts, and profile info included with every comment
  • Structured output β€” Consistent data format across all platforms (same fields for every comment)
  • Simple input β€” Just paste post URLs and run. No login or cookies required
  • Batch processing β€” Process multiple posts from different platforms in a single run
  • Pay per result β€” Only pay for comments successfully scraped, no subscription required

What data can you extract?

Each comment includes the following fields:

FieldDescription
platformSource platform (instagram, facebook, tiktok)
postUrlURL of the post
postDescriptionPost caption/title
postTimestampWhen the post was published (ISO 8601)
postLikesCountNumber of likes on the post
postCommentsCountTotal comments on the post
profileNameDisplay name of the post author
profileUrlURL of the post author's profile
profileDescriptionBio/description of the post author
profileFollowersNumber of followers the post author has
profileFollowsNumber of accounts the post author follows
commentTextFull comment text
commentAuthorUsername of the commenter
commentTimestampWhen the comment was posted (ISO 8601)
commentLikesCountNumber of likes on the comment
repliesCountNumber of replies to this comment
parentCommentIdID of parent comment (for threaded replies)
sentimentSentiment classification: positive, negative, or neutral
sentimentScoreSentiment confidence score (0.0–1.0)

How much does it cost to scrape social media comments?

This Actor uses pay-per-event pricing β€” you only pay for comments successfully scraped. No monthly subscription. All platform costs are included.

Price
Per run (start fee)$0.005
Per comment$0.004

Real-world cost examples:

ScenarioPostsCommentsCost
Quick check (1 Instagram post)120~$0.09
Medium analysis (3 posts, mixed platforms)3150~$0.62
Large batch (10 posts, 100 comments each)101,000~$4.01

How to scrape social media comments

  1. Go to the Social Media Comment Scraper on Apify
  2. Click Try for free
  3. Paste one or more post URLs into the Post URLs field
  4. Set Max comments per post (default: 100)
  5. Click Start and wait for results
  6. Download data as JSON, CSV, or Excel

Supported URL formats:

  • Instagram: https://www.instagram.com/p/CODE/, https://www.instagram.com/reel/CODE/
  • Facebook: https://www.facebook.com/PAGE/posts/ID
  • TikTok: https://www.tiktok.com/@user/video/ID

Input parameters

ParameterTypeDefaultDescription
postUrlsArray of strings(required)List of social media post URLs to scrape
maxCommentsPerPostInteger100Maximum comments to scrape per post (1–10,000)
includeRepliesBooleanfalseInclude threaded reply comments in output

Example input:

{
"postUrls":[
"https://www.instagram.com/p/DT-0F1SD0My/",
"https://www.tiktok.com/@nike/video/7546666568915094839"
],
"maxCommentsPerPost":50
}

Output example

{
"platform":"instagram",
"postUrl":"https://www.instagram.com/p/DT-0F1SD0My/",
"postDescription":"NIKE MIND INTAKE SESSION\n\nAthlete:\nErling Haaland...",
"postTimestamp":"2026-01-26T17:00:04.000Z",
"postLikesCount":61695,
"postCommentsCount":433,
"profileName":"nike",
"profileUrl":"https://www.instagram.com/nike/",
"profileDescription":"",
"profileFollowers":0,
"profileFollows":0,
"commentText":"Very impressive! great",
"commentAuthor":"johndoe",
"commentTimestamp":"2026-01-27T10:47:27.000Z",
"commentLikesCount":7,
"repliesCount":0,
"parentCommentId":null,
"sentiment":"positive",
"sentimentScore":0.85
}

Tips for best results

  • Start small β€” Test with 20 comments per post first, then scale up
  • Public posts only β€” The scraper can only access comments on public posts
  • Mix platforms freely β€” Add Instagram, Facebook, and TikTok URLs in the same run
  • Rate limits β€” For large batches (1,000+ comments), the scraper handles rate limiting automatically
  • Comment availability β€” Some platforms limit visible comments. The actual count may be less than maxCommentsPerPost

Use with Claude AI (MCP)

This actor is available as a tool in Claude AI through the Model Context Protocol (MCP). Add it to Claude Desktop, Cursor, Windsurf, or any MCP-compatible client.

Setup for Claude Code

$claude mcp add--transport http apify "https://mcp.apify.com?tools=automation-lab/social-media-sentiment"

Setup for Claude Desktop, Cursor, or VS Code

Add this to your MCP config file:

{
"mcpServers":{
"apify":{
"url":"https://mcp.apify.com?tools=automation-lab/social-media-sentiment"
}
}
}

Example prompts

  • "Scrape the comments on this Instagram post and tell me what people are saying about the product."
  • "Get the top 50 comments from these three TikTok videos and identify the most common themes."
  • "Analyze audience reactions to this Facebook post β€” what's the overall sentiment?"

Learn more in the Apify MCP documentation.

Integrations

Connect Social Media Comment Scraper with your favorite apps using Apify integrations:

  • Google Sheets β€” Export comments directly to a spreadsheet
  • Slack β€” Get notified when scraping completes
  • Zapier β€” Trigger workflows based on new comment data
  • Make (Integromat) β€” Build automated pipelines with comment data
  • Webhooks β€” Send results to any HTTP endpoint
  • API β€” Access results programmatically (see below)

API usage

cURL

curl-X POST "https://api.apify.com/v2/acts/automation-lab~social-media-sentiment/runs?token=YOUR_TOKEN"\
-H"Content-Type: application/json"\
-d'{"postUrls": ["https://www.instagram.com/p/DT-0F1SD0My/"], "maxCommentsPerPost": 50}'

Node.js:

import{ ApifyClient }from'apify-client';
const client =newApifyClient({token:'YOUR_API_TOKEN'});
const run =await client.actor('automation-lab/social-media-sentiment').call({
postUrls:['https://www.instagram.com/p/DT-0F1SD0My/'],
maxCommentsPerPost:50,
});
const{ items }=await client.dataset(run.defaultDatasetId).listItems();
console.log(items);

Python:

from apify_client import ApifyClient
client = ApifyClient('YOUR_API_TOKEN')
run = client.actor('automation-lab/social-media-sentiment').call(run_input={
'postUrls':['https://www.instagram.com/p/DT-0F1SD0My/'],
'maxCommentsPerPost':50,
})
items = client.dataset(run['defaultDatasetId']).list_items().items
print(items)

Legality

Scraping publicly available data is generally legal according to the US Court of Appeals ruling (HiQ Labs v. LinkedIn). This actor only accesses publicly available information and does not require authentication. Always review and comply with the target website's Terms of Service before scraping. For personal data, ensure compliance with GDPR, CCPA, and other applicable privacy regulations.

FAQ

How long does scraping take? A single post with 20 comments typically completes in under 30 seconds. Larger batches with multiple posts and hundreds of comments take 1-5 minutes depending on the platform.

Does this work with private accounts? No. The scraper can only access comments on public posts. Private or restricted posts will return an error.

What happens if a post URL is invalid? Invalid or unavailable posts return an error entry in the dataset with a descriptive message. Other posts in the batch continue processing normally.

Can I scrape comments from profiles or hashtags? Currently, only individual post URLs are supported. Provide the direct URL to each post you want to scrape.

Is sentiment analysis included? Yes. Each comment is classified as positive, negative, or neutral using AFINN-165 rule-based analysis. The sentimentScore field ranges 0.0–1.0 (0.0 = most negative, 0.5 = neutral, 1.0 = most positive). Returns null only when the comment has no text.

The scraper returns fewer comments than the post shows. Social media platforms limit the number of visible comments through their APIs and web interfaces. The actual number of comments retrievable may be less than the total count shown on the post, especially for viral posts with thousands of comments.

I get an error for a TikTok or Facebook URL that works in my browser. Make sure the URL format matches the supported patterns. Some URL variations (e.g., mobile URLs, shortened links, or URLs with tracking parameters) may not be recognized. Use the canonical post URL format listed in the documentation.

Related actors

You might also like

Facebook Posts/Comments Scraper

alien_force/facebook-posts-comments-scraper

Facebook Post Scraper with Comments extracts Facebook post details, including text, author info, likes, shares, and media. It also scrapes comments with user details, engagement metrics, and timestamps. Ideal for social media monitoring, sentiment analysis, and audience insights.

774

5.0

Facebook Post Comments Scraper

easyapi/facebook-post-comments-scraper

Effortlessly extract comments from public Facebook posts. This actor automates comment collection, providing detailed information such as author details, comment text, and timestamps. Ideal for social media analysis, sentiment analysis, and market research.

1.1K

2.3

Social Media Sentiment Analysis Tool

tri_angle/social-media-sentiment-analysis-tool

Add a profile name and find this social profile on Facebook, Instagram, and TikTok, scrape its recent posts and comments, and perform sentiment analysis for each comment. All in one go. Export results in JSON, CSV, HTML, use API, schedule runs, integrate with other tools.

πŸ‘ User avatar

Tri⟁angle

2.2K

4.9

Facebook Posts Scraper

datapilot/facebook-posts-scraper

Just provide the page URL. The page name, post ID, link, text, likes, comments, shares β€” all data will be collected and stored directly in your Apify dataset. Works with residential proxies for reliable data extraction. Fast and easy β€” optimized for scraping public page data from Facebook.

Facebook Reels Scraper

scraper-engine/facebook-reels-scraper

Facebook Reels Scraper extracts detailed data from Facebook Reels, including video links, captions, likes, comments, and creator profiles. It automates the process for marketers, analysts, or researchers, delivering structured JSON or CSV outputs ready for insights or automation workflows.

πŸ‘ User avatar

Scraper Engine

386

5.0

Facebook Comments Scraper (All-in-One) Fast & cheap πŸ’¬β­

scrapestorm/facebook-comments-scraper-all-in-one-fast-cheap

Collect comments from public Facebook posts effortlessly with this powerful tool! Automate the extraction of author info, comments, and timestamps ⏰. Scrape not only post comments but also comments from images and videos πŸŽ₯πŸ“Έ. Ideal for social media analysis and data insights πŸ“Š!

204

4.8

All Social media Email Scraper

danny.hub/all-in-social-media-email

ALL social media Email Scraper, extract Email from Facebook/Instagram/TikTok/Linkedin/Youtube/Twitter/Reddit/Pinterest. Just type keywords, choose the country code and platform, and you can get endless Leads!!!!

πŸ‘ User avatar

Dannyswift.hub

950

Facebook Comments Scraper

crawlerbros/facebook-comments-scraper

Scrape public comments from Facebook posts, Watch videos, and photo stories. Extract comment text, author info, reactions, timestamps, and nested replies via GraphQL pagination.

140

Facebook Comments PPR

danek/facebook-comments-ppr

Scrap Facebook comments fast and easy. It is designed to be fast and efficient, so it can extract a large number of comments for low price. It is also less likely to be blocked by Facebook.

698

4.0

Facebook Comment Extractor πŸ—¨οΈβš‘: Data, Details & Analytics

thedoor/facebook-comment-scraper

✨ Get all Videos, Reels, Posts, Groups β€” and all their comments β€” in one click. Fast, clean, and effortless. Works with multiple URLs and supports every Facebook link format. Download data in JSON, CSV, Excel for use in apps, spreadsheets, and reports.