# AnyAPI Facebook Ads Search

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

Searches and scrapes Facebook Ads Library data for a given query, returning active or historical ad campaigns and creatives.

## Facts

- Endpoint: POST https://api.getanyapi.com/v1/run/facebook.ads_search
- Price: $0.002/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-ads-search-85b73dbc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mSypf6h9KXbIXtFWgvZFx

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-ads-search-85b73dbc -d '<json body>'
```

Example prompt: Search the Facebook Ads Library for active ads run by Nike in the United States and show me what creatives and ad copy they're currently running.

## When to prefer this

Use this endpoint when you need to search the Facebook Ads Library for competitor ad intelligence, creative research, or brand monitoring without managing your own Facebook API credentials or paying a monthly subscription. Ideal for pay-per-request competitive research workflows.

## Known failure modes

- Invalid or missing search query returns empty results or 400 error
- Facebook Ads Library access restrictions may limit certain ad categories (e.g., political ads)
- Rate limiting or quota exceeded returns 429 error
- Misspelled advertiser name returns no matches
- Country filter returning no results for region-specific campaigns

## 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 Facebook ad records matching the search query, including ad creative content, advertiser name, ad status (active/inactive), estimated reach, start date, and other metadata from the Facebook Ads Library.

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/anyapi-facebook-ads-search-85b73dbc/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)
