Search
facebook_ad_library_search_postSearch Facebook's Ad Library by keyword to retrieve matching ads. Filter by language, country, status, or media type for targeted ad research.
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 | No | 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. | |
| payload | No | Complete JSON request body instead of body flags. Preserves current endpoint fields and values. | |
| 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 | |
| payload_file | No | Regular local JSON body file, at most 5 MB. Cannot be mixed with body flags or payload. |