# Facebook Pages Scraper

> Facebook Pages Scraper is a paid API for AI agents from api.scrapeforagents.tech, paid per call via x402, $0.025/call, status unknown (last checked 2026-10-02).

Scrapes structured data from public Facebook Page URLs and returns page metadata including title, ID, categories, and URL fields.

## Facts

- Endpoint: POST https://api.scrapeforagents.tech/v1/facebook-pages?utm_source=zero.xyz
- Price: $0.025/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/facebook-pages-scraper-5888aba3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_duPZty2s7cc8fTA_8oWSu

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 facebook-pages-scraper-5888aba3 -d '<json body>'
```

Example prompt: Can you scrape the Facebook page at https://www.facebook.com/coca-cola and give me its page ID, name, and categories?

## When to prefer this

Use this endpoint when you need structured metadata (ID, name, categories) from public Facebook Pages by URL, especially for bulk lookups or CRM enrichment. Prefer it over manual browsing or generic scrapers when you need consistent JSON output and pay-per-successful-call pricing with no charge for failed runs.

## Known failure modes

- Page requires login — returns null fields for restricted content
- Invalid or non-existent Facebook URL — empty items array returned
- Private or unpublished page — fields return null
- Rate limiting or blocking by Facebook — may return empty results
- Malformed URL input — API may reject or return zero items

## How this service works

Pay-per-call structured web data. Failed or empty runs are not charged.

## Output

Returns a JSON object with a count of matched pages and an items array. Each item includes fields for info, title, pageId, pageUrl, pageName, categories, facebookId, and facebookUrl — some may be null if the page restricts public access.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "maxItems": {
   "type": "integer",
   "default": 0,
   "minimum": 0,
   "description": "Stop after this many page records across all URLs. Zero removes the cap."
  },
  "startUrls": {
   "type": "array",
   "description": "Public Facebook Page URLs. Each URL yields one page record when the page is available anonymously."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 1,
  "items": [
   {
    "info": null,
    "title": null,
    "pageId": null,
    "pageUrl": null,
    "pageName": null,
    "categories": null,
    "facebookId": null,
    "facebookUrl": null
   }
  ],
  "product": "facebook-pages"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/facebook-pages-scraper-5888aba3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.scrapeforagents.tech](https://www.zero.xyz/host/api.scrapeforagents.tech/llms.txt)
