Facebook Comments Scraper avatar

Facebook Comments Scraper

Pricing

from $0.19 / 1,000 comments

Go to Apify Store
Facebook Comments Scraper

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

Preternix

Maintained by Community

Actor stats

0

Bookmarked

44

Total users

14

Monthly active users

4 days ago

Last modified

Categories

Features

Limited permissions

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.

FieldTypeDescription
commentIdstring or nullThe comment's id (the key: one row per comment per run).
idstring or nullFacebook's graph id.
commentUrlstringDirect link to the comment on Facebook.
textstringThe full comment text.
textSnippetstringThe first 50 characters of the text, for tables.
datestring or nullWritten, ISO 8601 UTC.
timestampinteger or nullWritten, Unix seconds (UTC).
likesCountinteger or nullAll reactions on the comment (exact: the sum of the per-type counts when Facebook lists them).
likesCountTextstring or nullReactions as Facebook shows them ('1.2K').
commentsCountinteger or nullReplies to the comment.
reactionLikeCountintegerLike reactions on the comment.
reactionLoveCountintegerLove reactions on the comment.
reactionCareCountintegerCare reactions on the comment.
reactionHahaCountintegerHaha reactions on the comment.
reactionWowCountintegerWow reactions on the comment.
reactionSadCountintegerSad reactions on the comment.
reactionAngryCountintegerAngry reactions on the comment.
threadingDepthinteger or null0 for a comment, 1 for a reply, 2 for a reply to a reply (Facebook's 3 levels).
isReplyboolean or nullTrue for a reply (threadingDepth 1 or 2).
replyToCommentIdstring or nullThe comment or reply this one answers.
replyToNamestring or nullWho wrote the comment this one answers.
rootCommentIdstring or nullThe thread's first comment (depth 0) for a reply.
profileNamestringThe commenter's name, as Facebook shows it.
profileUrlstring or nullThe commenter's profile link (logged out, most people's links are hidden: null).
profileIdstring or nullThe commenter's id (logged out, people often get an anonymous pfbid id).
profilePicturestringThe commenter's profile picture URL.
profileGenderstring or nullThe commenter's gender as Facebook names it: MALE, FEMALE or NEUTER (a page); null when it names none.
isAuthorVerifiedbooleanThe commenter has a verified badge.
attachmentTypestring or nullPhoto, Sticker, GIF, Video, Link, Post (a shared post) or Other.
attachmentUrlstring or nullThe attachment's link: the shared page, the GIF, the photo or video page.
attachmentImageUrlsarray or nullImages attached to the comment (photo, sticker, GIF frame).
attachmentVideoUrlstring or nullA playable video file of a video attachment.
attachmentTitlestring or nullThe shared link's title (or the sticker's label).
attachmentSourcestring or nullThe shared link's site (e.g. youtube.com), or the GIF's source (GIPHY).
attachmentIdstring or nullThe attached media's Facebook id.
textLinksarray or nullExternal links in the comment text.
sharedPostUrlstring or nullA Facebook post shared in the comment.
sharedPostTextstring or nullThat post's text.
mentionsarray or nullPages and people tagged in the text.
postIdstring or nullThe post's id.
postTitlestring or nullThe start of the post's text.
postDescriptionstring or nullThe post's full text.
postUrlstring or nullThe post's link as Facebook names it (a share, reel or video link resolves to its post).
pageNamestring or nullWho posted the post.
pageIdstring or nullThe post owner's profile id.
pageAdLibraryIdstring or nullThe post's page in the Meta Ad Library.
isBusinessPageActiveboolean or nullThe page is an active business page.
facebookIdstring or nullThe post's id (as in other tools).
facebookUrlstring or nullThe post's link.
inputUrlstring or nullThe link you gave, as you gave it.
scrapedAtstring or nullWhen 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

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.

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 ApifyClient
client = 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

  1. Paste one or more public post, reel, video or photo links.
  2. Set Comments per post, or leave it empty for every comment Facebook shows.
  3. Optional: turn on Include replies, pick Sort comments, or set a date window.
  4. Click Start and export the dataset.

Input parameters

ParameterTypeDefaultDescription
startUrlsarray-Facebook post, reel, video or photo links. Public Facebook links: posts (/posts/pfbid..., permalink.php?story_fbid=...), reels (/reel/...), videos.
resultsLimitinteger-Comments per post. Up to this many comments (replies included) from each link.
includeNestedCommentsboolean-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.
maxRepliesPerCommentinteger-Max replies per comment. Up to this many replies under each comment (with 'Include replies'). Empty: every reply. 0: none.
viewOptionstring"RANKED_UNFILTERED"Sort comments. Facebook's own comment orders. Options: RANKED_UNFILTERED, RANKED_THREADED, RECENT_ACTIVITY.
onlyCommentsNewerThanstring-Comments newer than. Only comments written after this date: 2026-01-31, an ISO time, or relative like 7 days, 3 months.
onlyCommentsOlderThanstring-Comments older than. Only comments written before this date (same formats). With 'Comments newer than' this keeps a window.
proxyConfigurationobject{"useApifyProxy": true}Proxy. Apify Proxy datacenter IPs by default.
residentialFallbackbooleantrueRetry refused calls on residential IPs. When Facebook refuses a datacenter IP, ask again on a residential one.
postUrlsarray-Post URLs (alias). Additional public post URLs. Combined with startUrls; repeated links are skipped.
targetCommentsinteger-Target comments (alias). Comments and replies per post. -1 means all. If resultsLimit is also set, the smaller positive limit applies.
orderingModestring-Ordering mode (alias). Use this when viewOption is unset or set to its published default. Options: MOST_RELEVANT, NEWEST, ALL.
includeRepliesboolean-Include replies (alias). Used when includeNestedComments is unset.
proxyUrlsarray-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.

EventFreeStarterScaleBusiness
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.

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.