# API Direct – Facebook Post Comments

> API Direct – Facebook Post Comments is a paid API for AI agents from x402.apidirect.io, paid per call via x402, $0.009/call, status unknown (last checked 2026-10-30).

Fetches comments on a Facebook post by its post ID, with optional AI sentiment analysis per comment.

## Facts

- Endpoint: GET https://x402.apidirect.io/v1/facebook/post/comments?utm_source=zero.xyz
- Price: $0.009/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-direct-facebook-post-comments-91abef89
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Qb0Nq8Cq0LaL4yCdnmx5y

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 api-direct-facebook-post-comments-91abef89
```

Example prompt: Fetch the comments on Facebook post ID 'pfbid02XkJ9z8mQkL3' — grab 3 pages of comments and include AI sentiment analysis for each one.

## When to prefer this

Use this endpoint when you need to programmatically retrieve comments from a specific Facebook post by its post ID (pfbid or numeric), especially when you also want AI-powered emotion and sentiment analysis per comment. It is the right choice for social listening, brand monitoring, competitor analysis, or customer feedback extraction on Facebook. Prefer it over manual scraping or generic web access when structured, paginated comment data with optional sentiment enrichment is needed at low per-call cost.

## Known failure modes

- Invalid or non-existent post ID returns an error or empty result
- Private or restricted Facebook posts may return no comments
- Rate limits or Facebook access restrictions may cause partial results
- Exceeding the 20-page maximum returns a validation error
- Posts with no comments return an empty comments array

## How this service works

Get comments on a Facebook post by post ID.

## Output

Returns a list of comments on the specified Facebook post, each containing commenter details and comment text. With get_sentiment=true, each comment is enriched with a sentiment object including emotion scores (joy, trust, fear, surprise, sadness, disgust, anger, anticipation each 0-100), dominant_emotion, emotional_intensity (0-10), and polarity (positive, negative, or neutral). Multiple pages can be fetched and merged into one response.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "post_id"
     ],
     "properties": {
      "pages": {
       "type": "integer",
       "default": 1,
       "maximum": 20,
       "minimum": 1,
       "description": "Number of pages to fetch and merge into one response (1-20). Billed per page."
      },
      "post_id": {
       "type": "string",
       "description": "Facebook post ID (pfbid or numeric)"
      },
      "get_sentiment": {
       "type": "boolean",
       "default": false,
       "description": "Set to true to add AI emotion analysis to each comment. Adds a `sentiment` object containing `emotions` (joy, trust, fear, surprise, sadness, disgust, anger and anticipation, each scored 0-100), `dominant_emotion`, `emotional_intensity` (0-10), and `polarity` (positive, negative or neutral). Any com"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-direct-facebook-post-comments-91abef89/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.apidirect.io](https://www.zero.xyz/host/x402.apidirect.io/llms.txt)
