# Apify Facebook Search Scraper (Pay-Per-Call)

> Apify Facebook Search Scraper (Pay-Per-Call) 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 Facebook pages, places, posts, and global search results by query using the danek/facebook-search-ppr Apify actor, returning structured post and page data.

## Facts

- Endpoint: POST https://stableapify.dev/api/actors/danek/facebook-search-ppr/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-search-scraper-pay-per-call-fe4a2487
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0jHHJFRjB1zgRq_neMZJY

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-search-scraper-pay-per-call-fe4a2487 -d '<json body>'
```

Example prompt: Search Facebook for pages about 'vegan restaurants' in New York, USA, pull the 50 most recent posts, and give me the results.

## When to prefer this

Choose this endpoint when you need to extract public Facebook content — posts, pages, or places — without managing your own scraping infrastructure. It is ideal for social media research, brand monitoring, competitive analysis, and local business discovery on Facebook. Prefer this over general web scrapers when you need Facebook-specific structured output and date-range filtering.

## Known failure modes

- Facebook anti-scraping blocks may cause empty or partial results
- Invalid or private Facebook URLs return no data
- Exceeding max_posts limits or requesting too large a dataset may cause timeouts
- Unsupported search_type values cause validation errors
- Date ranges with no matching content return empty result sets
- Actor memory limits exceeded for very large requests

## How this service works

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

## Output

Returns structured data from Facebook matching the search query, including post text, page names, place details, dates, URLs, and engagement metrics depending on the search type selected. Results are capped at the requested max_posts count.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "query",
    "search_type",
    "max_posts"
   ],
   "properties": {
    "query": {
     "type": "string",
     "description": "Facebook urls. Can be page or profile"
    },
    "end_date": {
     "type": "string",
     "description": "Date to which to scrape posts"
    },
    "location": {
     "type": "string",
     "description": "Location. For better result include both city and country"
    },
    "max_posts": {
     "type": "integer",
     "maximum": 9007199254740991,
     "minimum": -9007199254740991,
     "description": "Max results to scrape"
    },
    "start_date": {
     "type": "string",
     "description": "Date from which to scrape posts"
    },
    "search_type": {
     "enum": [
      "pages",
      "places",
      "posts",
      "global"
     ],
     "type": "string",
     "description": "Which types of results search for"
    },
    "recent_posts": {
     "type": "boolean",
     "description": "Recent post"
    }
   },
   "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
    },
    "memory": {
     "type": "integer",
     "maximum": 32768,
     "minimum": 128
    },
    "maxItems": {
     "type": "integer",
     "maximum": 100000,
     "minimum": 1
    }
   },
   "description": "Optional Apify run options.",
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/apify-facebook-search-scraper-pay-per-call-fe4a2487/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)
