Search
facebook_ad_library_searchSearch Meta Ad Library by keyword to find matching ads, with filters for language, country, and status. Returns ad details including page name, platforms, and creative snapshots.
Instructions
Searches the Meta Ad Library by keyword and returns matching ads. Supports filtering by language with a 2-letter code such as EN or ES. Each result includes ad_archive_id, page_name, is_active, publisher_platform, and a snapshot with body text, images, videos, and cta_text. Both GET and POST are supported. Use GET for normal requests. If the cursor becomes too large after extensive pagination, use POST and send the same parameters in the JSON body. Potentially consumes paid API credits; requires confirm=true. Read-like POST requests do not publish to social platforms.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| trim | No | Set to true for a trimmed down version of the response | |
| query | Yes | Keyword to search for | |
| cursor | No | Cursor to paginate through results | |
| status | No | Status of the ad. Defaults to ACTIVE. | |
| account | No | Named private ScrapeCreators account; selects credentials, not a remote account ID. | |
| ad_type | No | Search for all ads or only political and issue ads | |
| confirm | No | Must be true for the specific approved credit-consuming research call. | |
| country | No | This can only be one country. It has to be the 2 letter code for the country. It defaults to ALL. | |
| sort_by | No | Sort by impressions (high to low), or Most Recent (relevancy_monthly_grouped). Defaults to impressions. | |
| end_date | No | Impressions end date. Needs to be in YYYY-MM-DD format. | |
| language | No | Language to filter ads on. Needs to be a 2 letter language code, such as EN, ES, or FR. | |
| media_type | No | Media type of the ad. Defaults to ALL. Meme just means the ad has text and an image. No clue why they call it meme. | |
| start_date | No | Impressions start date. Needs to be in YYYY-MM-DD format. | |
| search_type | No | If you want to search by exact phrase or not |