# Facebook Comments Scraper

> Facebook Comments 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 and returns publicly visible comments from one or more Facebook post URLs as structured JSON data

## Facts

- Endpoint: POST https://api.scrapeforagents.tech/v1/facebook-comments?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-comments-scraper-6321ad6c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_eeSqDAQIXha7IiUh2Gf0v

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-comments-scraper-6321ad6c -d '<json body>'
```

Example prompt: Can you scrape the public comments from this Facebook post — https://www.facebook.com/somepage/posts/123456 — and give me up to 100 comments, including any nested replies, posted in the last 7 days?

## When to prefer this

Choose this endpoint when you need structured, pay-per-call extraction of public Facebook post comments without managing your own scraping infrastructure. It is ideal for social listening, sentiment analysis, competitor research, or audience feedback collection on known public Facebook post URLs. Best suited when you have specific post URLs and need comment data in a clean JSON format quickly. Not suitable for private posts, authenticated content, or large-scale crawling of entire Facebook pages.

## Known failure modes

- Private or login-required posts return empty results and are not charged
- Facebook URL is invalid or post has been deleted — empty result returned
- Post has no publicly visible comments — returns count 0 and empty items array
- resultsLimit too low to capture meaningful data if set to 1
- Rate limiting or IP blocking by Facebook may cause failed runs (not charged)
- onlyCommentsNewerThan date format is invalid — may cause parse error or ignored filter

## How this service works

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

## Output

A JSON object containing a count of returned items and an array of comment objects, each with fields for comment ID, date, text, comment URL, profile URL, and Facebook URL. Only publicly accessible comments are included; private posts and login-gated content are not scraped.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "startUrls": {
   "type": "array",
   "description": "One or more public Facebook post URLs. Private posts and pages that require login cannot be collected."
  },
  "resultsLimit": {
   "type": "integer",
   "default": 50,
   "minimum": 1,
   "description": "Hard maximum number of dataset rows across all URLs. Each post usually exposes only its initial 10 comments to anonymous visitors."
  },
  "includeNestedComments": {
   "type": "boolean",
   "default": false,
   "description": "Include replies when they are embedded in the initial public page. Replies behind a load-more control are unavailable."
  },
  "onlyCommentsNewerThan": {
   "type": "string",
   "description": "Optional UTC cutoff: YYYY-MM-DD, an ISO timestamp, or a relative period such as 7 days or 2 months."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 1,
  "items": [
   {
    "id": null,
    "date": null,
    "text": null,
    "commentId": null,
    "commentUrl": null,
    "feedbackId": null,
    "profileUrl": null,
    "facebookUrl": null
   }
  ],
  "product": "facebook-comments"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/facebook-comments-scraper-6321ad6c/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)
