Facebook Comments & Replies Scraper avatar

Facebook Comments & Replies Scraper

Pricing

from $2.50 / 1,000 results

Go to Apify Store
Facebook Comments & Replies Scraper

Facebook Comments & Replies Scraper

Scrapes comments, reaction counts and replies from public Facebook posts.

Pricing

from $2.50 / 1,000 results

Rating

0.0

(0)

Developer

Dataji.io

Dataji.io

Maintained by Community

Actor stats

0

Bookmarked

4

Total users

1

Monthly active users

13 days ago

Last modified

Categories

Share

Facebook Post Comments Scraper

Scrape all comments and replies from public Facebook posts, with no login and no Facebook API key needed. Paste one or more post URLs and get every comment with its author, date, reaction count, reply count, attachment, and a direct link to the comment. Replies, including replies to replies, come out as their own rows so the data is easy to use in Excel, Google Sheets or a database.

What can this Facebook comments scraper do?

  • 💬 Scrape every top-level comment on a public Facebook post
  • ↩️ Scrape all replies and replies to replies, linked to their parent comment
  • 👤 Get the commenter's name, profile ID, profile URL and profile picture
  • 📅 Get the exact date and time of each comment (ISO 8601, UTC)
  • 👍 Get reaction counts as numbers (1.2K becomes 1200)
  • 🖼️ Get images, GIFs and stickers attached to comments
  • 📝 Get post details on every row: post text, author, date, total comments, reactions and shares
  • 🔗 Works with /posts/ links, share links (facebook.com/share/p/...), permalink.php, photo, video and reel links
  • 📦 Export to JSON, CSV, Excel, XML or HTML, or pull the data through the Apify API

What data can I extract?

FieldDescription
typecomment or reply
textComment text
authorName, authorId, authorUrl, authorProfilePictureWho wrote the comment
dateWhen the comment was posted (UTC)
reactionCountNumber of reactions on the comment
replyCountNumber of replies Facebook reports for the comment
commentId, commentUrlComment ID and a direct link to it
parentCommentIdFor replies: the top-level comment this reply belongs to
replyToCommentIdFor replies: the comment or reply it directly answers
depth0 = comment, 1 = reply, 2 = reply to a reply
attachmentImage / GIF / sticker attached to the comment (type, url)
postUrl, postId, postAuthor, postText, postDateThe post the comment belongs to
postCommentCount, postReactionCount, postShareCountPost totals as shown by Facebook

How to scrape Facebook comments

  1. Click Try for free.
  2. Paste one or more Facebook post URLs.
  3. Optionally set Max comments per post and whether to include replies.
  4. Click Start and download your data when the run finishes.

Input

FieldDescription
Facebook post URLsPublic post URLs. Page or profile URLs (e.g. facebook.com/NASA) are skipped.
Max comments per postLimit top-level comments per post. 0 = all comments.
Include repliesAlso scrape replies and replies to replies. On by default.
Max replies per commentLimit replies per comment. 0 = all replies.
Proxy configurationApify Proxy is used by default. If runs get blocked, switch to the RESIDENTIAL group.
Facebook cookies (advanced)Only for posts you cannot see without logging in. Not needed for public posts.

Example input:

{
"postUrls": [
{ "url": "https://www.facebook.com/NASA/posts/pfbid0dPToN66CzcAHGMoaNe3jszH4FfBKvqkE5gogCNJkTxXDPsSGYrGvcVwsLgByyMQQl" }
],
"maxComments": 100,
"includeReplies": true
}

Output example

Each comment and each reply is one row:

{
"postUrl": "https://www.facebook.com/Cristiano/posts/pfbid02wwWW6zEYdHpCmYbVWEwJMX8QH5ve4izADrhZpPeHxFScJkwEbdLsq9VpoboHpJFLl",
"postId": "1766904111462788",
"postAuthor": "Cristiano Ronaldo",
"postText": "Job done. On to the next one! 💪🏽",
"postDate": "2026-10-09T20:32:02+00:00",
"postCommentCount": 26352,
"postReactionCount": 733019,
"postShareCount": 9846,
"type": "comment",
"commentId": "2623070158154088",
"commentUrl": "https://www.facebook.com/Cristiano/posts/pfbid02wwWW6zEYdHpCmYbVWEwJMX8QH5ve4izADrhZpPeHxFScJkwEbdLsq9VpoboHpJFLl?comment_id=2623070158154088",
"parentCommentId": null,
"replyToCommentId": null,
"depth": 0,
"text": "France has Mbappé, Norway has Haaland, Argentina has Messi, but Football has Cristiano Ronaldo. 🐐🇵🇹",
"date": "2026-10-09T20:32:37+00:00",
"reactionCount": 2500,
"replyCount": 127,
"authorName": "Idriss Leadou",
"authorId": "61577775745961",
"authorUrl": "https://www.facebook.com/lebienfaiteur1",
"authorProfilePicture": "https://scontent.xx.fbcdn.net/...",
"attachment": null
}

To rebuild threads, group replies by parentCommentId.

Use cases

  • Social listening and brand monitoring: see what people say about your brand, campaign or competitors
  • Sentiment analysis: feed comments into an AI or NLP pipeline
  • Giveaways and contests: collect every entry from a post's comments
  • Market and academic research: study public discussion on news, sports and politics
  • Influencer and campaign reports: measure engagement on specific posts

FAQ

Do I need a Facebook account?

No. The scraper works with public posts without logging in. The optional cookies field is only for posts that are not visible when logged out. Using your own account's cookies can get that account restricted, so we recommend a secondary account if you need it.

Why does replyCount not always match the number of scraped replies?

Facebook's reply count includes replies that are hidden, deleted or filtered as low quality, which Facebook does not show to anyone. The scraper returns every reply Facebook actually displays.

Why did my run return no data?

Usually because the URL is not a public post (for example a private group post, or a profile URL), or Facebook blocked the request. The run log and status message say which post failed and why. If Facebook is blocking, switch the proxy to the RESIDENTIAL group.

Can I scrape comments from Facebook groups?

Yes, for posts in public groups. Posts in private groups need cookies from an account that is a member.

Can I use it through the API?

Yes. You can start runs and download results with the Apify API, the Apify JavaScript and Python clients, or integrations like Make, Zapier and Google Sheets.

This scraper only collects data that is publicly visible on Facebook. Comments can still contain personal data, which is protected by laws such as the GDPR in the EU. Do not scrape personal data unless you have a legitimate reason, and check with a lawyer if you are unsure. You can read more in Apify's blog post on the legality of web scraping.

Support

Found a bug or need a field that is missing? Open an issue in the Issues tab and we'll take a look.