facebook: Search the Meta Ad Library
facebook_adLibrarySearchSearch the Meta Ad Library. Facebook, Instagram, Messenger and Threads ads matching a search term, from Meta's Ad Library, in the Library's own order. Spend and impression ranges are filled for political and issue ads only where the deployment reads the Graph Ad Library API; pagination.hasMore says when more results exist. Costs 2 credits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Ads per page, 1-100. Default 25. | |
| query | Yes | Search term, matched against ad text and advertiser name | |
| cursor | No | `pagination.cursor` from a previous response | |
| status | No | Delivery status at the time of the query. | active |
| ad_type | No | `political` unlocks Meta's spend, impression and demographic fields. | all |
| country | No | ISO-3166 country code(s) the ad reached, comma-separated. Meta requires at least one. | US |
| end_date | No | Latest delivery date, YYYY-MM-DD | |
| language | No | Comma-separated BCP-47 codes, e.g. "en,es" | |
| platform | No | Comma-separated: facebook, instagram, messenger, audience_network, threads, whatsapp, oculus | |
| media_type | No | ||
| start_date | No | Earliest delivery date, YYYY-MM-DD | |
| search_type | No | `exact_phrase` matches the words in order | unordered |
| cache_max_age | No |