Facebook Ads Scraper avatar

Facebook Ads Scraper

Try for free

Pay $5.00 for 1,000 Campaigns

Go to Store
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.

WH

Not able to get text of an ad

Open
widened_hero opened this issue
9 days ago

According to the README, the response is supposed to include: Ad text Ad type Ad URL Ad title However, the ad text is missing in the API response.

alexey avatar

Hi!

Bug confirmed, for right now, please do not use direct ad URLs, scrape ads per page i.e. https://console.apify.com/view/runs/Bn9nAkKVTp23TZFTk - it works as expected.

Scraping single ads per direct URLs no longer gets snapshot text and the rest of the missed properties because of internal format changes in Facebook.

Will keep you informed about the progress.

WH

widened_hero

9 days ago

Hello, Thank you for fast response Is it possible to get exact ad using page? For my app I am trying to get information about 1 ad.

Thank you again

alexey avatar

Hi!

Access to your ad is somehow limited, see https://console.apify.com/view/runs/CuX1dwjjxOI3FQi1k Opening https://www.facebook.com/ads/library/?id=2324322494627392 or https://www.facebook.com/ads/library/?id=1123039336210884 work in an incognito browser, click on "Ad details" will show the ad without login.

Your ad https://www.facebook.com/ads/library/?id=513431791314316 on the "Ad details" click will show an empty popup.

So, the usual details for your ad are not available, I will check if it can be resolved by fallback; however, full details might not be available for such cases.

Please try single ads from the other pages, maybe it is a rare case when the page admin for https://www.facebook.com/ads/library/?id=513431791314316 applied extra privacy settings.

WH

widened_hero

8 days ago

Hello, just tried with different URLs, looks like that data gets to snapshot.cards sometimes, and if it gets in cards, text is present. But sometimes it is in snapshot directly. You can see it here: https://console.apify.com/view/runs/KlPgd8mCnCjZ10Jsv https://console.apify.com/actors/JJghSZmShuco4j9gJ/runs/9LCO7kPIJr10xtwVG#output Both for me open proper popup in incognito. Also, when data is in .cards it is not in snapshot.videos. For the url you provided: https://www.facebook.com/ads/library/?id=2324322494627392 And maybe you can clarify why there is a lot of elements in .cards with the same data, where do they come from

alexey avatar

Hi!

The "snapshot" forwarded as is from internal Facebook data, it is used by the Facebook web app to display the ads and ad content without "cards" should be also publicly available, I isolated your issue:

https://www.facebook.com/ads/library/?active_status=all&ad_type=all&country=ALL&is_targeted_country=false&media_type=all&search_type=page&start_date[min]=2025-02-08&start_date[max]=2025-02-10&view_all_page_id=109034698506594

150 ads in between 8-9 Feb, from search https://console.apify.com/view/runs/KxfKSgz6ybqWxr4po getting a full snapshot, for direct URL by id getting limited details.

Click on "Ad details" for the ad 513431791314316 displays an empty popup and a permanent "Not Logged In" dialog.

WH

widened_hero

6 days ago

It is weird but for me 513431791314316 is opening proper details. But as I understand cards will in not be present if this problem with popup is blocked. Can you take the text not from card, but the page that is opened without details, as you do right now for video?

weuts avatar

Hi again 😊

Sorry for the long response time. We have added to our backlog to fix this, and will keep you updated 😊

WH

widened_hero

10 hours ago

hello, Thank you for the update

Developer
Maintained by Apify

Actor Metrics

  • 486 monthly users

  • 92 bookmarks

  • >99% runs succeeded

  • 2.2 days response time

  • Created in Apr 2023

  • Modified 3 days ago