# Apify Facebook Comments Scraper via StableApify

> Apify Facebook Comments Scraper via StableApify is a paid API for AI agents from stableapify.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-13).

Scrapes comments from Facebook posts or pages, including nested replies, with filtering by date and sort order.

## Facts

- Endpoint: POST https://stableapify.dev/api/actors/apify/facebook-comments-scraper/call
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/apify-facebook-comments-scraper-via-stableapify-18c6dc0a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rGTkQGJRjBp59u2b1PH_4

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability apify-facebook-comments-scraper-via-stableapify-18c6dc0a -d '<json body>'
```

Example prompt: Scrape all comments from this Facebook post — https://www.facebook.com/somepage/posts/123456789 — sorted by RANKED_UNFILTERED, include nested replies up to 3 levels deep, and only return comments from the last 30 days.

## When to prefer this

Use this endpoint when you need to extract public comments from Facebook posts at scale, especially when you require nested reply threads, date-based filtering, or specific sort orders (ranked or recent). It is preferable over generic scraping tools because it is purpose-built for Facebook's comment structure and handles pagination and threading automatically.

## Known failure modes

- Invalid or private Facebook URL returns no results or an error
- Facebook rate limiting or login-wall blocking access to post comments
- Results limit exceeded or truncated if the post has extremely high comment volume
- Date filter pattern mismatch causes validation error
- Actor timeout for very large comment threads

## How this service works

Search Apify Store actors, start actor runs, and fetch results over x402 and MPP.

## Output

Returns a list of comment objects from the specified Facebook URL, each containing the comment text, author name, timestamp, and (if enabled) nested replies up to 3 levels deep, filtered and sorted according to the specified options.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "startUrls",
    "includeNestedComments",
    "viewOption"
   ],
   "properties": {
    "startUrls": {
     "type": "array",
     "items": {
      "type": "object",
      "required": [
       "url"
      ],
      "properties": {
       "url": {
        "type": "string",
        "format": "uri"
       },
       "method": {
        "type": "string"
       },
       "headers": {
        "type": "object",
        "propertyNames": {
         "type": "string"
        },
        "additionalProperties": {
         "type": "string"
        }
       },
       "payload": {
        "type": "string"
       },
       "userData": {
        "type": "object",
        "propertyNames": {
         "type": "string"
        },
        "additionalProperties": {}
       }
      },
      "additionalProperties": false
     },
     "description": "Valid facebook URL"
    },
    "viewOption": {
     "enum": [
      "RANKED_THREADED",
      "RECENT_ACTIVITY",
      "RANKED_UNFILTERED"
     ],
     "type": "string",
     "default": "RANKED_UNFILTERED",
     "description": "Choose the way the comments are sorted"
    },
    "resultsLimit": {
     "type": "integer",
     "maximum": 9007199254740991,
     "minimum": 1,
     "description": "If this limit is not set as many results as possible are returned"
    },
    "includeNestedComments": {
     "type": "boolean",
     "default": false,
     "description": "If checked, the actor will return up to 3 levels of comments/replies for each post. Note that each reply/comment will be returned as a separate result."
    },
    "onlyCommentsNewerThan": {
     "type": "string",
     "pattern": "^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])(T[0-2]\\d:[0-5]\\d(:[0-5]\\d)?(\\.\\d+)?Z?)?$|^(\\d+)\\s*(minute|hour|day|week|month|year)s?$",
     "description": "Limit how far back to the history the scraper should go. The date should be in YYYY-MM-DD or full ISO absolute format or in relative format e.g. 1 year, 2 months, 3 days, 4 hours, or 5 minutes. All time values are taken in UTC timezone. This add-on feature is billed separately."
    }
   },
   "description": "Normalized actor input. See field descriptions for the simplified shape; native Apify input also accepted (passed through).",
   "additionalProperties": {}
  },
  "options": {
   "type": "object",
   "properties": {
    "build": {
     "type": "string",
     "maxLength": 100,
     "minLength": 1
  
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/apify-facebook-comments-scraper-via-stableapify-18c6dc0a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from stableapify.dev](https://www.zero.xyz/host/stableapify.dev/llms.txt)
