# Facebook Comments Scraper | All Comments | No Login (`h1018y/anvil-facebook-comments-scraper`) Actor

Scrapes Facebook comments and replies from public posts, videos and reels with no login. Give it post or reel links; get each comment's text, date, likes, reaction types, replies and commenter as rows, plus the post's comment total and an only-new switch.

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

## Pricing

from $1.26 / 1,000 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 | All Comments | No Login

**Facebook Comments Scraper** - Paste Facebook post, video or reel links and get all the comments and replies as rows - with the post's real comment total next to them.

### What does Facebook Comments Scraper do?

It reads Facebook's 'All comments' list (not the filtered 'Most relevant' one) page after page and puts postCommentsTotal on every row, so you can see how many of the post's comments you got; reel links work, and onlyNew returns 0 rows when nothing new came.

- Reads Facebook's 'All comments' list page after page (or Newest first / Most relevant) - fixes 'missing comments' and 'Not all comments are exported'
- postCommentsTotal and position on every row - see how many of the post's comments you got
- Reel, video, photo, m. and share links work - fixes 'Actor fails on Facebook Reel comments'
- Replies and replies to replies with threadingDepth, replyToCommentId and parentComment; reaction types per comment
- onlyNew for schedules: only comments not returned before, 0 rows and a log line when nothing is new; same input and output field names as the most used Facebook

### Who uses Facebook Comments Scraper, and for what

- Brands - export all comments of a campaign post or reel, not only the 'most relevant' ones
- Agencies - check every morning only the new comments on a client's latest posts
- Researchers - collect comments and reply threads with depth and parent ids for analysis
- Developers - poll a post through the API with onlyNew and get only comments they have not seen

### What this Facebook Comments Scraper does that users of the usual tools ask for

- **All of a post's comments, not a filtered part - and a total to check against** - in the `postCommentsTotal` field
- **Comments of reels work like any post** - in the `postType` field
- **A scheduled run that finds nothing new ends with nothing to pay for** - in the `changeType` field

#### Switching takes one minute

The input and result field names are the ones the most used Facebook Comments Scraper has, so the input JSON your code already sends works unchanged and your pipeline reads the same fields - plus the new ones above.

### Why this Facebook Comments Scraper?

Small copies fail because they stop at the comments Facebook shows first, break on reels, or need the user's own Facebook cookies. This Facebook Comments Scraper checks every run and tells you plainly when a page could not be read, instead of returning empty or wrong rows.

### Data you get from Facebook Comments Scraper

Every result is one flat row with these fields (values from a real run):

| Field | Example |
|---|---|
| `facebookUrl` | https://m.facebook.com/NASA/posts/pfbid0295wefgGxLg7m3RaGUG5... |
| `inputUrl` | https://m.facebook.com/NASA/posts/pfbid0295wefgGxLg7m3RaGUG5... |
| `postTitle` | NASA - National Aeronautics and Space Administration |
| `postDescription` | How’s that for a starburst?  Found in this distant spiral ga... |
| `postId` | 1683838659778170 |
| `postType` | post |
| `pageName` | NASA - National Aeronautics and Space Administration |
| `postCommentsTotal` | 125 |
| `commentUrl` | https://www.facebook.com/NASA/posts/pfbid029PkAwBaRLmF1umFfK... |
| `id` | Y29tbWVudDoxNjgzODM4NjU5Nzc4MTcwXzExMTg1OTg2MzQxMTI3MTc= |
| `commentId` | 1118598634112717 |
| `feedbackId` | ZmVlZGJhY2s6cGZiaWQwM045VDZaUGVlbVhQdDRScm9hQ0NSS1djRk5LSFZx... |
| `date` | 2026-11-11T03:09:49.000Z |
| `text` | That starburst glow against the dust lanes is stunning. Grea... |
| `likesCount` | 11 |
| `reactionTypes` | {"Like": 10, "Love": 1} |
| `commentsCount` | 0 |
| `threadingDepth` | 0 |
| `replyToCommentId` | null |
| `parentComment` | null |
| `parentReply` | null |
| `profileName` | Restless Planet |
| `name` | Restless Planet |
| `profileId` | 61595240910514 |
| `profileUrl` | https://www.facebook.com/people/Restless-Planet/615952409105... |

### How to use Facebook Comments Scraper

1. Press **Start** - the form already holds an example that works.
2. Put in your own input (see the fields on the Input tab).
3. Run it once, or put it on an **Apify Schedule** (with **only new** on, where the form has it) to get just what is new every day; add a **webhookUrl** to get each run's rows sent to your own system, Zapier, Make or Slack.
4. Download the results as JSON, CSV or Excel, or send them to Google Sheets, Zapier, Make, the Apify API or an AI agent (Apify MCP server).

#### Input example

```json
{
  "startUrls": [
    {
      "url": "https://www.facebook.com/natgeo/posts/pfbid02H3nu7XQka9FekDs2RqUenqmJbYtzYcjdVJop927rsVcwNjUQaoq9Nkf3gqHkvRw9l"
    },
    {
      "url": "https://www.facebook.com/reel/1028454220271183"
    }
  ],
  "resultsLimit": 20,
  "includeNestedComments": true,
  "viewOption": "RANKED_UNFILTERED",
  "onlyNew": false,
  "maxItems": 100000,
  "useApifyProxy": true
}
```

#### Output example (a real run)

```json
[
  {
    "facebookUrl": "https://m.facebook.com/NASA/posts/pfbid0295wefgGxLg7m3RaGUG5GoewGS9NwGcUPGW1fTiHKePqbu1BAHQC832D7sRVvPtEil",
    "inputUrl": "https://m.facebook.com/NASA/posts/pfbid0295wefgGxLg7m3RaGUG5GoewGS9NwGcUPGW1fTiHKePqbu1BAHQC832D7sRVvPtEil",
    "postTitle": "NASA - National Aeronautics and Space Administration",
    "postDescription": "How’s that for a starburst?\n\nFound in this distant spiral galaxy is a giant star prone to mysterious outbursts. Thanks to our Chandra X-ray Observatory, scientists identified the culprit behind the...",
    "postId": "1683838659778170",
    "postType": "post",
    "pageName": "NASA - National Aeronautics and Space Administration",
    "postCommentsTotal": 125,
    "commentUrl": "https://www.facebook.com/NASA/posts/pfbid029PkAwBaRLmF1umFfKkMMWLtyZde7X9T7VJUPAU6bnbVeCQuJKay5aZkdwMjFPJPcl?comment_id=1118598634112717",
    "id": "Y29tbWVudDoxNjgzODM4NjU5Nzc4MTcwXzExMTg1OTg2MzQxMTI3MTc=",
    "commentId": "1118598634112717",
    "feedbackId": "ZmVlZGJhY2s6cGZiaWQwM045VDZaUGVlbVhQdDRScm9hQ0NSS1djRk5LSFZxWDdvaHdobmlnTGhVeXFpbXRjY21aRThHYnV1b0QxTTNOVmZFYW82ajR6VnRZVjJSdkFmcVFqZDRWall5VmlmUnNxQ0FWbA==",
    "date": "2026-11-11T03:09:49.000Z",
    "text": "That starburst glow against the dust lanes is stunning. Great reminder of how active these star-forming regions are.",
    "likesCount": 11,
    "reactionTypes": {
      "Like": 10,
      "Love": 1
    },
    "commentsCount": 0,
    "threadingDepth": 0,
    "replyToCommentId": null,
    "parentComment": null,
    "parentReply": null,
    "profileName": "Restless Planet",
    "name": "Restless Planet",
    "profileId": "61595240910514",
    "profileUrl": "https://www.facebook.com/people/Restless-Planet/61595240910514/",
    "profilePicture": "https://scontent-den2-1.xx.fbcdn.net/v/t39.30808-1/836117680_4722253464661107_2841056073015703762_n.jpg?stp=cp0_dst-jpg_s32x32_tt6&_nc_cat=110&_nc_map=urlgen_bucketless&ccb=1-7&_nc_sid=2d3e12&_nc_ohc=1CzgwYlPrtgQ7kNvwE-gt_x&_nc_oc=AdrDGRcES8vNu6IM_kcx7vVt-Btgx3VbzfCzAlkw1ophTNb2A7A1oAiyz8qUChkzCIw&_nc_zt=24&_nc_ht=scontent-den2-1.xx&_nc_gid=PvRgdbGHn6bpsGdsV1bXKw&_nc_ss=70180&oh=00_AQTerO10g9TLgKlrBpM-18YEfPLaeykfF21e2yPhYnpqpA&oe=6AFCA8D9",
    "authorIsVerified": true,
    "author": {
      "name": "Restless Planet",
      "id": "61595240910514",
      "url": "https://www.facebook.com/people/Restless-Planet/61595240910514/",
      "profilePicture": "https://scontent-den2-1.xx.fbcdn.net/v/t39.30808-1/836117680_472225346466
```

One flat row per result.

### Built for pipelines

- **Field names never change** - fixes and new features only ever add fields, so your code keeps working.
- **Every row has the same shape** - a missing value is `null`, never a dropped field.
- **A plain status line** on every run - how many results, and on a problem what to change in the input - for your logs and for AI agents.
- **Runs on its own** - put it on an Apify Schedule and add a `webhookUrl`: each run's rows go straight to your system, Zapier, Make or Slack.

### How much does Facebook Comments Scraper cost?

You pay only per result (pay per event) - no monthly fee, no minimum, and the price per result is lower on Apify's Bronze, Silver and Gold plans. The exact price is on the **Pricing** tab. Apify's free plan credit is enough to try it on real input.

| You want | What you pay for |
|---|---|
| A quick test with the example | a few results |
| A daily scheduled run | only the rows that run returns |
| A big one-off export | the results delivered - set a maximum in the input |

### Also searched as

- facebook comment scraper
- facebook comments export
- facebook reel comments
- scrape facebook comments
- facebook comments api

### FAQ

**Does Facebook Comments Scraper need a login, cookies or an API key?** No. It reads public pages only.

**Can I run Facebook Comments Scraper on a schedule?** Yes - with Apify Schedules; each run returns fresh rows.

**Can I call it from Python, JavaScript or an AI agent?** Yes - through the Apify API, the Apify client libraries or the Apify MCP server.

**Is it legal?** It collects only data anyone can see without logging in. You are responsible for using it within the source site's terms and data protection law (GDPR, CCPA).

**What if the site blocks a request?** The run retries from a fresh connection and, if it still cannot read the page, stops with a clear message - never with made-up rows.

**Do I need proxies?** No setup needed - Facebook Comments Scraper uses Apify Proxy by default where the site needs it.

### Troubleshooting

- **No results:** check the input (a public URL or a search term that returns results in a normal browser), then try the example input once.
- **Fewer results than expected:** raise the maximum in the input; some sites show only a part of their data without logging in, and Facebook Comments Scraper never logs in.
- **The run stopped with a message:** the message says what the site answered; run it again later or with fewer items.

### Your feedback

Missing a field, found a bug, or need another site? Open an issue on the **Issues** tab - issues are answered and fixed. If Facebook Comments Scraper saved you time, a short review on this page helps others find it.

Data source: [www.facebook.com](https://www.facebook.com)

### More tools from this developer

- [Tweet Scraper for Twitter & X Posts: By URL, No Login](https://apify.com/h1018y/anvil-tweet-scraper)
- [YouTube Thumbnail Downloader: Bulk, Every Size & Titles](https://apify.com/h1018y/anvil-youtube-thumbnail-downloader)
- [ML Conference Finder: NeurIPS, ICLR & ICML Alternatives](https://apify.com/h1018y/anvil-ml-conference-finder)
- [YouTube Transcript & Captions Scraper: Find Any Word Said](https://apify.com/h1018y/anvil-youtube-transcript-scraper)
- [Facebook Ads Library Scraper & Meta Ad Spy: Only New Ads](https://apify.com/h1018y/anvil-facebook-ads-library-scraper)
- [Twitter Scraper: New Tweets From Any X Account, No Login](https://apify.com/h1018y/anvil-twitter-scraper)
- [Facebook Page & Posts Scraper: New Posts & Engagement Growth](https://apify.com/h1018y/anvil-facebook-posts-scraper)
- [Google Trends Scraper: Rising Searches & Interest by Region](https://apify.com/h1018y/anvil-google-trends-scraper)

# Actor input Schema

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

Links to single public Facebook posts, videos, reels or photos, one per line (www, m. or share links). Example: https://www.facebook.com/reel/1028454220271183

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

How many comments to read per post, replies included, 1 to 5000, e.g. 200. Every row's postCommentsTotal says how many Facebook counts in all.

## `includeNestedComments` (type: `boolean`):

Also read the replies under each comment (and replies to replies), with threadingDepth, replyToCommentId and parentComment. Example: true.

## `viewOption` (type: `string`):

Which comment list to read: RANKED_UNFILTERED = all comments, RECENT_ACTIVITY = newest first, RANKED_THREADED = most relevant (Facebook hides some).

## `onlyCommentsNewerThan` (type: `string`):

Keep only comments written after this moment: a date like 2026-11-01 or a span like 3 days. Fastest with Newest first.

## `onlyNew` (type: `boolean`):

For schedules: return only comments the last run with the same input did not return (changeType new). Nothing new ends with 0 rows. Example: true.

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

Stop after this many comment rows over all posts together, whole number, e.g. 1000.

## `useApifyProxy` (type: `boolean`):

Send the requests through Apify Proxy (true or false). Recommended, because Facebook blocks most data-centre addresses. Example: true.

## `proxyGroups` (type: `array`):

Optional list of Apify Proxy groups as text, e.g. RESIDENTIAL. Leave empty for the default group.

## `webhookUrl` (type: `string`):

Optional. An https address - your own system, Zapier, Make or a Slack incoming webhook - that gets each run's results as JSON (with 'only new' on: just the new ones). Example: https://hooks.slack.com/services/T000/B000/XXXX

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.facebook.com/natgeo/posts/pfbid02H3nu7XQka9FekDs2RqUenqmJbYtzYcjdVJop927rsVcwNjUQaoq9Nkf3gqHkvRw9l"
    },
    {
      "url": "https://www.facebook.com/reel/1028454220271183"
    }
  ],
  "resultsLimit": 20,
  "includeNestedComments": true,
  "viewOption": "RANKED_UNFILTERED",
  "onlyNew": false,
  "maxItems": 100000,
  "useApifyProxy": true
}
```

# Actor output Schema

## `results` (type: `string`):

All result rows (open as table, JSON, CSV or Excel).

# 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/natgeo/posts/pfbid02H3nu7XQka9FekDs2RqUenqmJbYtzYcjdVJop927rsVcwNjUQaoq9Nkf3gqHkvRw9l"
        },
        {
            "url": "https://www.facebook.com/reel/1028454220271183"
        }
    ],
    "resultsLimit": 20,
    "includeNestedComments": true,
    "useApifyProxy": true
};

// Run the Actor and wait for it to finish
const run = await client.actor("h1018y/anvil-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": [
        { "url": "https://www.facebook.com/natgeo/posts/pfbid02H3nu7XQka9FekDs2RqUenqmJbYtzYcjdVJop927rsVcwNjUQaoq9Nkf3gqHkvRw9l" },
        { "url": "https://www.facebook.com/reel/1028454220271183" },
    ],
    "resultsLimit": 20,
    "includeNestedComments": True,
    "useApifyProxy": True,
}

# Run the Actor and wait for it to finish
run = client.actor("h1018y/anvil-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": [
    {
      "url": "https://www.facebook.com/natgeo/posts/pfbid02H3nu7XQka9FekDs2RqUenqmJbYtzYcjdVJop927rsVcwNjUQaoq9Nkf3gqHkvRw9l"
    },
    {
      "url": "https://www.facebook.com/reel/1028454220271183"
    }
  ],
  "resultsLimit": 20,
  "includeNestedComments": true,
  "useApifyProxy": true
}' |
apify call h1018y/anvil-facebook-comments-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,h1018y/anvil-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/U5D2yzcz3bLbloFMR/builds/kwjQhzLEStJ3aL0p2/openapi.json
