# API Direct – Facebook Group Posts

> API Direct – Facebook Group Posts 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 posts from a specific Facebook group, with optional AI sentiment analysis per post.

## Facts

- Endpoint: GET https://x402.apidirect.io/v1/facebook/group/posts?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-group-posts-5719bd91
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yIeYMbKBtQTPO-1ozZVbJ

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-group-posts-5719bd91
```

Example prompt: Pull the 3 most recent pages of posts from Facebook group 1234567890, sorted by most_recent, and include AI sentiment analysis for each post.

## When to prefer this

Choose this endpoint when you need to programmatically retrieve posts from a specific Facebook group — especially when you want AI-powered emotion/sentiment analysis per post. It is ideal for social listening, brand monitoring, community research, and content aggregation workflows where Facebook group data is the target source. Prefer this over generic web scraping when structured post data and optional sentiment enrichment are required.

## Known failure modes

- Invalid or non-numeric group_id returns an error
- Private or restricted Facebook groups may return no posts or an access error
- pages parameter out of range (below 1 or above 15) causes a validation error
- Group has been deleted or deactivated returns empty or error response
- Rate limiting or billing failure if payment is not properly attached

## How this service works

Get posts from a specific Facebook group.

## Output

Returns a paginated list of Facebook group posts (up to 15 pages merged into one response). Each post includes its content and metadata. If sentiment analysis is enabled, each post also includes an emotions object with scores (0–100) for joy, trust, fear, surprise, sadness, disgust, anger, and anticipation, plus a dominant_emotion, emotional_intensity (0–10), and polarity (positive, negative, or neutral).

## 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": [
      "group_id"
     ],
     "properties": {
      "pages": {
       "type": "integer",
       "default": 1,
       "maximum": 15,
       "minimum": 1,
       "description": "Number of pages to fetch and merge into one response (1-15). Billed per page."
      },
      "sort_by": {
       "enum": [
        "most_recent",
        "relevance"
       ],
       "type": "string",
       "description": "Sort order for results. most_recent returns the group's posts chronologically; relevance returns its top posts. Omit to use the default order."
      },
      "group_id": {
       "type": "string",
       "description": "Numeric Facebook group ID (from Group Details endpoint)"
      },
      "get_sentiment": {
       "type": "boolean",
       "default": false,
       "description": "Set to true to add AI emotion analysis to each post. 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 post t"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-direct-facebook-group-posts-5719bd91/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)
