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
CH

API Error - "No public data" for Valid URL

Open

checkoutclub opened this issue
a month ago

The API is returning the error "No public data" for the following URL:

[ { "inputUrl": "https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=ALL&media_type=all&search_type=page&source=page-transparency-widget&view_all_page_id=114654381906337&start_date[min]=2024-07-17&start_date[max]=2024-08-14", "error": "No public data" } ]

However, there are public ads being displayed on the searched URL. Could you please check the reason for this error?

Thank you!

jakubkonecny avatar

Hello, thank you for your feedback, you are right, there is public info that is currently not accessible through the graphql API that the actor uses. We will investigate futher and see if the Actor can get the information by some other way, and we'll keep you updated on our findings :)

alexey avatar

Hi!

For right now please use URL format https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=ALL&media_type=all&search_type=page&start_date[min]=2024-07-17&start_date[max]=2024-08-14&view_all_page_id=114654381906337 - somehow URL parameter &source=page-transparency-widget breaks data flow

When its removed actor works as expected: https://console.apify.com/view/runs/s7gXpM4POJUcP2aab (27 ads for sample URL in the browser and 27 dataset items scraped)

CH

checkoutclub

a month ago

[ { "inputUrl": "https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=BR&media_type=all&search_type=page&source=fb-logo&view_all_page_id=101566656646581&start_date[min]=2024-07-23&start_date[max]=2024-08-20", "error": "No public data" } ]

Indeed, all URLs that contain the 'source' parameter have been causing issues with the actor, resulting in 'No public data' being returned. Could you handle this on the APIFY side, by recognizing these parameters that might eventually cause the issue?

For now, I'll need to create a JavaScript validation to remove this parameter before sending it to the actor! I don't think this is a good long-term solution!

Do you have a timeline for resolving this on your side?

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