![Facebook ad library scraper avatar](https://images.apifyusercontent.com/T2bTOZfzeSw-LQg79D1q5IhrugqFgVEiZTLJGGNlwRc/rs:fill:250:250/cb:1/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS9YdGFXRmhidGZ4eXpxckZtZC9aaEcyTXJNdThMTXBTNktrcS1mYWNlYm9vay5qcGVn.webp)
Facebook ad library scraper
Pay $0.75 for 1,000 ads
![Facebook ad library scraper](https://images.apifyusercontent.com/T2bTOZfzeSw-LQg79D1q5IhrugqFgVEiZTLJGGNlwRc/rs:fill:250:250/cb:1/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS9YdGFXRmhidGZ4eXpxckZtZC9aaEcyTXJNdThMTXBTNktrcS1mYWNlYm9vay5qcGVn.webp)
Facebook ad library scraper
Pay $0.75 for 1,000 ads
Scrape facebook ads search and ads run by facebook pages - Fast and lightweight
Run of 5700 ads stopped at 1100 scraped
Multiple recent runs have scraped many fewer ads than expected. This run, for instance, scraped only 1100 when there were 5700 ads in the total set: yqZS7HcKiXRMvRChc (to be explicit, this is the Run ID for this run).
The run completes saying all results have been returned, which is clearly not the case. I set the limit at 5800 in the case above, so that is also not the issue.
Alpmedia
Faced the same issues
grinning_jobber
This is a critical application for our daily processes. A quick response would be appreciated if possible, as this is causing key workflows in our business to be greatly degraded.
![curious_coder avatar](https://apify-image-uploads-prod.s3.amazonaws.com/jodA8dKTGDWyAvdT4/fZ7gCoyjDwPpEcjrm-myAvatar.png)
Sent an update which should make it better. Waiting for feedback
![curious_coder avatar](https://apify-image-uploads-prod.s3.amazonaws.com/jodA8dKTGDWyAvdT4/fZ7gCoyjDwPpEcjrm-myAvatar.png)
Sent one more update with fix
grinning_jobber
Thank you for the update. With the most recent update this is now only returning between 15-30 results for a 3.5k ad search.
![curious_coder avatar](https://apify-image-uploads-prod.s3.amazonaws.com/jodA8dKTGDWyAvdT4/fZ7gCoyjDwPpEcjrm-myAvatar.png)
Please share run
grinning_jobber
Run removed after initial send.
![curious_coder avatar](https://apify-image-uploads-prod.s3.amazonaws.com/jodA8dKTGDWyAvdT4/fZ7gCoyjDwPpEcjrm-myAvatar.png)
Fixed
grinning_jobber
Thank you, we will test again.
grinning_jobber
Just tested again on a 2500-length ad search and only got through 1299 of them. Seems to be better than the last version but not getting to all of the ads. Here's the run: https://console.apify.com/view/runs/OOQbxC37VhlL3MNOd
We also got this message: Actor is unusually slow. Please report the issue to the developer or try with different input
![curious_coder avatar](https://apify-image-uploads-prod.s3.amazonaws.com/jodA8dKTGDWyAvdT4/fZ7gCoyjDwPpEcjrm-myAvatar.png)
You got that message because you've assigned 2GB Ram which is too much when scraping a single ads search url. This will reduce the profit margins to us.
Just reduce the RAM under Run options to 512MB if you are scraping only 1 url per run.
![curious_coder avatar](https://apify-image-uploads-prod.s3.amazonaws.com/jodA8dKTGDWyAvdT4/fZ7gCoyjDwPpEcjrm-myAvatar.png)
You can resurrect your last run to resume scraping with reduced RAM
grinning_jobber
Got it, I will try that now.
grinning_jobber
Resurrected the run at 512MB and got only up to 1995 out of the 2500 (and I'm unsure if the extra ~600 added after the resurrection are duplicates or not either). Same run, of course: https://console.apify.com/view/runs/OOQbxC37VhlL3MNOd
![curious_coder avatar](https://apify-image-uploads-prod.s3.amazonaws.com/jodA8dKTGDWyAvdT4/fZ7gCoyjDwPpEcjrm-myAvatar.png)
Finally managed to get it scrape all 5k+ ads. Here is the run URL: https://console.apify.com/actors/XtaWFhbtfxyzqrFmd/runs/jk4yH06NnIwnk5IyY#log
Actor Metrics
884 monthly users
-
88 stars
>99% runs succeeded
4.6 days response time
Created in Aug 2023
Modified 19 days ago