# Facebook Comments Scraper 🔥 $0.5/1K - No Cookies - No Login (`azzouzana/facebook-comments-scraper`) Actor

from $0.5/1K 💰 Fast Facebook comments scraper! ⚡ Extract public comments, nested replies, author profiles, timestamps, reaction counts & more across Posts, Reels, Videos & Photos. No cookies or login required. Export to JSON, CSV, Excel. 🚀

- **URL**: https://apify.com/azzouzana/facebook-comments-scraper.md
- **Developed by:** [Azzouzana](https://apify.com/azzouzana) (community)
- **Categories:** Social media, Lead generation
- **Features:** Limited permissions
- **Stats:** 6 total users, 5 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.50 / 1,000 comment results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## Facebook Comments Scraper — Posts, Reels, Videos, Photos & Nested Replies

Extract public comments, nested reply threads, reaction breakdowns, timestamps, and author profiles from **Facebook** posts, reels, videos, photos, and public groups in seconds—with no login required. Paste one or more Facebook URLs to collect clean, structured comment data ready to export to **JSON, CSV, Excel, or API**.

### Why Use This Facebook Comments Scraper 🚀

- **No Login Needed for Public Posts**: Paste public Facebook post, reel, video, photo, or group post URLs (`/posts/`, `/reel/`, `pfbid...`, share links) and get structured comment rows in seconds.
- **Full Nested Replies**: Captures top-level comments and threaded replies with `parentCommentId`, `isReply`, `depth`, and `repliesCount`.
- **Date Filtering Built In**: Use `postedAfter` with exact dates (`2026-11-01`), ISO timestamps, or relative timeframes (`2 days`, `1 month`) to pull only fresh discussions.
- **Optional Full Details**: Enable `fetchFullDetails` to enrich every comment with reaction breakdowns (`like`, `love`, `haha`, `wow`, `sad`, `angry`, `care`), author badges (`Top Fan`), verified status, hashtags, and media attachments.
- **Batch URLs & Scale**: Pass a plain list of `startUrls` to scrape up to **50,000 comments** into one unified dataset. Duplicates are skipped.
- **Export-Ready Output**: Download clean JSON, CSV, or Excel, or fetch datasets directly via the Apify API.

### 🎯 Facebook Comments Scraper Use Cases

- **Social Listening & Brand Sentiment Analysis**: Track customer sentiment, product praise, and recurring complaints across brand pages and competitor posts.
- **Ad Campaign & Reel Feedback Monitoring**: Measure real-time audience reactions and buyer questions on promotional posts, viral reels, and videos.
- **Community & Audience Research**: Identify common questions, feature requests, and discussion themes across public Facebook pages and groups.
- **Market Research & Trend Tracking**: Export public opinion and reaction breakdowns around news events, launches, and industry topics.

### 🛠️ How to Scrape Facebook Comments

#### Input Parameters

| Field | Type | Description |
|-------|------|-------------|
| `startUrls` | Array of Strings | **(Required)** Plain list of public Facebook post, reel, video, photo, group post, or share URLs. |
| `maxItems` | Integer | Maximum number of comments and replies to extract across all URLs (Default: `100`, Max: `50,000`). |
| `includeReplies` | Boolean | `true` = include nested reply threads under parent comments; `false` = top-level comments only (Default: `true`). |
| `postedAfter` | String | *(Optional)* Only extract comments published after a given date or timeframe (`YYYY-MM-DD`, ISO timestamp, or relative like `2 days`, `1 month`, `3 hours`). |
| `fetchFullDetails` | Boolean | `true` = enrich each comment with reaction breakdowns, author badges, verified status, hashtags, and attachments; `false` = fast core fields (Default: `false`). |

#### Example 1: Scrape comments and replies from a public Facebook post

```json
{
  "startUrls": [
    "https://www.facebook.com/bbcnews/posts/pfbid02UCK7GfxqeSbkwsQoKiQN2wyDQuRxs9aLWs4R4pX9SbP2oAmVCmrBQxb8ynQp28Uyl"
  ],
  "maxItems": 200,
  "includeReplies": true,
  "fetchFullDetails": false
}
```

#### Example 2: Scrape recent Facebook comments from the last 7 days with full reaction details

```json
{
  "startUrls": [
    "https://www.facebook.com/bbcnews/posts/pfbid02UCK7GfxqeSbkwsQoKiQN2wyDQuRxs9aLWs4R4pX9SbP2oAmVCmrBQxb8ynQp28Uyl"
  ],
  "maxItems": 500,
  "includeReplies": true,
  "postedAfter": "7 days",
  "fetchFullDetails": true
}
```

### 📊 What Data Does This Facebook Comments Scraper Extract?

| Field | Type | Description |
|-------|------|-------------|
| `commentId` | String | Unique Facebook comment identifier |
| `postId` / `postUrl` | String | Source Facebook post ID and URL |
| `commentUrl` | String | Direct permalink to the specific comment |
| `text` | String | Full comment text |
| `authorName` / `authorId` | String | Comment author display name and ID |
| `authorProfileUrl` | String | Direct link to the commenter's Facebook profile |
| `authorBadges` / `authorIsVerified` | Array / Boolean | Author badges (e.g. `Top Fan`) and verification flag (with `fetchFullDetails`) |
| `createdAt` / `createdTime` | String / Number | ISO 8601 publication timestamp and Unix time |
| `likesCount` / `reactionsCount` | Number | Total likes and reactions on the comment |
| `reactionsBreakdown` | Object | Counts by reaction type: `like`, `love`, `haha`, `wow`, `sad`, `angry`, `care` (with `fetchFullDetails`) |
| `isReply` / `depth` / `parentCommentId` | Boolean / Number / String | Reply nesting flag, thread depth, and parent comment ID |
| `repliesCount` | Number | Number of replies under the comment |
| `hashtags` / `attachments` | Array | Extracted hashtags and media attachments (with `fetchFullDetails`) |

#### Facebook Comments Output Sample (JSON)

```json
{
  "commentId": "2208283400567348",
  "postUrl": "https://www.facebook.com/bbcnews/posts/pfbid02UCK7GfxqeSbkwsQoKiQN2wyDQuRxs9aLWs4R4pX9SbP2oAmVCmrBQxb8ynQp28Uyl",
  "text": "Doctor or engineer",
  "authorName": "Jordan Davidson",
  "authorId": "pfbid0vVKkDwytq7b8MCMwWz1QzdUU1Tm53TaLVSDmQiFqgmw8MYBWGAJLG2imHDQzNK6Pl",
  "authorProfilePic": "https://scontent.ftun10-1.fna.fbcdn.net/v/t39.30808-1/434572664_10222455245838618_1042396157526846907_n.jpg",
  "authorProfileUrl": "https://www.facebook.com/pfbid0vVKkDwytq7b8MCMwWz1QzdUU1Tm53TaLVSDmQiFqgmw8MYBWGAJLG2imHDQzNK6Pl",
  "createdTime": 1793969787,
  "createdAt": "2026-11-06T12:56:27.000Z",
  "likesCount": 6,
  "isReply": false,
  "depth": 0,
  "commentUrl": "https://www.facebook.com/bbcnews/posts/pfbid02UCK7GfxqeSbkwsQoKiQN2wyDQuRxs9aLWs4R4pX9SbP2oAmVCmrBQxb8ynQp28Uyl?comment_id=2208283400567348",
  "postId": "1651006493730003",
  "reactionsBreakdown": {
    "like": 5,
    "love": 1,
    "haha": 0,
    "wow": 0,
    "sad": 0,
    "angry": 0,
    "care": 0
  },
  "reactionsCount": 6,
  "authorType": "User",
  "authorGender": "MALE",
  "authorIsVerified": false,
  "authorBadges": ["Top Fan"],
  "authorProfilePicHighRes": "https://scontent.ftun10-1.fna.fbcdn.net/v/t39.30808-1/434572664_10222455245838618_1042396157526846907_n.jpg",
  "hashtags": [],
  "attachments": [],
  "parentCommentId": null,
  "repliesCount": 0,
  "isAiGenerated": false
}
```

### 🆓 Free Tier Limits for Facebook Comments Scraping

We want you to see how this actor works before you commit. To keep things fair for everyone, the **free tier** includes these trial limits:

- **Sample data:** up to **5 comments** per run—enough to check data quality.
- **Daily cap:** **5 runs** per calendar day (UTC).
- **Between runs:** at least **60 seconds** before you can start another run.

#### Upgrade when you're ready!

Use the free tier to decide if this actor fits your project. Paid Apify plans remove these wait times and caps so you can run at full volume—[**upgrade to a paid plan**](https://apify.com/pricing?fpr=cbgdsf).

### ❓ Frequently Asked Questions (FAQ)

#### What Facebook URLs are supported?

Paste any public Facebook post, reel, video, photo, public group post, or share URL into `startUrls`. You can add multiple URLs in a single run and all comments are saved to one unified dataset.

#### Do I need a Facebook login or account?

No. For public Facebook posts, reels, videos, and photos, the scraper works without a login or account.

#### Can I scrape only comments posted after a specific date?

Yes. Set `postedAfter` to a date (`2026-11-01`), an ISO timestamp (`2026-11-01T12:00:00Z`), or a relative timeframe (`2 hours`, `7 days`, `1 month`). Extraction stops once older comments are reached.

#### What does `fetchFullDetails` add?

When enabled, each comment row is enriched with full reaction breakdowns (`like`, `love`, `haha`, `wow`, `sad`, `angry`, `care`), author badges, verified status, high-resolution profile picture URL, hashtags, and media attachments.

#### Can I export Facebook comments to CSV, Excel, or JSON?

Yes. Once your run finishes, download the dataset directly from Apify Console as **CSV**, **Excel (XLSX)**, or **JSON**, or retrieve it programmatically via the Apify API.

#### Is it legal to scrape Facebook comments?

This actor collects publicly visible comments and interaction data for research and analysis. You are responsible for complying with Facebook's terms and applicable data privacy laws. Read more: [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal?fpr=cbgdsf).

### 🔗 Related Social Media & Comments Scrapers

- [Instagram Comments Scraper](https://apify.com/azzouzana/instagram-comments-scraper?fpr=cbgdsf) — Instagram post & reel comments
- [TikTok Comments Scraper](https://apify.com/azzouzana/tiktok-comments-scraper?fpr=cbgdsf) — TikTok video comments & replies
- [YouTube Comments Scraper](https://apify.com/azzouzana/youtube-comments-scraper?fpr=cbgdsf) — YouTube video comments & threads
- [Douyin Comments Scraper](https://apify.com/azzouzana/douyin-comments-scraper?fpr=cbgdsf) — Douyin video comments & likes
- [Meta Ads Library Scraper](https://apify.com/azzouzana/meta-facebook-instagram-ads-library?fpr=cbgdsf) — Facebook & Instagram ad creatives

### Contact 📬

**Need a custom solution? Have a feature request or just want to chat?**
We'd love to hear from you!

- 💬 **Discord**: `@azzouzana`
- 📧 **Email**: <labs@azzouzana.com>

### ⚠️ Disclaimer

Not affiliated with Meta or Facebook. This actor collects publicly visible information. You are responsible for following the site's terms and the laws that apply to you. Read more: [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal?fpr=cbgdsf)

# Actor input Schema

## `startUrls` (type: `array`):

Plain list of Facebook public URLs (post, reel, video, photo, group post, or share link) to scrape comments from.

## `maxItems` (type: `integer`):

Maximum number of comments to extract across all URLs.

## `fetchFullDetails` (type: `boolean`):

When enabled, extracts author badges, full reactions breakdown, mentions, hashtags, and media attachments.

## `includeReplies` (type: `boolean`):

When enabled, extracts replies nested under parent comments.

## `postedAfter` (type: `string`):

Only retrieve comments published after a given date or timeframe (e.g. '2026-09-02', ISO string, or relative like '5 days', '1 month', '4 hours')

## Actor input object example

```json
{
  "startUrls": [
    "https://www.facebook.com/bbcnews/posts/pfbid02UCK7GfxqeSbkwsQoKiQN2wyDQuRxs9aLWs4R4pX9SbP2oAmVCmrBQxb8ynQp28Uyl"
  ],
  "maxItems": 100,
  "fetchFullDetails": false,
  "includeReplies": false
}
```

# Actor output Schema

## `results` (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 = {
    "startUrls": [
        "https://www.facebook.com/bbcnews/posts/pfbid02UCK7GfxqeSbkwsQoKiQN2wyDQuRxs9aLWs4R4pX9SbP2oAmVCmrBQxb8ynQp28Uyl"
    ],
    "maxItems": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("azzouzana/facebook-comments-scraper").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 = {
    "startUrls": ["https://www.facebook.com/bbcnews/posts/pfbid02UCK7GfxqeSbkwsQoKiQN2wyDQuRxs9aLWs4R4pX9SbP2oAmVCmrBQxb8ynQp28Uyl"],
    "maxItems": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("azzouzana/facebook-comments-scraper").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 '{
  "startUrls": [
    "https://www.facebook.com/bbcnews/posts/pfbid02UCK7GfxqeSbkwsQoKiQN2wyDQuRxs9aLWs4R4pX9SbP2oAmVCmrBQxb8ynQp28Uyl"
  ],
  "maxItems": 100
}' |
apify call azzouzana/facebook-comments-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,azzouzana/facebook-comments-scraper"
        }
    }
}
```

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/mC4BfjAnH3yuxfhKg/builds/ApA7IjT11kNOHyiRg/openapi.json
