Skip to documentation
Browse documentation
For AI agents

Connect your agent to live platform data.

Open in

Search Ads Library

Searches the public Facebook Ads Library by advertiser or keyword, filtered by country and active or inactive status.

Capability ID facebook.ads-library.search
Maximum runtime 120 seconds
View raw

POST /execute Shared execution endpoint

Input parameters

active_status string optional

Only active ads (default), only inactive ads, or both Allowed values: `active`, `inactive`, `all`. Default: `active`.

Example active
Available values activeinactiveall
country string optional

Two-letter country code where the ads ran, or ALL Default: `ALL`.

Example US
limit integer optional

Maximum number of ads to return From 1 to 100. Default: `20`.

Example 20
query string required

Advertiser name or keyword to search in the Facebook Ads Library Default: `Meta AI`.

Example Meta AI

Response

Successful output is returned in results[0].data.

Raw platform output is intentionally open-ended and may evolve with the upstream source.

Illustrative sample The example response is shown in the response panel.

Illustrative output fields

Values illustrate one response. Read the guidance above for missing values and limits; fields can vary with the requested operation and the data available.

PathObserved typeExample
items array 3 items
items array 3 items
summary object 1 fields
summary.total_items integer 20

Execution behavior

A 200 response completed inline. A 202 response was queued; poll GET /jobs/:id until the job reaches completed or failed.