Facebook Comments Scraper
Pricing
from $0.19 / 1,000 comments
Facebook Comments Scraper
Facebook comments scraper: paste post, reel, video or photo links and get every public comment and 3-level reply with author, text, date, reactions by type, GIFs, photos and links. One flat price: $0.24/1k Starter ($0.19 Business). $0 start fee, $0 request fees, $0 add-ons. No login.
Pricing
from $0.19 / 1,000 comments
Rating
0.0
(0)
Developer
Preternix
Maintained by CommunityActor stats
0
Bookmarked
44
Total users
14
Monthly active users
4 days ago
Last modified
Categories
Features
Share
Facebook Comments Scraper exports the public comments under Facebook posts, reels, videos and photos. Paste links and get every comment and reply, up to the three levels Facebook shows, with the author, text, date, total reactions and reactions by type (like, love, care, haha, wow, sad, angry), reply counts, GIFs, photos, shared links and mentions. It reads what Facebook shows logged-out visitors, so no Facebook account or cookies are needed, and the export is ready for CSV, Excel, JSON or the API.
Quick summary
- Posts, reels, videos, watch links, photos and group posts: any public Facebook link with a comment thread.
- Replies up to 3 levels, each as its own row with the comment it answers and its thread's first comment.
- Reactions by type on every comment, plus the exact total.
- Attachments: GIFs, photos, stickers, videos and shared links, with their URLs.
- Date window and sort order: newest first, most relevant, or all comments.
- One flat price of $0.24 per 1,000 comments on the Starter plan, with replies and date filters included.
Output & Data Fields
Each row is one comment or reply. Replies have isReply set to true and threadingDepth of 1 or 2.
| Field | Type | Description |
|---|---|---|
commentId | string or null | The comment's id (the key: one row per comment per run). |
id | string or null | Facebook's graph id. |
commentUrl | string | Direct link to the comment on Facebook. |
text | string | The full comment text. |
textSnippet | string | The first 50 characters of the text, for tables. |
date | string or null | Written, ISO 8601 UTC. |
timestamp | integer or null | Written, Unix seconds (UTC). |
likesCount | integer or null | All reactions on the comment (exact: the sum of the per-type counts when Facebook lists them). |
likesCountText | string or null | Reactions as Facebook shows them ('1.2K'). |
commentsCount | integer or null | Replies to the comment. |
reactionLikeCount | integer | Like reactions on the comment. |
reactionLoveCount | integer | Love reactions on the comment. |
reactionCareCount | integer | Care reactions on the comment. |
reactionHahaCount | integer | Haha reactions on the comment. |
reactionWowCount | integer | Wow reactions on the comment. |
reactionSadCount | integer | Sad reactions on the comment. |
reactionAngryCount | integer | Angry reactions on the comment. |
threadingDepth | integer or null | 0 for a comment, 1 for a reply, 2 for a reply to a reply (Facebook's 3 levels). |
isReply | boolean or null | True for a reply (threadingDepth 1 or 2). |
replyToCommentId | string or null | The comment or reply this one answers. |
replyToName | string or null | Who wrote the comment this one answers. |
rootCommentId | string or null | The thread's first comment (depth 0) for a reply. |
profileName | string | The commenter's name, as Facebook shows it. |
profileUrl | string or null | The commenter's profile link (logged out, most people's links are hidden: null). |
profileId | string or null | The commenter's id (logged out, people often get an anonymous pfbid id). |
profilePicture | string | The commenter's profile picture URL. |
profileGender | string or null | The commenter's gender as Facebook names it: MALE, FEMALE or NEUTER (a page); null when it names none. |
isAuthorVerified | boolean | The commenter has a verified badge. |
attachmentType | string or null | Photo, Sticker, GIF, Video, Link, Post (a shared post) or Other. |
attachmentUrl | string or null | The attachment's link: the shared page, the GIF, the photo or video page. |
attachmentImageUrls | array or null | Images attached to the comment (photo, sticker, GIF frame). |
attachmentVideoUrl | string or null | A playable video file of a video attachment. |
attachmentTitle | string or null | The shared link's title (or the sticker's label). |
attachmentSource | string or null | The shared link's site (e.g. youtube.com), or the GIF's source (GIPHY). |
attachmentId | string or null | The attached media's Facebook id. |
textLinks | array or null | External links in the comment text. |
sharedPostUrl | string or null | A Facebook post shared in the comment. |
sharedPostText | string or null | That post's text. |
mentions | array or null | Pages and people tagged in the text. |
postId | string or null | The post's id. |
postTitle | string or null | The start of the post's text. |
postDescription | string or null | The post's full text. |
postUrl | string or null | The post's link as Facebook names it (a share, reel or video link resolves to its post). |
pageName | string or null | Who posted the post. |
pageId | string or null | The post owner's profile id. |
pageAdLibraryId | string or null | The post's page in the Meta Ad Library. |
isBusinessPageActive | boolean or null | The page is an active business page. |
facebookId | string or null | The post's id (as in other tools). |
facebookUrl | string or null | The post's link. |
inputUrl | string or null | The link you gave, as you gave it. |
scrapedAt | string or null | When this run read it (UTC). |
Other fields in the dataset: feedbackId, author, attachments, parentComment, parentReply, pageAdLibrary.
Sample output
Selected fields from a real comment row by the page that published the post (text shortened):
{"commentId": "2299934260765286","commentUrl": "https://www.facebook.com/humansofnewyork/posts/pfbid0wTFSfgcgWGe5zmFtK5t7TtdZJbq2ig2hDtJV1oJERGzFoRCXChzpB4DKA3BUNFQUl?c...","text": "Gabby's story can also be found in Dear New York; a collection of hundreds of portraits and written stories from the str...","date": "2026-09-18T14:29:06Z","likesCount": 1139,"likesCountText": "1.1K","commentsCount": 12,"reactionLikeCount": 939,"reactionLoveCount": 172,"reactionCareCount": 27,"reactionHahaCount": 0,"reactionWowCount": 0,"threadingDepth": 0,"isReply": false,"profileName": "Humans of New York","profileUrl": "https://www.facebook.com/humansofnewyork","isAuthorVerified": true,"postId": "1650977309926585","postTitle": "“My first end-of-life patient was a 97-year-old ma…","pageName": "Humans of New York","inputUrl": "https://www.facebook.com/humansofnewyork/posts/pfbid0318QNw3ZPiGiR8HrMaYaGontt6eGV9NrWVLZR4UiPpWnabgQa9BYYrz2KNGfx2fabl","scrapedAt": "2026-11-24T13:28:03Z"}
Features
Every public link type
Paste links into Facebook post, reel, video or photo links (startUrls): posts (/posts/pfbid... and permalink.php), reels, videos, watch links, photos, group posts and share links. Duplicate links are skipped. A page URL has no comment thread of its own, so link to a post instead.
Replies with the full thread structure
Turn on Include replies (includeNestedComments) to add replies and replies to replies, the 3 levels Facebook shows. Each reply row carries replyToCommentId, replyToName and rootCommentId, so the conversation can be rebuilt. Max replies per comment (maxRepliesPerComment) limits each thread, and 0 skips replies.
Reactions by type
likesCount is the exact total of all reactions, and seven fields break it down: like, love, care, haha, wow, sad and angry. likesCountText keeps the short label Facebook shows, such as 5.1K.
Attachments, links and mentions
GIFs, photos, stickers and videos attached to comments come with attachmentType, attachmentUrl, attachmentImageUrls and attachmentVideoUrl. Links in the text are in textLinks, shared Facebook posts in sharedPostUrl, and tagged pages and people in mentions.
Sort order and date window
Sort comments (viewOption) uses Facebook's own orders: RANKED_UNFILTERED (all comments), RANKED_THREADED (most relevant) and RECENT_ACTIVITY (newest). Comments newer than (onlyCommentsNewerThan) and Comments older than (onlyCommentsOlderThan) keep a window, with dates or periods like "7 days". With a lower bound, reading stops at the first older comment.
Drop-in compatible input and output
Alias inputs such as Post URLs (alias) (postUrls), Target comments (alias) (targetComments), Ordering mode (alias) (orderingMode) and Include replies (alias) (includeReplies), and nested output objects such as author, parentComment and pageAdLibrary, follow a widely used Facebook comments format, so existing pipelines switch with few changes.
Integrations & Export Formats
Export comments as CSV, JSON, Excel (XLSX), XML or HTML, or read them through the Apify API.
Python (apify-client)
from apify_client import ApifyClientclient = ApifyClient("<YOUR_APIFY_TOKEN>")run_input = {"startUrls": [{"url": "https://www.facebook.com/humansofnewyork/posts/pfbid0318QNw3ZPiGiR8HrMaYaGontt6eGV9NrWVLZR4UiPpWnabgQa9BYYrz2KNGfx2fabl"}],"resultsLimit": 1000,"includeNestedComments": True,"viewOption": "RANKED_UNFILTERED"}run = client.actor("deepmine/facebook-comments-scraper").call(run_input=run_input)for c in client.dataset(run["defaultDatasetId"]).iterate_items():print(c["threadingDepth"], c["likesCount"], c["profileName"], c["text"][:80])
JavaScript / Node.js (apify-client)
import { ApifyClient } from "apify-client";const client = new ApifyClient({ token: "<YOUR_APIFY_TOKEN>" });const input = {"startUrls": [{ "url": "https://www.facebook.com/humansofnewyork/posts/pfbid0318QNw3ZPiGiR8HrMaYaGontt6eGV9NrWVLZR4UiPpWnabgQa9BYYrz2KNGfx2fabl" }],"viewOption": "RECENT_ACTIVITY","onlyCommentsNewerThan": "7 days","includeNestedComments": false};const run = await client.actor("deepmine/facebook-comments-scraper").call(input);const { items } = await client.dataset(run.defaultDatasetId).listItems();console.log(items.map((c) => [c.date, c.reactionLoveCount, c.reactionAngryCount, c.text]));
REST API
curl -X POST "https://api.apify.com/v2/acts/deepmine~facebook-comments-scraper/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>&format=csv" \-H "Content-Type: application/json" \-d '{"startUrls": [{"url": "https://www.facebook.com/humansofnewyork/posts/pfbid0318QNw3ZPiGiR8HrMaYaGontt6eGV9NrWVLZR4UiPpWnabgQa9BYYrz2KNGfx2fabl"}], "resultsLimit": 200}'
No-code tools and AI agents
- Google Sheets: send the comments under your latest posts to a sheet for your social team to answer.
- n8n, Make and Zapier: check a campaign post every hour and alert Slack when angry reactions or complaints spike.
- Clay: call the run-sync endpoint from an HTTP API column to collect commenters on competitor posts for audience research.
- Apify MCP server: let an AI agent read a thread and summarize sentiment, recurring questions and objections.
How to Use & API Parameters
Quick start
- Paste one or more public post, reel, video or photo links.
- Set Comments per post, or leave it empty for every comment Facebook shows.
- Optional: turn on Include replies, pick Sort comments, or set a date window.
- Click Start and export the dataset.
Input parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
startUrls | array | - | Facebook post, reel, video or photo links. Public Facebook links: posts (/posts/pfbid..., permalink.php?story_fbid=...), reels (/reel/...), videos. |
resultsLimit | integer | - | Comments per post. Up to this many comments (replies included) from each link. |
includeNestedComments | boolean | - | Include replies. Replies too, up to the 3 levels Facebook shows (comment, reply, reply to a reply), each as its own row with the comment it answers and its thread's first comment. |
maxRepliesPerComment | integer | - | Max replies per comment. Up to this many replies under each comment (with 'Include replies'). Empty: every reply. 0: none. |
viewOption | string | "RANKED_UNFILTERED" | Sort comments. Facebook's own comment orders. Options: RANKED_UNFILTERED, RANKED_THREADED, RECENT_ACTIVITY. |
onlyCommentsNewerThan | string | - | Comments newer than. Only comments written after this date: 2026-01-31, an ISO time, or relative like 7 days, 3 months. |
onlyCommentsOlderThan | string | - | Comments older than. Only comments written before this date (same formats). With 'Comments newer than' this keeps a window. |
proxyConfiguration | object | {"useApifyProxy": true} | Proxy. Apify Proxy datacenter IPs by default. |
residentialFallback | boolean | true | Retry refused calls on residential IPs. When Facebook refuses a datacenter IP, ask again on a residential one. |
postUrls | array | - | Post URLs (alias). Additional public post URLs. Combined with startUrls; repeated links are skipped. |
targetComments | integer | - | Target comments (alias). Comments and replies per post. -1 means all. If resultsLimit is also set, the smaller positive limit applies. |
orderingMode | string | - | Ordering mode (alias). Use this when viewOption is unset or set to its published default. Options: MOST_RELEVANT, NEWEST, ALL. |
includeReplies | boolean | - | Include replies (alias). Used when includeNestedComments is unset. |
proxyUrls | array | - | Custom proxy URLs (alias). HTTP(S) proxy addresses. Used when proxyConfiguration is unset or set to its published default. |
Example input
{"startUrls": [{"url": "https://www.facebook.com/humansofnewyork/posts/pfbid0318QNw3ZPiGiR8HrMaYaGontt6eGV9NrWVLZR4UiPpWnabgQa9BYYrz2KNGfx2fabl"}],"resultsLimit": 500,"includeNestedComments": true,"maxRepliesPerComment": 20,"viewOption": "RANKED_UNFILTERED","onlyCommentsNewerThan": "30 days"}
Use Cases
Social media management
Collect every comment on your page's posts and reels in one table, reply faster and track response coverage.
Sentiment and reaction analysis
Use reactions by type and the comment text to measure how audiences feel about a launch, an announcement or an ad.
Competitor research
Read the comments under competitors' posts to learn what customers praise, complain about and ask for.
Crisis and reputation monitoring
Watch a fast-moving post with a date window and alert your team when negative comments or angry reactions climb.
Research and AI datasets
Export threaded conversations with reply structure and timestamps for academic studies, moderation research or model training.
Pricing
Facebook Comments Scraper uses one flat pay-per-event price: each comment or reply delivered to your dataset is charged once per run, however many links list it. Replies and date filters cost nothing extra, and there is no start fee.
| Event | Free | Starter | Scale | Business |
|---|---|---|---|---|
| Comment (per 1,000) | $0.29 | $0.24 | $0.21 | $0.19 |
Volume discounts apply automatically by Apify plan. Comments per post and Max replies per comment cap each link, and you can set a maximum cost per run in the run options.
FAQ
How do I export Facebook comments to Excel or CSV?
Paste the post link, run the Actor and download the dataset as Excel or CSV from the Output tab, or fetch it with format=csv through the API.
Does it collect nested replies, not just top-level comments?
Yes. Turn on Include replies for up to 3 levels. Each reply has threadingDepth, replyToCommentId and rootCommentId. Use Max replies per comment to limit each thread.
Can I get reaction counts by type for each comment?
Yes. Every comment includes like, love, care, haha, wow, sad and angry counts, plus the exact total in likesCount.
How do I export only comments from a date range?
Set Comments newer than and Comments older than with dates or periods like "7 days". Choose Sort comments to set the order.
Can I scrape comments from Facebook reels and videos?
Yes. Reel, video and watch links work the same way as post links.
Why are some commenter profile links empty?
Facebook hides most people's profile links from logged-out visitors, so profileUrl is often null for individuals. Page names and links are usually shown.
Do I need a Facebook account?
No. The Actor reads public comments without a login or cookies.