Facebook Company Ads
List the Meta Ad Library ads a company is running by page ID or company name (creative text, format, platforms, and run dates) with cursor pagination.
Price: $2.00 per 1,000 requests (flat per request - same cost regardless of results returned).
Routing: one lane serves this API today, so a failed attempt has nowhere to fail over to. Failed attempts are never billed.
Authorizations
Your AnyAPI key as a Bearer token.
Headers
Optional wallet idempotency key, scoped to this customer for 24 hours. When the gateway honors the key, this synchronous in-process execution can continue after the caller disconnects, bounded by its execution deadline. A completed replayable result charges normally exactly once and can be replayed without another provider run or charge. A pending duplicate returns 409 idempotency_in_progress; reuse with different request semantics returns 409 idempotency_conflict.
1 - 255Query Parameters
Optional. Comma-separated keys (dotted paths like author.name descend into nested objects) to keep on each result item. Keys are matched relative to each result item after the data/items envelope is unwrapped, not against the top-level response envelope, so use jq to reshape the whole envelope. Shrinks the response without changing cost.
Optional. Cap the number of result rows returned; a _truncated note reports how many were withheld so you can page via the API's own limit. Does not change cost.
x >= 0Optional. Return only a structural outline (top-level keys, item counts, and per-field byte sizes) instead of the full data. Does not change cost.
Optional. A jq expression applied to the result envelope; its output replaces output (multiple outputs collect into an array). Reshape freely, e.g. jq=.data | {title, description, md: .markdown[:3500]}. Runs sandboxed with a 250ms / 2MB budget; on failure the full result is returned with a jqError. Does not change cost.
Body
- Facebook company ads input
- Facebook company ads input
Company's Ad Library page ID. Provide either pageId or companyName.
1Company name to search (e.g. "nike"). Exact-match and case-sensitive against the Meta Ad Library index; an advertiser with no indexed page returns found:false.
1Two-letter country code to scope results. Defaults to all countries.
Opaque pagination cursor from a previous response's nextCursor.
Filter to ads with impressions on or before this date, in YYYY-MM-DD format.
Two-letter language code to filter ads (e.g. "EN", "ES", "FR").
Creative media type filter.
ALL, IMAGE, VIDEO, MEME, IMAGE_AND_MEME, NONE Sort order: impressions (highest first, the default) or recent (most recent).
impressions, recent Filter to ads with impressions on or after this date, in YYYY-MM-DD format.
Ad status filter. Defaults to ACTIVE.
ALL, ACTIVE, INACTIVE Response
Normalized result.
USD charged on the original run. On a replay this value is echoed for parity; the replay itself is free.
Normalized output, or null when the replay payload was not retained.
Always "AnyAPI".
True when this response replays the durable result of an earlier run without billing or upstream execution.
Number of result rows returned. For per-result SKUs the per-item cost is charged against this count; for input-priced SKUs the charge is per submitted input, independent of this count.
Present only when a jq expression failed; output then carries the full unshaped result and this explains why the reshape did not apply.
Opaque handle to the full unshaped result, cached ~15 min. Re-shape it for free (fields/max_items/summary/jq) via GET /v1/results/{id}, no re-billing. Absent when the result was too large to cache.