Facebook Ads Scraper avatar
Facebook Ads Scraper

Pricing

$5.00 / 1,000 campaigns

Go to Store
Facebook Ads Scraper

Facebook Ads Scraper

Developed by

Apify

Apify

Maintained by Apify

Extract advertising data from one or multiple Facebook Pages. Get page details, reach estimates, publisher platforms, report count, number of impressions, ad IDs, timestamps, and more. Download Facebook ads data in JSON, CSV, and Excel and use it in apps, spreadsheets, and reports.

4.5 (11)

Pricing

$5.00 / 1,000 campaigns

133

Total users

7.6k

Monthly users

748

Runs succeeded

>99%

Issue response

4 days

Last modified

8 days ago

DE

Feature Request — Add excludeDisplayFormat or mediaTypeFilter to input JSON for Facebook Ads Library Scraper

Closed

devin3480 opened this issue
7 days ago

Currently, many of the ads returned are of the type "displayFormat": "DCO", which results in unusable or empty creative content (missing captions, images, or videos). Since these ads cannot be properly analyzed or used downstream, we need to filter them out manually after scraping.

I would like to suggest a new optional field in the input JSON, such as:

"excludeDisplayFormat": ["DCO"] or

"mediaTypeFilter": "video"

This would allow the actor to ignore DCO-format ads at the dataset generation level, returning only relevant ads with rich media and interpretable copy.

alexey avatar

Hi!

From your run, the sample DCO ad is https://www.facebook.com/ads/library/?id=1197596962162067

In the dataset https://api.apify.com/v2/datasets/WtWH1fIPmtenbfzoR/items?clean=true&format=json all details are scraped as displayed in the library, including caption and full-sized image

So no reason to exclude it. Scraping is correct, please filter out the dataset using third-party tools or integration.

I will close the issue now, but if there is anything else we can help with, please let us know.