# Facebook Comments Scraper (All-in-One) Fast & cheap 💬⭐ (`scrapestorm/facebook-comments-scraper-all-in-one-fast-cheap`) Actor

Collect comments from public Facebook posts effortlessly with this powerful tool! Automate the extraction of author info, comments, and timestamps ⏰. Scrape not only post comments but also comments from images and videos 🎥📸. Ideal for social media analysis and data insights 📊!

- **URL**: https://apify.com/scrapestorm/facebook-comments-scraper-all-in-one-fast-cheap.md
- **Developed by:** [Storm_Scraper](https://apify.com/scrapestorm) (community)
- **Categories:** Social media, Lead generation
- **Security:** Limited permissions
- **Stats:** 205 total users, 1 monthly users, 100.0% runs succeeded, 13 bookmarks
- **User rating**: 4.83 out of 5 stars

## Pricing

from $0.00005 / actor start

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Advanced Facebook Comments Scraper 💬

The Facebook Comments Scraper is a tool designed to extract comments data from Facebook Posts. Simply provide the post link, and this scraper will retrieve:

```
    All the comments from the selected post with the possibility to define max comments 📝.
    Detailed information such as:
    Comment text 💬
    Author name 👤
    Profile URL 🌐
    Author profile image 🖼️
    Published date 📅
    And more additional information 🔍.
```

### Description 💬

🚨 Its power 💪 lies in its ability to scrape not just comments from posts (URLs with "/posts/"), but also all the comments from image links, photos, and reels 📸🎥.
And the best part? It works even when authentication 🔒 is required to access the content!

### How to Use Facebook Comments Scraper? 💬

Using the Facebook Comments Scraper is straightforward! It's designed to be user-friendly and accessible for all skill levels. Here's how you can use it:

1. **Sign up** for an account on **Apify**.
2. Open the **Facebook Comments Scraper** on the Apify platform.
3. Input the Facebook post URL for which you want to scrape comments.
4. Click the **"Start"** button and wait for the scraping process to complete.
5. Download the extracted data in various formats:
   - JSON
   - CSV
   - XML
   - Excel
   - HTML

### Pricing for Facebook Comments Scraper 💰

This scraper operates on a **pay-per-month** basis. You only pay for the successful results returned by the scraper.

- **Price**: $15.99 per month.

### Why scrape Facebook comments? 💬

🚨 Detect and analyze social media trends, uncovering misinformation or harmful content.

📊 Perform market research and gain valuable insights.

🏁 Keep an eye on competitors and their activities.

💬 Measure brand sentiment and monitor changes in customer engagement.

### Input for Facebook Comments Scraper 💬

The scraper accepts Facebook post URL as input. Here’s how to structure the input JSON:

```
{
    "maxcomments": 200,
    "post_url": "https://www.facebook.com/Cristiano/posts/pfbid02y7P5Ko2goRZ8EpD7eNkhQTK5Pbh73RBwysHYgAZLe8EuiFs5HuuhpoCMBzqRZosfl?rdid=wmoheFjB87ig4PCj#"
}

```

🚨 For best results, provide a post URL containing "/posts/" for posts, "/photo" for photos, or "/watch" for videos.

### Output for facebook Comments Scraper 💬

```
{
        "Comment ID": "Y29tbWVudDoxMTg3MzkyNDY5NDEzOTU4XzE5OTAyOTIwMjQ3NTI3ODA=",
        "Comment Text": "Let’s go bro 💯💯💯",
        "Author Name": "Chris B",
        "Author ID": "100044444919161",
        "Author Profile URL": "https://www.facebook.com/TheRealChrisB",
        "Author Gender": "MALE",
        "Author Profile Image": "https://scontent.frba3-2.fna.fbcdn.net/v/t39.30808-1/237992520_389853959172765_4620090546287037358_n.jpg?stp=cp0_dst-jpg_s32x32&_nc_cat=110&ccb=1-7&_nc_sid=f4b9fd&_nc_ohc=Lp6bE_7M5D0Q7kNvgEKYGw4&_nc_zt=24&_nc_ht=scontent.frba3-2.fna&_nc_gid=A7piCZp1lCHvwnHz4OogE3L&oh=00_AYDQWoA43S4KxON3YOoi9CcoOZElNV0Xj44o-xEC3qWR-A&oe=674BAD91",
        "Comment Creation Date": "2024-10-15 21:28:05",
        "Comment URL": "https://www.facebook.com/Cristiano/posts/pfbid02y7P5Ko2goRZ8EpD7eNkhQTK5Pbh73RBwysHYgAZLe8EuiFs5HuuhpoCMBzqRZosfl?comment_id=1990292024752780"
    }
```

### Related Actors

If you're interested in other social media or real estate Actors:

- [Facebook Followers & Following Scraper 📊👥](https://apify.com/scrapestorm/facebook-followers-following-scraper)
- [Facebook Likes Scraper (Fast & Cheap) 👍 🌟](https://apify.com/scrapestorm/facebook-likes-scraper-fast-cheap)
- [YouTube Scraper (By Keyword) - ⭐⭐⭐⭐⭐ Fast & cheap](https://apify.com/scrapestorm/youtube)
- [Youtube Channel Scraper](https://apify.com/scrapestorm/youtube-channel-scraper)
- [Youtube Shorts Scraper 📺 (Rental) - Fast & cheap](https://apify.com/scrapestorm/youtube-shorts-scraper-rental---fast-cheap)
- [Zillow (Find a Home Improvement Agent) 🛠️)](https://apify.com/scrapestorm/zillow-find-a-home-improvement-agent)
- [YouTube Transcript Video Scraper 📝 (⚡ Fast & 💸 Cheap)](https://apify.com/scrapestorm/youtube-transcript-videos)
- [Youtube Playlist Scraper 🎵 - Rental (Fast & cheap)](https://apify.com/scrapestorm/youtube-playlist-scraper---rental-fast-cheap)

***

You can even apply sentiment analysis on the comments text we've extracted! 😃📊:

- [Sentiment Analysis Text Classification 📈](https://apify.com/scrapestorm/sentiment-analysis-text-classification)

### 📫 Support

😊 Leave us a star ⭐ if you are satisfied with the product!
🌍 For any questions, specific needs or issues, please reach out through Apify's platform or via email - [Storm_Scraper 🌪️🌩️](https://apify.com/scrapestorm)

# Actor input Schema

## `email` (type: `string`):

Your Facebook account email address 📧

## `password` (type: `string`):

Your Facebook account password 🔒

## `bulk_urls` (type: `array`):

List of Facebook post URLs to scrape comments from. Examples: • https://www.facebook.com/Cristiano/posts/xxx • https://www.facebook.com/watch/?v=xxx ⚠️ Each URL must be from facebook.com.

## `max_comments_per_url` (type: `integer`):

The maximum number of comments to fetch for each URL 🔢

## Actor input object example

```json
{
  "email": "youremail@gmail.com",
  "bulk_urls": [
    "https://www.facebook.com/Cristiano/posts/pfbid02jgAhtszSyC6B5wxgHFEPfsa53jE1MCChdoFieDeSJLyVSSNPcP3g9HGhLncupDsal"
  ],
  "max_comments_per_url": 100
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "email": "youremail@gmail.com",
    "bulk_urls": [
        "https://www.facebook.com/Cristiano/posts/pfbid02jgAhtszSyC6B5wxgHFEPfsa53jE1MCChdoFieDeSJLyVSSNPcP3g9HGhLncupDsal"
    ],
    "max_comments_per_url": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapestorm/facebook-comments-scraper-all-in-one-fast-cheap").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "email": "youremail@gmail.com",
    "bulk_urls": ["https://www.facebook.com/Cristiano/posts/pfbid02jgAhtszSyC6B5wxgHFEPfsa53jE1MCChdoFieDeSJLyVSSNPcP3g9HGhLncupDsal"],
    "max_comments_per_url": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("scrapestorm/facebook-comments-scraper-all-in-one-fast-cheap").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "email": "youremail@gmail.com",
  "bulk_urls": [
    "https://www.facebook.com/Cristiano/posts/pfbid02jgAhtszSyC6B5wxgHFEPfsa53jE1MCChdoFieDeSJLyVSSNPcP3g9HGhLncupDsal"
  ],
  "max_comments_per_url": 100
}' |
apify call scrapestorm/facebook-comments-scraper-all-in-one-fast-cheap --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapestorm/facebook-comments-scraper-all-in-one-fast-cheap"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/4tHUbejOgcQPRt97L/builds/mWh4E9MuHLHjuiNzf/openapi.json
