# AnyAPI Facebook Search Posts

> AnyAPI Facebook Search Posts is a paid API for AI agents from api.getanyapi.com, paid per call via x402, $0.0518/call, status unknown (last checked 2026-09-14).

Scrapes and returns Facebook posts matching a search query via a pay-per-request API

## Facts

- Endpoint: POST https://api.getanyapi.com/v1/run/facebook.search_posts
- Price: $0.0518/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/anyapi-facebook-search-posts-89fc7052
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MlH9zhg-ayeC8tAysKLe1

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 anyapi-facebook-search-posts-89fc7052 -d '<json body>'
```

Example prompt: Search Facebook posts mentioning 'electric vehicles 2024' and pull back the latest results so I can see what people are publicly saying about the topic.

## When to prefer this

Use this endpoint when you need to programmatically search and retrieve public Facebook posts by keyword without a Meta API account, subscriptions, or monthly commitments. Ideal for social listening, brand monitoring, trend analysis, or competitive research on Facebook content at low cost ($0.05 per call).

## Known failure modes

- No results found for the given query — returns empty results array
- Facebook anti-scraping measures trigger a block — may return error or empty response
- Invalid or missing query parameter — returns 400-level error
- Quota or rate limit exceeded — returns error response
- Facebook page or post content is private — not included in results
- Network timeout or upstream scraping failure — returns 5xx error

## How this service works

1,200+ scraping and data APIs behind one key. Pay per request in real dollars. No subscriptions, nothing monthly, nothing to cancel.

## Output

A JSON response containing a list of Facebook posts matching the search query, including post text, author/page details, timestamps, engagement metrics (likes, shares, comments), and post URLs.

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/anyapi-facebook-search-posts-89fc7052/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.getanyapi.com](https://www.zero.xyz/host/api.getanyapi.com/llms.txt)
