
Facebook ad library scraper
Pricing
$0.75 / 1,000 ads

Facebook ad library scraper
Scrape facebook ads search and ads run by facebook pages - Fast and lightweight
2.2 (10)
Pricing
$0.75 / 1,000 ads
138
Monthly users
811
Runs succeeded
>99%
Response time
51 days
Last modified
2 months ago
Infinite retry when an account doesn't have ads
{ "error": "Ads not found", "errorCode": "ADS_NOT_FOUND", "url": "" }
The actor run never ends if an account doesn't have ads. Contrary to the error, the account seems to have ads?

They are not infinite retries, it will only retry 4 times per resource. If they all fail it will continue to scraping next resource. All those messages you see were eventually succeeded before they exceed 4 retries, So don't worry about it
If you think it didn't scrape urls where there were ads, provide a sample url that I can use to check
ReverseTech
They are certainly more than 4 tries, please see the screenshot. From my experience, this goes on forever (but I only left it a few hours for obvs reasons).

I see. From your screenshot it looks like an issue. But from the run you've shared, I can't find that issue.
From the run you've shared I see only 15 records which have ADS_NOT_FOUND status which is lesser than the number of search urls you've passed (34)
Please share the correct run ID so that I can check and fix it
ReverseTech
It is the same run, I just clicked on "View run" and then exported it as JSON. I can share the JSON in a private conversation if needed.

But if you open the full dataset in JSON mode by clicking on preview full data in new tab, you can see there are no duplicates in it
ReverseTech
There are. Are we both looking at the run id = 3JIM5uqhEQ7K24wx4 ?

Yes

You checked in the downloaded JSON file, may be there is a bug in apify that causes this. Try opening the full json directly on apify
ReverseTech
It's not a Apify bug as the run never stops and continues forever. All my runs right now time out after an hour. Can you please have a look?
ReverseTech
Hey, can I get an update on this? Do you want me to send you any JSON files? All my runs time out because of this. And every time I look at the file, half of the file is just this error...

Okay, just found the bug and fixed it, Thanks for being persistent about the issue and helping to identify and fix the issue
Pricing
Pricing model
Pay per resultThis Actor is paid per result. You are not charged for the Apify platform usage, but only a fixed price for each dataset of 1,000 items in the Actor outputs.
Price per 1,000 items
$0.75