Facebook Post Comments Scraper

Facebook Post Comments Scraper

Effortlessly extract comments from public Facebook posts. This actor automates comment collection, providing detailed information such as author details, comment text, and timestamps. Ideal for social media analysis, sentiment analysis, and market research.

SOCIAL_MEDIAApify

Effortlessly extract comments from any public Facebook post.

Features

  • 🔍 Scrape comments from any public Facebook post URL
  • 📊 Extract detailed information about each comment and commenter
  • 🔢 Set a custom limit for the number of comments to scrape
  • 🚀 Uses browser automation to handle dynamic content
  • 🛡️ Incorporates anti-detection measures for reliable scraping

Description

The Facebook Comments Scraper is a powerful tool designed to automate the process of extracting comments from public Facebook posts. It navigates through the comments section, scrolling and loading more content as needed, to collect comprehensive information about each comment and its author.

Input Parameters

FieldTypeDescription
postUrlsArrayList of Facebook post URLs to scrape comments from
maxCommentsIntegerMaximum number of comments to scrape for each post (default: 100, max: 5000)

Output

The actor provides detailed information for each comment, including:

  • postUrl: The Post URL
  • id: Unique identifier for the comment
  • feedbackId: Feedback identifier associated with the comment
  • userName: Name of the comment author
  • userGender: Gender of the comment author
  • userProfileImageUrl: URL of the author's profile picture
  • userUrl: URL to the author's Facebook profile
  • userId: Unique identifier for the comment author
  • userIsVerified: Boolean indicating if the user is verified
  • userSubscribeStatus: Subscription status of the user
  • commentText: The actual text content of the comment
  • commentDate: Timestamp of when the comment was posted (formatted as yyyy-MM-dd HH:mm:ss)
  • facebookUrl: URL of the Facebook post where the comment appears

This comprehensive data allows for in-depth analysis of comments and user interactions on Facebook posts.

Use Cases

  • Social media analysis: Gather insights from user comments on popular posts
  • Sentiment analysis: Collect data for analyzing public opinion on specific topics
  • Market research: Understand customer feedback and reactions to products or announcements
  • Trend spotting: Identify emerging topics and discussions within comment threads
  • Community engagement: Monitor and analyze user interactions on your own posts

Input Example

A full explanation of an input example in JSON.

1{
2  "postUrls": [
3      "https://www.facebook.com/humansofnewyork/posts/pfbid023TQobFe3VzSt9xUUF8RuLgSHXLar7W1yuf8SVKbi7mizhydEmj3av6mVda3QHKWnl?rdid=4g9xxnMySOyqm6iM",
4      "https://www.facebook.com/747039650800537/posts/825976249573543"
5  ],
6  "maxComments": 100
7}

Output sample

The results will be wrapped into a dataset which you can always find in the Storage tab. Here's an excerpt from the data you'd get if you apply the input parameters above:

And here is the same data but in JSON. You can choose in which format to download your data: JSON, JSONL, Excel spreadsheet, HTML table, CSV, or XML.

1[
2  {
3    postUrl: "https://www.facebook.com/humansofnewyork/posts/pfbid023TQobFe3VzSt9xUUF8RuLgSHXLar7W1yuf8SVKbi7mizhydEmj3av6mVda3QHKWnl?rdid=4g9xxnMySOyqm6iM",
4    "id": "Y29tbWVudDoxMDE1NzcyNzQ2NzgwMzgxXzEyMTM5NDA4ODk2NTYwNTk=",
5    "feedbackId": "ZmVlZGJhY2s6MTAxNTc3Mjc0Njc4MDM4MV8xMjEzOTQwODg5NjU2MDU5",
6    "userName": "Eyad Yousif",
7    "userGender": "MALE",
8    "userProfileImageUrl": "https://scontent-ams4-1.xx.fbcdn.net/v/t39.30808-1/346882490_3448567935415083_8378378714079836093_n.jpg?stp=dst-jpg_s100x100&_nc_cat=105&ccb=1-7&_nc_sid=0ecb9b&_nc_ohc=KIZA1GzPKG0Q7kNvgGX9z9n&_nc_ht=scontent-ams4-1.xx&_nc_gid=AA1C_l38FdAypiXxa7dJR3H&oh=00_AYAkaN8a_W4c0rpp5WnMhAUC8nfPL8wqhU1Zbz_CxrOjuw&oe=6709927E",
9    "userUrl": "https://www.facebook.com/eiad.yousif",
10    "userId": "100000294039465",
11    "userIsVerified": false,
12    "userSubscribeStatus": "CAN_SUBSCRIBE",
13    "commentText": "🌟 Hey everyone! 🌟
If you're into health, fitness, and living your best life, come check out my YouTube channel! 🎥 I share easy tips, fun workouts, and healthy recipes that can transform your routine. Join our community, subscribe, and let’s grow together on this journey to a fitter, happier lifestyle! 💪💚
Here’s the link to my channel: [https://www.youtube.com/@FitLifeJourney-y6n/shorts]

Don't forget to like, comment, and subscribe to support the channel. Every bit of love helps, and I appreciate you all! 😊🙏",
14 "commentDate": "2024-10-05 11:57:18", 15 "facebookUrl": "https://www.facebook.com/humansofnewyork/posts/pfbid023TQobFe3VzSt9xUUF8RuLgSHXLar7W1yuf8SVKbi7mizhydEmj3av6mVda3QHKWnl" 16 }, 17 { 18 "postUrl": "https://www.facebook.com/humansofnewyork/posts/pfbid023TQobFe3VzSt9xUUF8RuLgSHXLar7W1yuf8SVKbi7mizhydEmj3av6mVda3QHKWnl?rdid=4g9xxnMySOyqm6iM", 19 "id": "Y29tbWVudDoxMDE1NzcyNzQ2NzgwMzgxXzQ3OTU4MDMyMTExNTE1OQ==", 20 "feedbackId": "ZmVlZGJhY2s6MTAxNTc3Mjc0Njc4MDM4MV80Nzk1ODAzMjExMTUxNTk=", 21 "userName": "Marissa Brake", 22 "userGender": "FEMALE", 23 "userProfileImageUrl": "https://scontent-ams2-1.xx.fbcdn.net/v/t1.6435-1/36268638_10216302734987149_541928021242675200_n.jpg?stp=dst-jpg_s100x100&_nc_cat=108&ccb=1-7&_nc_sid=e4545e&_nc_ohc=rLD6bdK__p8Q7kNvgH_AQWE&_nc_ht=scontent-ams2-1.xx&_nc_gid=AA1C_l38FdAypiXxa7dJR3H&oh=00_AYA0LVVlKtEWKQTGOJq1ipyILKryFeqL7gtA3tCiwogA6A&oe=672B5C30", 24 "userUrl": "https://www.facebook.com/marissa.gonzalesperez", 25 "userId": "1417122595", 26 "userIsVerified": false, 27 "userSubscribeStatus": "CANNOT_SUBSCRIBE", 28 "commentText": "The excitement when I saw HONY pop up- I have truly missed your posts!
Both of them are beautiful!
Hoping this is the beginning of more to come!!! 🩷",
29 "commentDate": "2024-06-11 00:36:33", 30 "facebookUrl": "https://www.facebook.com/humansofnewyork/posts/pfbid023TQobFe3VzSt9xUUF8RuLgSHXLar7W1yuf8SVKbi7mizhydEmj3av6mVda3QHKWnl" 31 }, 32 ... 33]

Frequently Asked Questions

Is it legal to scrape job listings or public data?

Yes, if you're scraping publicly available data for personal or internal use. Always review Websute's Terms of Service before large-scale use or redistribution.

Do I need to code to use this scraper?

No. This is a no-code tool — just enter a job title, location, and run the scraper directly from your dashboard or Apify actor page.

What data does it extract?

It extracts job titles, companies, salaries (if available), descriptions, locations, and post dates. You can export all of it to Excel or JSON.

Can I scrape multiple pages or filter by location?

Yes, you can scrape multiple pages and refine by job title, location, keyword, or more depending on the input settings you use.

How do I get started?

You can use the Try Now button on this page to go to the scraper. You’ll be guided to input a search term and get structured results. No setup needed!