Search the Ad Library
search_adsSearch Meta's public Ad Library by keyword or advertiser page ID. Get advertiser, copy, creative count, destination domain, CTA, platforms, and how long each ad ran.
Instructions
Search Meta's public Ad Library by keyword, or list every ad from one advertiser by passing page_id. Returns advertiser, copy, creative count, destination domain, call to action, platforms and how long each ad has run. Works for ordinary commercial advertisers in any country. Spend and reach are null outside the EU, which is correct rather than a failure: that data is only published for EU and political ads.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | How many ads to return. On the browser backend a higher number costs more time. | |
| query | No | Keyword: a brand, product or angle. Optional if page_id is given. | |
| ad_type | No | Ad category. 'all' covers ordinary commercial ads and is what you usually want. | |
| country | No | Two-letter country the ads were delivered in, e.g. US, GB, DE. Default US. | |
| page_id | No | Advertiser Page ID. Returns that Page's ads instead of a keyword search. Use list_advertisers first if you only know the brand name. | |
| media_type | No | Filter by creative type. 'meme' is Meta's name for an image with text on it. | |
| active_status | No | Only ads running now, only stopped ads, or both. Default active. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ads | Yes | ||
| url | No | ||
| note | No | ||
| count | Yes | ||
| cursor | No | ||
| backend | Yes | ||
| has_more | Yes | ||
| total_available | No | Meta's own count of matching ads. |