# Apify Facebook Groups Scraper via StableApify

> Apify Facebook Groups 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 posts from public Facebook groups by URL, with filtering by date, keyword, and sort order, billed per call over x402.

## Facts

- Endpoint: POST https://stableapify.dev/api/actors/apify/facebook-groups-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-groups-scraper-via-stableapify-1860eeac
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_OeqlJqGmolUAdWgH67JhI

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-groups-scraper-via-stableapify-1860eeac -d '<json body>'
```

Example prompt: Scrape the 100 most recent posts from the public Facebook group at https://www.facebook.com/groups/buyselltrade.example, sorted chronologically, and only include posts from the last 30 days.

## When to prefer this

Use this endpoint when you need structured post data from a specific public Facebook group, especially when you want to filter by recency, sort order, or keyword. Prefer this over general web scraping when the target is specifically a Facebook group and you need paginated, structured results with date filtering.

## Known failure modes

- Private or closed Facebook group URL provided — scraper can only access public groups
- Invalid or malformed Facebook group URL causes extraction failure
- Facebook anti-bot measures may throttle or block the scraper, returning partial results
- resultsLimit set too high may cause timeouts or incomplete result sets
- onlyPostsNewerThan date pattern mismatch causes validation error
- Payment failure over x402 protocol prevents the call from executing

## How this service works

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

## Output

Returns an array of scraped Facebook post objects including post text, metadata (author, timestamp, reactions, comments), and other available public fields from the specified group, filtered and sorted according to the input parameters.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "startUrls",
    "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": "Insert a URL of a valid Facebook group. Only public Facebook groups can be scraped."
    },
    "viewOption": {
     "enum": [
      "CHRONOLOGICAL",
      "RECENT_ACTIVITY",
      "TOP_POSTS",
      "CHRONOLOGICAL_LISTINGS"
     ],
     "type": "string",
     "default": "CHRONOLOGICAL",
     "description": "Select sorting order by which the posts should be scraped. Please note that the Number of results field will be applied to New posts only. The BuySell items sorting will return results for BuySell groups only."
    },
    "resultsLimit": {
     "type": "integer",
     "maximum": 9007199254740991,
     "minimum": 1,
     "description": "Select the number of posts you want to scrape. If this limit is not set, as many results as possible will be returned."
    },
    "searchGroupYear": {
     "type": "string",
     "description": "The scraper will extract Facebook posts by this year. To use this field, you need to fill in the Search by letter field above ↑."
    },
    "onlyPostsNewerThan": {
     "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": "Scrapes post from the provided date to the present day. The date should be in YYYY-MM-DD or full ISO absolute format or in relative format e.g. 1 days, 2 months, 3 years. The JSON input also supports adding time units (UTC timezone): Full or partial ISO timestamp (e.g., `2025-09-23T10:02:01`) as absolute time and relative time, e.g., `1 hour` or `2 minutes`."
    },
    "searchGroupKey
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/apify-facebook-groups-scraper-via-stableapify-1860eeac/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)
