![Facebook ad library scraper avatar](https://images.apifyusercontent.com/P0g3oK3LUlMd_3jWnM4KBXWNQC6EfaaWeDHLiIakX6I/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS9YdGFXRmhidGZ4eXpxckZtZC9aaEcyTXJNdThMTXBTNktrcS1mYWNlYm9vay5qcGVn.webp)
3 days trial then $30.00/month - No credit card required now
![Facebook ad library scraper](https://images.apifyusercontent.com/P0g3oK3LUlMd_3jWnM4KBXWNQC6EfaaWeDHLiIakX6I/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS9YdGFXRmhidGZ4eXpxckZtZC9aaEcyTXJNdThMTXBTNktrcS1mYWNlYm9vay5qcGVn.webp)
Facebook ad library scraper
3 days trial then $30.00/month - No credit card required now
Scrape facebook ads search and ads run by facebook pages - Fast and lightweight
Duplicates & Limited Retrieval
Closed
Hello, there might be an issue with duplicates. When I run the scraper, most ads are recorded twice, resulting in two rows with the same adArchiveID. For example, in this run https://console.apify.com/view/runs/CdPFgTYxD12XpvHGO the only page without duplicates is Burger King UK (can it be because it's the only page with very few ads?) and a couple of ads of Burger King France.
Another issue that I have is that even if I remove the "count = 30" option, the scraper still returns a maximum of 30 ads for each Facebook page (see here https://console.apify.com/view/runs/LugB0ABslfZoWfwN8). Thank you.
![curious_coder avatar](https://apify-image-uploads-prod.s3.amazonaws.com/jodA8dKTGDWyAvdT4/fZ7gCoyjDwPpEcjrm-myAvatar.png)
Thanks for opening the issue, Let me check and get back to you
![curious_coder avatar](https://apify-image-uploads-prod.s3.amazonaws.com/jodA8dKTGDWyAvdT4/fZ7gCoyjDwPpEcjrm-myAvatar.png)
You scraped ads from same company's different region pages, so there might be some common ads in all pages ? Also, 30 ads per page limit is because it is only scraping 1st page of ads when scraping by page url. Will let you know once adding support to scrape all pages is added.
Until then you can generate ads search url for each page and scrape them separately. Let me know if you need an example
rebeccacordioli
No, even if it's the same company these pages don't have ads in common, so this is not the reason for the duplicates. In general I am confused because every time I run the scraper I have a different number of results (see the screenshot), even if some runs are just a few minutes apart and the input is exactly the same. Thanks for the suggestion of scraping search urls for each page, let me know when it will be possible to scrape more than 30 ads through the page url.
![curious_coder avatar](https://apify-image-uploads-prod.s3.amazonaws.com/jodA8dKTGDWyAvdT4/fZ7gCoyjDwPpEcjrm-myAvatar.png)
Thanks for the clarification, will continue investigating further.
![curious_coder avatar](https://apify-image-uploads-prod.s3.amazonaws.com/jodA8dKTGDWyAvdT4/fZ7gCoyjDwPpEcjrm-myAvatar.png)
Fixed in latest update
- 209 monthly users
- 18 stars
- 100.0% runs succeeded
- 17 hours response time
- Created in Aug 2023
- Modified 14 days ago