Public ads from the Meta ad library
meta-adsMeta ad library API for AI agents, for competitor research: send a keyword or an advertiser (name or page id) and get its public ads as JSON: advertiser, start and end date, whether it is still running, platforms, text, title, call to action, link, format and image URLs. Filter by country and by active or all ads; up to 100 per call, each ad once. Pay per call in stablecoins; an empty search is not charged and ads you paid for but did not get are refunded. Not offered on Solana: pay on Base or Polygon.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | the advertiser: a page name or its numeric page id (give this or keyword, not both) | |
| limit | No | number of ads wanted, 1 to 100 (default 20). A larger value is lowered to 100 and 0 or a negative one means the default; the quote follows the value used. | |
| active | No | true: only ads running now; false: active and inactive ads (default true) | |
| country | No | two-letter country code the ads are shown in, or ALL (default US) | US |
| keyword | No | search the ads by this word or phrase (give this or page, not both) |