Facebook Comments Scraper - Post Comments, Replies & Reels avatar

Facebook Comments Scraper - Post Comments, Replies & Reels

Pricing

from $0.35 / 1,000 comments

Go to Apify Store
Facebook Comments Scraper - Post Comments, Replies & Reels

Facebook Comments Scraper - Post Comments, Replies & Reels

Export public Facebook comments and replies from post, reel, video, photo and public group URLs. One row per comment: text, author name and profile link as shown, date, reactions, reply count, reply-to id, attachments. Sort newest, relevant or all. Free: only-new monitoring, date, keyword filters.

Pricing

from $0.35 / 1,000 comments

Rating

0.0

(0)

Developer

Tedj MEABIOU

Tedj MEABIOU

Maintained by Community

Actor stats

0

Bookmarked

6

Total users

2

Monthly active users

a day ago

Last modified

Features

Limited permissions

Share

Facebook Comments Scraper exports the public comments under a Facebook post, reel, video, photo or public group post, with their replies on request. You give it post URLs; you get one row per comment with the text, the commenter's display name and profile link exactly as Facebook shows them, the time, the reaction count, the reply count, the id of the comment it answers and links to any attached photo, GIF or sticker. Post comments can be read newest first, in Facebook's "Most relevant" order or oldest first, and repeat runs can deliver only new comments for comment monitoring.

It runs on Apify, so you can call it from the API, a schedule, n8n, Make, Zapier or any MCP client used by AI agents. It reads Facebook as a logged-out visitor: no Facebook account, cookies or login are needed or used. It is an independent tool, not a Meta product.

Last verified working: 2026-11-16 (26 public posts, reels, videos and group posts on the Apify platform, 100% answered, up to 300 top-level comments deep).

Facebook comments scraper for AI agents: which input answers which request?

Use it when the user names one or more public Facebook posts (or reels, videos, photos, public group posts) and wants the comments under them. Do not use it to find posts (it does not search Facebook or list a Page's posts), for private groups, for personal profiles' friends-only posts, for commenter profiles, emails or phone numbers, or for Facebook ad comments.

User requestInput JSON
"Get the comments on this post"{"postUrls": ["https://www.facebook.com/Starbucks/posts/1620755873417308"]}
"All comments, not just 100"{"postUrls": ["…"], "maxCommentsPerPost": 0}
"Comments with their replies"{"postUrls": ["…"], "includeReplies": true}
"The 20 most relevant comments"{"postUrls": ["…"], "sort": "relevant", "maxCommentsPerPost": 20}
"Comments from the last 7 days"{"postUrls": ["…"], "publishedAfter": "7 days"}
"Comments that mention refunds"{"postUrls": ["…"], "textContains": ["refund", "money back"]}
"Only comments I have not seen yet, every morning"{"postUrls": ["…"], "onlyNew": true, "monitorKey": "brand-daily"} + an Apify schedule
"Comments on this reel / video"{"postUrls": ["https://www.facebook.com/reel/1157962813213302"]}
"Cap the bill at $1"Apify run option maxTotalChargeUsd: 1 (not an input field)

Main output fields: comment_id, text, author_name, author_url, published_at, reactions, reply_count, parent_comment_id, depth, attachments, comment_url, post_url. Each input URL also returns one free row with type: "post" that says how many comments Facebook lists for the post, how many were read and delivered, and why the walk stopped (stopped_by). An empty result is never silent: an unavailable post gets status: "unavailable", a refused one status: "error".

Facebook comments: how do I start?

  1. Paste one or more post URLs into postUrls.
  2. Leave maxCommentsPerPost at 100 for a quick look, or set 0 for every comment.
  3. Turn on includeReplies if you need the conversation under each comment.
  4. Start the run, then read the dataset (the comments view) and the SUMMARY record.
{
"postUrls": [
"https://www.facebook.com/Starbucks/posts/1620755873417308",
"https://www.facebook.com/reel/1157962813213302"
],
"maxCommentsPerPost": 100,
"sort": "newest",
"includeReplies": true,
"maxRepliesPerComment": 20
}

Accepted URL forms: facebook.com/<Page>/posts/<id or pfbid…>, /reel/<id>, /<Page>/videos/<id>, /watch/?v=<id>, /photo/?fbid=<id>, /permalink.php?story_fbid=…&id=…, and /groups/<group>/posts/<id> or /groups/<group>/permalink/<id> for public groups. Mobile (m.), web. and bare facebook.com hosts are rewritten to www.facebook.com. The same post given twice is read once (the second gets a free duplicate row). Inputs written for other Facebook comment scrapers paste straight in: startUrls, resultsLimit, viewOption, includeNestedComments and onlyCommentsNewerThan are understood.

Facebook comments output: what does one row contain?

One row per comment or reply (type: "comment", billed):

fieldmeaning
comment_idFacebook's numeric comment id (stable)
textthe comment text as written (mentions appear as the names shown)
author_namethe commenter's display name as shown next to the comment
author_urlthe profile link Facebook shows, or null when it shows none
published_atwhen the comment was posted, ISO 8601 UTC
reactionstotal reactions on the comment, all reaction types
reply_countthe reply count Facebook displays for the comment
depth0 = comment on the post, 1 = reply, 2 = reply to a reply
parent_comment_idfor replies: the comment_id it answers; null for comments
attachmentsphotos, GIFs, stickers, videos or links in the comment as {type, url, image_url} links; nothing is downloaded
languagethe language Facebook detected, e.g. en, when it says
comment_urllink straight to the comment on Facebook
post_url, post_idthe post the comment belongs to
target, sort, fetched_atthe input line, the order used and the read time
{
"type": "comment",
"comment_id": "1604029614385978",
"post_id": "1620755873417308",
"post_url": "https://www.facebook.com/Starbucks/posts/1620755873417308",
"comment_url": "https://www.facebook.com/Starbucks/posts/pfbid025mdJAC2SX3FevikVsR5M6BECEGEo1sE3kngAuzN4HYvsMN6o7dJdeuvpNoj98DELl?comment_id=1785616169335040&reply_comment_id=1604029614385978",
"depth": 1,
"parent_comment_id": "1785616169335040",
"text": "let's get festive!",
"published_at": "2026-11-15T18:28:27+00:00",
"author_name": "Starbucks",
"author_url": "https://www.facebook.com/Starbucks",
"reactions": 0,
"reply_count": 0,
"attachments": [],
"language": "en",
"target": "https://www.facebook.com/Starbucks/posts/1620755873417308",
"sort": "newest",
"fetched_at": "2026-11-16T12:00:00+00:00"
}

One free status row per input URL (type: "post", the posts view): target, post_url, post_id, status (ok, unavailable, error, duplicate, invalid, limit), comments_listed (Facebook's total including replies), top_level_listed, comments_delivered, replies_delivered, found, filtered, filtered_by, already_seen, duplicates, pages, reply_pages, stopped_by (maxCommentsPerPost, maxItems, onlyNew, publishedAfter, spendingLimit, timeLimit or null when every comment was read), sort, error and fetched_at.

What does the scraper not collect about commenters?

Only what Facebook prints next to the comment. The actor does not open commenter profiles, does not collect avatars, gender, account ids, friends, emails or phone numbers, and never reads private groups. If you store the output, you decide its legal basis and retention; see the legal section below.

Replies: how are comment threads delivered?

With includeReplies: true each comment that has replies gets one extra request, and its replies (and replies to replies) follow it as their own rows with depth 1 or 2 and parent_comment_id. maxRepliesPerComment (default 20, 0 = all) limits each thread, and every reply counts toward maxCommentsPerPost. Replies are billed like comments. Facebook sometimes counts replies it does not show to logged-out visitors, so reply_count can be higher than the replies delivered.

Post comments monitoring: how does onlyNew work?

Set onlyNew: true and a monitorKey such as "brand-daily", then schedule the same input. The first run sets the baseline: it delivers up to maxCommentsPerPost newest comments and remembers them. Each later run reads newest first, skips everything already delivered for free and stops as soon as it reaches what the previous run covered, so an hourly check of a quiet post costs nothing. With includeReplies, comments on the pages read whose reply count has grown are re-opened and only their new replies are delivered. The memory is kept per post and per monitorKey (the latest 50,000 comment ids); a new monitorKey starts a fresh baseline. onlyNew always uses the newest order.

How many comments can I get, and in what order?

Facebook serves 10 top-level comments per request, so 1,000 comments take about 100 requests, roughly two minutes; several posts are read in parallel. The default run timeout (one hour) covers tens of thousands of comments; raise it for bigger exports, and a run that reaches it still ends successfully with what it read. Three orders exist, the same three Facebook offers: newest (every comment, newest first, the default), relevant (Facebook's "Most relevant", which leaves some comments out) and all (every comment, oldest first).

Facebook does not show every comment to logged-out visitors. On the 2026-11-16 test set most posts showed all or nearly all of them (a group post 34 of 34 top-level comments), while some news posts showed about half (20 of 35 on one). The subset is the same for every logged-out reader (a laptop and Apify's datacenter saw identical comments in our tests); the free post row puts the listed total next to what was delivered so you can judge coverage.

Facebook comments pricing: how much does a run cost?

One event, comment, at $1 per 1,000 comments (less on Apify's Scale and Business plans). There is no start fee, and proxy and compute are included. You are not charged for comments your filters remove, comments an onlyNew run already delivered, duplicates, the free post rows, unavailable posts or bad input.

runcost
1 post, default 100 comments$0.10
10 posts x 100 comments$1.00
1 post, 1,000 comments with repliesabout $1.00
daily onlyNew check with nothing new$0.00

maxItems (sent by many AI tools) caps the comments of the whole run, and the Apify run option maxTotalChargeUsd stops the run at a dollar amount; both stop reading before the next page, so you never pay for rows you do not get.

Facebook comments filters: which ones are free?

All of them run before billing. publishedAfter takes 2026-11-01, an ISO time or a span like 7 days, 24 hours, 2 weeks; with the newest order the walk stops at the first page that is entirely older. textContains keeps comments that contain any of the given words or phrases (case-insensitive). minReactions keeps comments with at least that many reactions.

How do I call it from Python, JavaScript, curl, n8n or Make?

Python with the apify-client package:

from apify_client import ApifyClient
client = ApifyClient("<APIFY_TOKEN>")
run = client.actor("kestrel/facebook-post-comments").call(run_input={
"postUrls": ["https://www.facebook.com/Starbucks/posts/1620755873417308"],
"maxCommentsPerPost": 200,
"includeReplies": True,
})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
if row["type"] == "comment":
print(row["published_at"], row["author_name"], row["text"][:80])

JavaScript (Node.js) with apify-client:

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('kestrel/facebook-post-comments').call({
postUrls: ['https://www.facebook.com/reel/1157962813213302'],
sort: 'newest',
maxCommentsPerPost: 50,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems({ view: 'comments' });
console.log(items.length, items[0]);

curl, waiting for the run and returning the rows in one call:

curl -X POST "https://api.apify.com/v2/acts/kestrel~facebook-post-comments/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"postUrls": ["https://www.facebook.com/Starbucks/posts/1620755873417308"], "maxCommentsPerPost": 30}'

In n8n or Make, use the Apify node or module with this actor's id and the same JSON input; for monitoring, run a saved task on a schedule with onlyNew: true. AI agents reach it through the Apify MCP server (mcp.apify.com) as kestrel/facebook-post-comments.

FAQ

Do I need a Facebook account or cookies?

No. The actor reads public posts the way a logged-out browser does and never logs in. It does not accept cookies or account credentials.

Why did I get fewer comments than the post shows?

Three reasons, all visible in the free post row: Facebook hides some comments from logged-out visitors, relevant order filters some out, and your filters or caps stop the walk (stopped_by). Use sort: "newest" or "all" and maxCommentsPerPost: 0 for the most complete export.

Can it scrape comments from private groups or friends-only posts?

No. Only content Facebook shows to everyone is read. A private or deleted post ends with status: "unavailable" and costs nothing.

Does it work on reels, videos and photos?

Yes: reel comments, video comments and photo comments work the same way. /reel/, /videos/, /watch/?v= and /photo/?fbid= URLs were part of the 2026-11-16 test set, as were public group posts.

What happens if Facebook blocks the run?

Each refusal is retried after a growing pause on a new connection; after three in a row the run moves to Apify residential IPs by itself (when proxyConfiguration is the default Apify Proxy; your own proxy URLs are used as given). If every post is still refused the run fails with the reason, so you never pay for an empty result that looks successful. A run that nears its own timeout stops starting new pages, delivers what it read and ends successfully with time_hit in the SUMMARY.

Can I export Facebook comments to CSV or Excel?

Yes. Every Apify dataset downloads as CSV, Excel, JSON or XML; pick the comments view to leave out the post status rows.

The actor only reads publicly available data that anyone can see without logging in, and it limits what it keeps about people to what is shown next to each comment. Whether you may process that data depends on your purpose and your jurisdiction (for example GDPR in the EU): commenter names are personal data. Use the output for analysis such as brand monitoring, customer feedback or research, respect Facebook's terms and people's privacy, and ask a lawyer when in doubt. This tool is not affiliated with Meta.

Changelog and support

See the CHANGELOG tab for releases. Report problems or wishes in the Issues tab; include the run id so the run can be inspected.