Actor picture

Facebook Ads Scraper

alexey/facebook-page-ads

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.

No credit card required

Author's avatarAlexey Udovydchenko
  • Modified
  • Users283
  • Runs15,024
Actor picture
Facebook Ads Scraper

Which Facebook ads or pages do you want to scrape?

startUrls

Required

array

Add a URL of a Facebook Page or Facebook Ad. You can add multiple URLs.

How many scrolls per page do you expect?

scrollsAmount

Optional

integer

Every page ads feed scroll should contain 30 ads. The ads count starts with scroll 0 which will return the initial set of 30 ads. Scroll 1 will return another 30 so you can expect 60 in total, and so on.

I want only the total count of ads per page

onlyTotal

Optional

boolean

If this feature is used, only total count of ads will be saved per page scroll. The output will be saved as a single dataset item per page.

Proxy configuration

proxyConfig

Optional

object

A proxy server is required to run this actor! Either use Apify residential proxy, or provide your own proxy servers. Datacenter proxies will not work.

Max retries

maxRequestRetries

Optional

integer

Maximum number of retries when scraping fails.