# Facebook Comments Scraper Lowcost (0.2$/1K 🤑) (`sones/facebook-comments-scraper-lowcost`) Actor

Scrape the comments of public Facebook posts: text, date, reactions, reply count and the commenter's public name. Most relevant or newest first. No login. $0.20 per 1,000 comments.

- **URL**: https://apify.com/sones/facebook-comments-scraper-lowcost.md
- **Developed by:** [Samy](https://apify.com/sones) (community)
- **Categories:** Social media, Marketing, AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.16 / 1,000 comments

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 Lowcost

**Facebook Comments Scraper** gets the comments of public Facebook posts for **$0.20 per 1,000 comments**. Paste post URLs, and it returns each comment's text, date, reactions, reply count and the commenter's public name, most relevant or newest first. You don't need a Facebook account, and nothing is scraped from behind a login.

### What you get

One row per comment, ready to export as JSON, CSV or Excel:

| Field                                  | Description                                                                  |
| -------------------------------------- | ---------------------------------------------------------------------------- |
| `id`, `commentUrl`                     | The comment's id and address.                                                |
| `text`                                 | The comment's text (null for a comment that is only a sticker or a picture). |
| `date`, `timestamp`                    | When it was written: ISO date (UTC) and Unix seconds.                        |
| `profileName`                          | The commenter's name, as Facebook shows it publicly.                         |
| `likesCount`                           | All reactions to the comment.                                                |
| `commentsCount`                        | Replies to the comment.                                                      |
| `threadingDepth`                       | 0 for a comment on the post.                                                 |
| `postCommentsCount`                    | Comments and replies Facebook counts for the post.                           |
| `facebookUrl`, `inputUrl`, `scrapedAt` | The post, your entry, and when the comment was scraped.                      |

The field names are those of the best-known Facebook comments scraper (`id`, `commentUrl`, `text`, `date`, `profileName`, `likesCount`, `commentsCount`, `threadingDepth`, `facebookUrl`), so an integration built on it reads these rows too. Of the commenter, only the public name is kept: no profile link, id or picture.

### Use cases

- **Sentiment analysis and AI datasets**: collect what people say under brands', news and public figures' posts.
- **Campaign and launch monitoring**: follow the newest comments on your posts or your competitors'.
- **Community management**: export every comment of a post to answer questions or find feedback.
- **Research**: study public debate on public Pages.

### How the price compares

Apify's own Facebook Comments Scraper costs $2.50 per 1,000 comments. This Actor costs $0.20 per 1,000 comments ($0.16 on the Gold plan and above), plus $0.005 per run. Facebook serves 10 comments per request, so 1,000 comments of one post take about a minute and a half, and many posts are scraped at once.

You pay only for the comments you get. A post that is not public costs nothing.

### How to use it

1. Open the Actor's **Input** tab.
2. Add your posts, one per line, as the address bar or **Share → Copy link** gives them: `https://www.facebook.com/cnn/posts/pfbid0…`. The `url` field of [Facebook Posts Scraper Lowcost](https://apify.com/sones/facebook-posts-scraper-lowcost) works as is.
3. Set **Comments per post** and the order: most relevant or newest first.
4. Click **Start**, then open the **Output** tab and export the comments.

### Input

```json
{
    "startUrls": [
        {
            "url": "https://www.facebook.com/cnn/posts/pfbid02rphNXRZwcecrbfH1Dyw1tpMjwgAmXTbJ2nt8DBPXJiXYWDSSbLtj1YderaeqSZqMl"
        }
    ],
    "resultsLimit": 100,
    "sortBy": "newest"
}
```

| Field          | Type    | Description                                                                           |
| -------------- | ------- | ------------------------------------------------------------------------------------- |
| `startUrls`    | array   | Required. Post URLs carrying a `pfbid0…` id, as `{ "url": … }` objects or plain text. |
| `resultsLimit` | integer | Optional, 50 by default. The most comments to get from each post.                     |
| `sortBy`       | string  | Optional. `relevance` (Facebook's "All comments", the default) or `newest`.           |
| `proxy`        | object  | Optional. Leave on automatic, or enter your own proxies.                              |

### Output

```json
{
    "id": "2944892682562485",
    "commentUrl": "https://www.facebook.com/cnn/posts/pfbid02rphNXRZwcecrbfH1Dyw1tpMjwgAmXTbJ2nt8DBPXJiXYWDSSbLtj1YderaeqSZqMl?comment_id=2944892682562485",
    "text": "He's done more to help Ukrainians than Americans living in California.",
    "date": "2026-11-16T21:08:07.000Z",
    "timestamp": 1794863287,
    "profileName": "Brian Brixon",
    "likesCount": 141,
    "commentsCount": 38,
    "threadingDepth": 0,
    "postCommentsCount": 600,
    "facebookUrl": "https://www.facebook.com/cnn/posts/pfbid02rphNXRZwcecrbfH1Dyw1tpMjwgAmXTbJ2nt8DBPXJiXYWDSSbLtj1YderaeqSZqMl",
    "inputUrl": "https://www.facebook.com/cnn/posts/pfbid02rphNXRZwcecrbfH1Dyw1tpMjwgAmXTbJ2nt8DBPXJiXYWDSSbLtj1YderaeqSZqMl",
    "scrapedAt": "2026-11-16T22:40:00.000Z"
}
```

The run also saves a `RUN_SUMMARY` record: the outcome and the number of comments of every post, including posts that were not found.

### Pricing

| Event       | Price                                                                                     |
| ----------- | ----------------------------------------------------------------------------------------- |
| Actor start | $0.005 per run (one event per GB of memory, at least one)                                 |
| Comment     | $0.0002 per comment ($0.20 per 1,000); $0.18 per 1,000 on Silver, $0.16 on Gold and above |

For example, 100 comments from each of 10 posts cost $0.205 for the run ($0.165 on the Gold plan).

### Limits

- **Top-level comments.** Each comment comes with its reply count; the replies themselves are not listed.
- **Post URLs with a pfbid id.** Facebook's current post addresses carry a `pfbid0…` id. Older numeric addresses (`/posts/1537298864929426`), reels, videos and photos are skipped: a logged-out visitor cannot open them.
- **Public posts only.** Posts of private profiles and groups are out of reach, by design.
- **"Most relevant" reshuffles.** Facebook ranks comments afresh on each page; a comment it shows twice is exported once.

### FAQ

#### How do I scrape all comments from a Facebook post?

Paste the post's URL and set **Comments per post** above its comment count. The Actor reads the post's comments 10 at a time until it has them all or reaches your limit.

#### How do I get the newest comments first?

Set **Order** to **Newest first** (`"sortBy": "newest"`). Schedule the task to monitor new comments.

#### Can I scrape Facebook comments without logging in?

Yes: that is the only way this Actor works. It needs no account, cookies or token.

#### How do I get the URLs of a Page's posts?

Run [Facebook Posts Scraper Lowcost](https://apify.com/sones/facebook-posts-scraper-lowcost) on the Page and pass its `url` fields here.

#### Can I use it from my code, Make, Zapier or n8n?

Yes, like every Apify Actor: call it through the Apify API or client libraries, schedule it, and connect it with the Make, Zapier, n8n and webhook integrations.

### Is it legal?

The Actor reads only public comments that Facebook shows to anyone without logging in, and keeps only each commenter's public name. Courts have held that scraping public data while logged out does not breach Meta's terms (*Meta v. Bright Data*, 2024). Comments are personal data under laws such as the GDPR: you are responsible for having a lawful basis to process them.

### Other Actors by this developer

- [Facebook Posts Scraper Lowcost](https://apify.com/sones/facebook-posts-scraper-lowcost): the posts of public Pages, $1 per 1,000 posts.
- [Facebook Pages Scraper Lowcost](https://apify.com/sones/facebook-pages-scraper-lowcost): Pages' details, rating and business contacts, $3 per 1,000 Pages.
- [Facebook Reels Scraper Lowcost](https://apify.com/sones/facebook-reels-scraper-lowcost): Pages' reels and videos with their views, $0.50 per 1,000 videos.
- [Facebook Reviews Scraper Lowcost](https://apify.com/sones/facebook-reviews-scraper-lowcost): Pages' reviews and recommendations, $0.50 per 1,000 reviews.
- [Facebook Marketplace Scraper Lowcost](https://apify.com/sones/facebook-marketplace-scraper-lowcost): Marketplace listings by search and city, $0.25 per 1,000 listings.
- [Facebook Ad Library Scraper Lowcost](https://apify.com/sones/facebook-ads-library-scraper-lowcost): the ads of any Ad Library search, $0.30 per 1,000 ads.
- [Instagram Profile Scraper Lowcost](https://apify.com/sones/instagram-user-scraper-lowcost): public Instagram profile details.

# Changelog

This Actor's version history is a separate document: https://apify.com/sones/facebook-comments-scraper-lowcost/changelog.md

# Actor input Schema

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

Public Facebook posts, one per line, as the address bar or Share → Copy link gives them: https://www.facebook.com/cnn/posts/pfbid0… The post's address must carry its pfbid0… id; the url field of Facebook Posts Scraper Lowcost works too.

## `resultsLimit` (type: `integer`):

The most comments to get from each post. Facebook serves 10 per request.

## `sortBy` (type: `string`):

Most relevant first (Facebook's "All comments"), or newest first.

## `proxy` (type: `object`):

Leave on automatic. To send every request through your own proxies instead, choose 'Own proxies' and enter their URLs.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.facebook.com/cnn/posts/pfbid02rphNXRZwcecrbfH1Dyw1tpMjwgAmXTbJ2nt8DBPXJiXYWDSSbLtj1YderaeqSZqMl"
    }
  ],
  "resultsLimit": 10,
  "sortBy": "relevance",
  "proxy": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

## `runSummary` (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": [
        {
            "url": "https://www.facebook.com/NASA/posts/pfbid0sWEQa1gX7qa3jNrUYfgVy3kYaimwKott95nY6NicQPwxPGzkahpyQ8ABWbpkth2bl"
        }
    ],
    "resultsLimit": 10,
    "proxy": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("sones/facebook-comments-scraper-lowcost").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": [{ "url": "https://www.facebook.com/NASA/posts/pfbid0sWEQa1gX7qa3jNrUYfgVy3kYaimwKott95nY6NicQPwxPGzkahpyQ8ABWbpkth2bl" }],
    "resultsLimit": 10,
    "proxy": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("sones/facebook-comments-scraper-lowcost").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": [
    {
      "url": "https://www.facebook.com/NASA/posts/pfbid0sWEQa1gX7qa3jNrUYfgVy3kYaimwKott95nY6NicQPwxPGzkahpyQ8ABWbpkth2bl"
    }
  ],
  "resultsLimit": 10,
  "proxy": {
    "useApifyProxy": true
  }
}' |
apify call sones/facebook-comments-scraper-lowcost --silent --output-dataset

```

## MCP server setup

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

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/6sePBFKLY3kQoQ3NN/builds/kQnvS6DTRd8SVCqke/openapi.json
