Company Ads
facebook_ad_library_company_ads_postRetrieve all ads a company runs on Facebook and Instagram via the Meta Ad Library, with filters for country, media, date, and language; use POST for large cursors.
Instructions
Fetches all ads currently running for a specific company from the Meta Ad Library. Each ad includes ad_archive_id, page_name, is_active, publisher_platform, and a snapshot with body, images, videos, and display_format. Supports filtering by country, media_type, date range, and language with cursor-based pagination. Both GET and POST are supported. 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 | |
| cursor | No | Cursor to paginate through results | |
| pageId | No | The companies ad library page id. You can get this with my Search For Companies Endpoint. Can either use this or companyName | |
| status | No | Status of the ad. Defaults to ACTIVE. | |
| account | No | Named private ScrapeCreators account; selects credentials, not a remote account ID. | |
| 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 | End date to search for. Format: YYYY-MM-DD | |
| language | No | Language to filter ads on. Needs to be 2 letter language code, ie EN, ES, FR, etc | |
| media_type | No | Media type of the ad. Defaults to ALL. Meme refers to ads with image and text. Not sure why they call it meme. | |
| start_date | No | Start date to search for. Format: YYYY-MM-DD | |
| companyName | No | The name of the company. Can either use this or pageId | |
| payload_file | No | Regular local JSON body file, at most 5 MB. Cannot be mixed with body flags or payload. |