Facebook Ads Scraper avatar

Facebook Ads Scraper

Pricing

$5.00 / 1,000 results

Go to Apify Store
Facebook Ads Scraper

Facebook Ads Scraper

Scrape ads from the Meta (Facebook) Ad Library via the internal GraphQL endpoint.

Pricing

$5.00 / 1,000 results

Rating

0.0

(0)

Developer

Prabhat pankaj

Prabhat pankaj

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

8 days ago

Last modified

Categories

Share

Scrape ads from the Meta (Facebook) Ad Library. Accepts Facebook Page URLs or Meta Ad Library search URLs (with filters) and returns structured ad data.

How it works

Instead of scraping rendered HTML, this Actor queries the Ad Library internal GraphQL endpoint (AdLibrarySearchPaginationQuery) directly and paginates through results using the connection cursor. This is faster and returns the full structured snapshot for each ad.

Input

  • startUrls – one or more Facebook Page URLs or Meta Ad Library URLs.
  • resultsLimit – max ads per URL (empty = as many as possible).
  • activeStatusactive, inactive, or both (used if not in the URL).
  • sorting – default / impressions / relevance (used if not in the URL).
  • isDetailsPerAd – include per-ad detail (reach, spend, Instagram data).
  • includeAboutPage – include page About / transparency data.
  • onlyTotal – return only the total ad count per page.
  • onlyAdsNewerThan / onlyAdsOlderThan – date filters on ad start date.

Output

Each dataset item is one ad, including pageId, adArchiveId, isActive, publisherPlatform, startDateFormatted / endDateFormatted, spend, reachEstimate, and a nested snapshot object with the creative (title, body, cards, images, videos, CTA, link).

Notes

Facebook aggressively rate-limits and blocks datacenter IPs. Residential proxies are strongly recommended (configured by default).