Facebook Ads Scraper avatar
Facebook Ads Scraper
Try for free

Pay $5.00 for 1,000 Campaigns

View all Actors
Facebook Ads Scraper

Facebook Ads Scraper

apify/facebook-ads-scraper
Try for free

Pay $5.00 for 1,000 Campaigns

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.

Do you want to learn more about this Actor?

Get a demo
BO

It seems that it can only scrape all the ads related to the pages without considering UTMs restrictions

Closed

bendub-owner opened this issue
2 months ago

Hi there, I've tried several times to scrape only ads with the specific conditions in the UTMs such as country, date, active_status, but everytime it crawls everything related to the page id. Is there a way to enforce the UTMs restrictions?

Example, when using the URL below, the scraping ignore the conditions of the UTMS except the pageID.

https://www.facebook.com/ads/library/?active_status=all&ad_type=all&country=FR&view_all_page_id=6466223654&sort_data[direction]=desc&sort_data[mode]=relevancy_monthly_grouped&start_date[min]=2024-06-01&start_date[max]=&search_type=page&media_type=all

alexey avatar

Hi! Thanks for letting us know, looks like Facebook changed internal formats for search and some query params should be fixed. Will check in deeper details and let you know.

BO

bendub-owner

2 months ago

Indeed they changed a bit the structure and I think most importantly they know display ads for the last few years meaning that without the query params we have everytime to scrape everything which is not ideal. Thanks a lot for looking into it.

alexey avatar

Hi! Ad Library migrated to new data format, I hot-fixed ads, new data source is in new format, so remapped what was possible (main properties), for the rest please check and follow new format. New query expected to handle all parameters correctly.

Next step is to restore page info, will keep you informed about the progress.

alexey avatar

Hi again, please check latest version, URL parameters supported properly now.

I'm going to close this issue for now, but if there's still anything unclear, please, let us know. We appreciate customer feedback!

Developer
Maintained by Apify
Actor metrics
  • 302 monthly users
  • 40 stars
  • 100.0% runs succeeded
  • 5 days response time
  • Created in Apr 2023
  • Modified 1 day ago