# AnyAPI Facebook Company Ads Scraper

> AnyAPI Facebook Company Ads Scraper 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).

Scrapes and returns active or recent ad listings for a Facebook company/page, including ad creative, targeting info, and spend data.

## Facts

- Endpoint: POST https://api.getanyapi.com/v1/run/facebook.company_ads
- 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-company-ads-scraper-09af9132
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kHD-AJAT_jSC2iXBMIPFe

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-company-ads-scraper-09af9132 -d '<json body>'
```

Example prompt: Pull all the current Facebook ads running for Nike — I want to see their ad creatives, copy, and any spend or targeting details available.

## When to prefer this

Use this endpoint when you need to programmatically retrieve Facebook ad data for a specific company without subscribing to Facebook's Marketing API or a monthly SaaS tool. Ideal for competitive intelligence, ad monitoring, or marketing research tasks where pay-per-request pricing is preferable. Best for agents that need ad creative data on demand.

## Known failure modes

- Company page not found or invalid identifier returns empty results or error
- Facebook rate limiting or anti-scraping measures may cause request failure
- Private or restricted pages may return no ad data
- Malformed company URL or name may return error response
- Temporary service unavailability returns HTTP 5xx

## 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

Returns a JSON object containing a list of ads associated with the specified Facebook company or page, including ad creative content (images, copy, headlines), ad status (active/inactive), estimated spend ranges, targeting details, and ad IDs from Facebook's ad library.

## Response schema (JSON Schema)

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

## More

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