Facebook Comments Scraper
Pricing
from $0.40 / 1,000 results
Facebook Comments Scraper
π₯$0.40/1000 commentsπ₯. Scrape comments from any public Facebook post, reel, or video. Get comment text, author name, likes, timestamps, and reply counts. Supports bulk scraping across multiple posts. No login required from users. MCP, API integration optimised.
Pricing
from $0.40 / 1,000 results
Rating
0.0
(0)
Developer
Scrape Smith
Maintained by CommunityActor stats
0
Bookmarked
4
Total users
3
Monthly active users
a day ago
Last modified
Categories
Share
π¬ Facebook Comments Scraper
Extract comments from any public Facebook post, reel, or video at scale. Collect comment text, author details, timestamps, like counts, and reply metadata β ready for export as JSON, CSV, or Excel.
π What does Facebook Comments Scraper do?
This scraper collects all publicly visible comments from Facebook posts. Just paste one or more post URLs and the scraper returns structured data for every comment, including replies.
Use it for π brand monitoring, π§ sentiment analysis, π΅οΈ competitor research, π social listening, π content analysis, πΈ UGC collection, and π market research.
π¦ What data can you extract?
For every comment, the scraper returns:
| Field | Description |
|---|---|
text | π¬ Full comment text |
authorName | π€ Commenter's display name |
authorId | π Commenter's Facebook user ID |
commentId | π Unique comment ID |
likesCount | π Number of likes/reactions on the comment |
timestamp | π Unix timestamp (milliseconds) when the comment was posted |
isReply | β©οΈ Whether this is a reply to another comment |
postUrl | π URL of the parent post |
π How to scrape Facebook comments
- π Go to the Facebook post you want to scrape comments from
- π Copy the post URL from your browser's address bar
- π Paste the URL(s) into the scraper input
- π’ Set the limit β how many comments per post (default: 500)
- βΆοΈ Run the scraper and download your data
π Supported URL formats
- π Page posts:
https://www.facebook.com/PageName/posts/123456789 - π¬ Video posts:
https://www.facebook.com/PageName/videos/123456789 - ποΈ Reel posts:
https://www.facebook.com/reel/123456789 - π Permalink format:
https://www.facebook.com/permalink.php?story_fbid=... - π Short links:
https://fb.watch/...
βοΈ Input parameters
| Parameter | Type | Description |
|---|---|---|
postUrls | Array of strings | π List of Facebook post URLs to scrape comments from |
maxCommentsPerPost | Integer | π’ Maximum comments to collect per post (default: 500, max: 50,000) |
viewOption | String | π Comment sort order: RANKED_UNFILTERED (All), RANKED_THREADED (Most relevant), RECENT_ACTIVITY (Newest first) |
includeReplies | Boolean | π¬ Include reply comments nested under top-level comments (default: true) |
π₯ Example input
{"postUrls": ["https://www.facebook.com/Meta/posts/1075637535125456","https://www.facebook.com/cnn/posts/1194948395660316"],"maxCommentsPerPost": 1000}
π€ Example output
{"postUrl": "https://www.facebook.com/Meta/posts/1075637535125456","text": "This is amazing! Love the community spirit π³","authorName": "John Smith","authorId": "100012345678","likesCount": 42,"timestamp": 1783701511000}
π° How much does it cost to scrape Facebook comments?
The scraper uses Apify's pay-per-result pricing. You only pay for the comments you actually get.
- π Free tier: 10 comments per run β test before you buy, no credit card needed
- β‘ Performance: ~600 comments per minute
- πͺΆ Memory: Runs on just 128 MB β minimal compute cost
Check the Pricing tab above for current per-result rates.
π‘ Use cases
π Brand monitoring & reputation management
Track what customers say about your brand, products, or services across Facebook. Collect comments from your brand's posts or competitor pages to measure sentiment and spot issues early.
π§ Sentiment analysis & NLP
Feed structured comment data into your sentiment analysis pipeline. Each comment includes text, timestamp, and engagement metrics β perfect for time-series sentiment tracking.
π΅οΈ Competitor research
Analyze how audiences respond to competitor content. Compare engagement patterns, identify common complaints, and discover what resonates with their audience.
πΈ Content research & UGC
Find user-generated content, testimonials, and authentic customer feedback. Identify brand advocates and understand what drives engagement.
π Social listening at scale
Monitor comments across dozens of posts simultaneously. Set up recurring runs to track conversations over time.
π Academic & market research
Collect public Facebook comment data for research purposes. Export as CSV or JSON for analysis in Python, R, SPSS, or Excel.
π Integrations
Connect Facebook Comments Scraper to your workflow:
- π Google Sheets β auto-export comments to a spreadsheet
- π¬ Slack / Discord β get notified when scraping completes
- β‘ Zapier / Make β trigger downstream workflows
- πͺ Webhooks β POST results to your own API
- βοΈ Amazon S3 / Google Cloud β store datasets in cloud storage
Use the Apify API or any of the official Apify client libraries (JavaScript, Python) to integrate programmatically.
π€ MCP server integration (AI agents & LLMs)
This actor works as a tool for AI agents via the Apify MCP server. Connect it to Claude, ChatGPT, Cursor, Windsurf, or any MCP-compatible AI assistant to let your agent scrape Facebook comments on demand.
π£ Use with Claude Desktop / Claude Code
Add the Apify MCP server to your Claude config:
{"mcpServers": {"apify": {"command": "npx","args": ["-y", "@anthropic-ai/apify-mcp-server"],"env": {"APIFY_API_TOKEN": "YOUR_APIFY_TOKEN"}}}}
Then ask Claude: "Scrape comments from this Facebook post: https://www.facebook.com/Meta/posts/1075637535125456"
π’ Use with OpenAI / GPT agents
Apify actors are available as OpenAI tools via the Apify platform. See Apify + OpenAI integration docs.
π¦ Use with LangChain / LlamaIndex
from langchain_community.utilities import ApifyWrapperapify = ApifyWrapper()loader = apify.call_actor(actor_id="YOUR_ACTOR_ID",run_input={"postUrls": ["https://www.facebook.com/Meta/posts/1075637535125456"]},dataset_mapping_function=lambda item: item["text"],)
π§© Why use this with AI agents?
- π¬ Research automation: Let your agent collect and analyze Facebook discussions autonomously
- π RAG pipelines: Feed real-time Facebook comment data into retrieval-augmented generation
- π Sentiment workflows: Agent scrapes comments β analyzes sentiment β generates report
- π΅οΈ Competitive intel: Agent monitors competitor Facebook pages and summarizes audience reactions
π§ API access
Call the scraper from your code using the Apify API:
from apify_client import ApifyClientclient = ApifyClient("YOUR_API_TOKEN")run = client.actor("YOUR_ACTOR_ID").call(run_input={"postUrls": ["https://www.facebook.com/Meta/posts/1075637535125456"],"maxCommentsPerPost": 500,})for item in client.dataset(run["defaultDatasetId"]).iterate_items():print(item["authorName"], item["text"][:80])
import { ApifyClient } from 'apify-client';const client = new ApifyClient({ token: 'YOUR_API_TOKEN' });const run = await client.actor('YOUR_ACTOR_ID').call({postUrls: ['https://www.facebook.com/Meta/posts/1075637535125456'],maxCommentsPerPost: 500,});const { items } = await client.dataset(run.defaultDatasetId).listItems();items.forEach(item => console.log(item.authorName, item.text));
β FAQ
π Does this scraper need my Facebook login?
No. The scraper works without your Facebook credentials.
π’ How many comments can I scrape?
Up to 50,000 comments per post. Most posts have fewer than 10,000 comments.
π Can I scrape comments from private posts or groups?
No. Only publicly visible comments are accessible.
β‘ How fast is it?
~600 comments per minute on average. A post with 1,000 comments takes about 2 minutes.
π¬ Does it include replies to comments?
Yes. The "All comments" mode captures top-level comments and all replies.
π± What Facebook post types are supported?
Regular posts, photos, videos, reels, live videos, and shared posts from public pages and profiles.
π Can I filter comments by date or keyword?
The scraper collects all comments with timestamps. Use the exported data to filter by date, keyword, or any other field in your analysis tool.
βοΈ Is scraping Facebook comments legal?
This scraper only accesses publicly visible data. Always review Facebook's Terms of Service and applicable data protection regulations (GDPR, CCPA) before using scraped data.