Facebook Comments Scraper

Facebook Comments Scraper

by scraper_one

Extract comments from Facebook posts, including text, authors, timestamps, and reactions. Perfect for social media monitoring, sentiment analysis, and engagement tracking.

36,581 runs
266 users
Try This Actor

Opens on Apify.com

About Facebook Comments Scraper

Need to pull comments from Facebook posts for a project? This scraper does exactly that. You give it the URLs of the public Facebook posts you're interested in, and it goes to work, pulling out the full conversation thread. It captures the essentials: the actual comment text, who posted it, the timestamp, and the reaction counts (likes, loves, etc.). I've used it to gather data that would have taken days to collect manually. It's perfect for a few key jobs. If you're monitoring brand mentions or a campaign's performance, this gets you the raw, unfiltered audience feedback. For anyone doing sentiment analysis, having this structured comment data is the first critical step. It's also just handy for tracking engagement over time on specific posts or competitor pages. You get clean, structured JSON or CSV output that's ready to plug into your analysis tools or dashboards. Just input your URLs, run it, and get your data.

What does this actor do?

Facebook Comments Scraper is a web scraping and automation tool available on the Apify platform. It's designed to help you extract data and automate tasks efficiently in the cloud.

Key Features

  • Cloud-based execution - no local setup required
  • Scalable infrastructure for large-scale operations
  • API access for integration with your applications
  • Built-in proxy rotation and anti-blocking measures
  • Scheduled runs and webhooks for automation

How to Use

  1. Click "Try This Actor" to open it on Apify
  2. Create a free Apify account if you don't have one
  3. Configure the input parameters as needed
  4. Run the actor and download your results

Documentation

Facebook Comments Scraper

This Apify Actor extracts structured data from comments on specified Facebook posts. It's designed for tasks like social media monitoring, sentiment analysis, and engagement tracking.

Overview

The actor takes one or more Facebook post URLs and returns the associated comments, including text, author details, timestamps, and reactions. It handles the complexities of Facebook's page structure so you can focus on the data.

Key Features

  • Multi-Post Scraping: Provide an array of post URLs to scrape comments from multiple sources in a single run.
  • Comprehensive Data Extraction: Retrieves:
    • Comment text and unique IDs.
    • Author name, profile URL, and profile picture.
    • Timestamp and direct link to the comment.
    • Reaction counts (like, love, haha, support, etc.).
  • Configurable Limits: Optionally set a maximum number of comments to scrape per post.
  • Sorting Control: Choose to fetch comments sorted as "relevant" (default), "newest", or "all".

Input/Output

Input Parameters

Configure the actor using these parameters:

Parameter Type Required Description
postUrls string[] Yes Array of Facebook post URLs to scrape.
resultsLimit number No Max comments to return per post. If not set, only an initial batch is returned.
commentsSortType string No Sort order: "relevant", "newest", or "all". Defaults to "relevant".

Example Input:

{
  "postUrls": [
    "https://www.facebook.com/examplePage/posts/12345"
  ],
  "resultsLimit": 50
}

Output Data

The actor outputs an array of JSON objects, one for each scraped comment.

Example Output Item:

{
  "commentText": "This is a sample comment.",
  "id": "Y29tbWVudDoxMTg2ODEyNDY5NDgyMjc1XzY2ODE2MzY0NTU0NjI3Mg==",
  "timestamp": 1742045152000,
  "url": "https://www.facebook.com/NFL/posts/...",
  "author": {
    "name": "Zack Crouch",
    "profilePictureUrl": "https://scontent...jpg"
  },
  "postUrl": "https://www.facebook.com/NFL/posts/...",
  "reactions": {
    "like": 178,
    "love": 8
  },
  "reactionsCount": "186"
}

How to Use

  1. Configure: In the Apify console or via API, set your postUrls and any optional parameters (resultsLimit, commentsSortType).
  2. Run: Start the actor. You can monitor its progress in the logs.
  3. Get Data: Once finished, download the dataset in JSON, CSV, or Excel format from the Apify storage.

Notes & Limitations

  • Terms of Service: You must comply with Facebook's Terms of Service when scraping their data.
  • Rate Limits: The actor is subject to rate limits. Free users have a daily request cap. Contact Apify for higher or custom limits.
  • Data Accuracy: The extraction depends on Facebook's current page structure and the post's privacy settings. Data may be incomplete for some posts.
  • Best Used With: For a complete workflow, first use the Facebook Posts Search actor to find posts by keyword, then feed those URLs into this Comments Scraper.

Common Use Cases

Market Research

Gather competitive intelligence and market data

Lead Generation

Extract contact information for sales outreach

Price Monitoring

Track competitor pricing and product changes

Content Aggregation

Collect and organize content from multiple sources

Ready to Get Started?

Try Facebook Comments Scraper now on Apify. Free tier available with no credit card required.

Start Free Trial

Actor Information

Developer
scraper_one
Pricing
Paid
Total Runs
36,581
Active Users
266
Apify Platform

Apify provides a cloud platform for web scraping, data extraction, and automation. Build and run web scrapers in the cloud.

Learn more about Apify

Need Professional Help?

Couldn't solve your problem? Hire a verified specialist on Fiverr to get it done quickly and professionally.

Find a Specialist

Trusted by millions | Money-back guarantee | 24/7 Support