VOOZH about

URL: https://apify.com/akash9078/facebook-ad-library-scraper

โ‡ฑ Facebook Ad Library Scraper ยท Apify


Pricing

from $0.00005 / actor start

Go to Apify Store

Facebook Ad Library Scraper

Scrape Facebook Ad Library data including ad creatives, targeting info, performance metrics, and advertiser details. Extract ads by keyword, advertiser, or country for competitive research and marketing analysis.

Pricing

from $0.00005 / actor start

Rating

0.0

(0)

Developer

๐Ÿ‘ Akash Kumar Naik

Akash Kumar Naik

Maintained by Community

Actor stats

0

Bookmarked

3

Total users

0

Monthly active users

3 months ago

Last modified

Share

Facebook Ad Library Scraper (Apify Actor)

Browser-based Facebook Ad Library scraper for competitor ad research, marketing intelligence, and transparency analysis.

This Actor uses Playwright (no private API) to extract ads from Meta Ad Library search results and deliver structured output in Apify Dataset format.

Why use this scraper

  • Scrape Facebook Ad Library with real browser rendering
  • Collect ad metadata, creatives, links, and snapshot URLs
  • Filter by keyword, ad type, status, media type, and country
  • Run at scale with proxy/session support
  • Monetize efficiently with Apify pay-per-event pricing

Best use cases

  • Competitor ad monitoring
  • Creative trend tracking
  • Paid social market research
  • Brand safety and compliance workflows
  • Regional ad intelligence by country

Key features

  • Browser scraping mode for dynamic Ad Library pages
  • Keyword search with unordered or exact phrase matching
  • GEO targeting through browserCountry (for example US, IN, GB)
  • Pagination-by-scroll extraction with stability stop conditions
  • Duplicate suppression by libraryId
  • Structured dataset and output schemas for downstream automation

Input configuration

Primary fields:

  • searchTerms
  • searchType
  • adType
  • adActiveStatus
  • browserCountry
  • mediaType
  • maxItems
  • maxScrolls
  • startUrls (optional custom Ad Library URLs)
  • proxyConfiguration

Input schema path: .actor/input_schema.json

Output data

Each dataset item contains:

  • source
  • retrievedAt
  • searchTerms
  • ad.libraryId
  • ad.status
  • ad.dateRange
  • ad.pageName
  • ad.adBody
  • ad.domain
  • ad.cta
  • ad.adSnapshotUrl
  • ad.links
  • ad.images
  • ad.videos
  • ad.cardText
  • ad.sourceUrl

Schemas:

  • Input schema: .actor/input_schema.json
  • Dataset schema: .actor/dataset_schema.json
  • Output schema: .actor/output_schema.json

Run summary is stored in key-value store record OUTPUT.

Proxy best practices

  • On Apify platform, keep proxyConfiguration.useApifyProxy enabled for stability.
  • Use Apify Proxy groups/country settings according to your collection goals.
  • The Actor uses session pool and cookie persistence to reduce blocking risk.

Pay-per-event (PPE) optimization

This Actor is optimized for pay-per-event pricing with:

  • apify-actor-start charged once per run ($0.00005)
  • ad-item charged per stored ad record ($0.01)

Behavior:

  • Stops gracefully when event charge limits are reached
  • Exposes charge counts and limit metadata in run summary

Default event config is stored in .actor/pay_per_event.json. Set event pricing in Apify Console using the exact event names above.

Deploy to Apify

apify login
apify push

Local development

npminstall
node--check src/main.js
npm start

Notes:

  • Provide either searchTerms or at least one entry in startUrls.
  • Keep browserCountry as a 2-letter ISO country code such as US, IN, or GB.
  • The Docker build now excludes local storage/ data and node_modules/ to keep Apify builds smaller and reproducible.

FAQ

Does this use an official Facebook API?

No. It is a browser scraper that extracts public Ad Library data from rendered pages.

Can I collect ads by country?

Yes. Set browserCountry to a 2-letter country code.

Is the output ready for BI tools and automation?

Yes. Data is stored in Apify Dataset JSON format with stable field names and schema definitions.

Compliance

  • Meta Ad Library content is governed by Meta terms and policies.
  • Use this Actor only for lawful and compliant research or analytics workflows.

You might also like

Facebook Ad Library Scraper

lentic_clockss/facebook-ad-library-scraper

Scrape Facebook Ad Library for ad creatives, spend data, advertiser info, and targeting. Search any keyword, advertiser, or country. No login needed โ€” fully public data.

Facebook Ads Library Scraper

scraper-engine/facebook-ads-library-scraper

The Facebook Ads Library Scraper extracts ad data from Facebookโ€™s Ad Library, including advertiser details, ad text, impressions, and targeting info. Ideal for ad research, marketing insights, and competitor analysis, it delivers clean, structured data for analysis or integration via API.

๐Ÿ‘ User avatar

Scraper Engine

399

4.2

Facebook Ad Library Scraper

scraper-engine/facebook-ad-library-scraper

Facebook Ad Library Scraper extracts ads from the Facebook Ad Library. It collects ad text, advertiser names, ad creatives, start dates, platforms, and engagement details. Ideal for competitor analysis, ad research, marketing insights, and tracking advertising trends.

๐Ÿ‘ User avatar

Scraper Engine

2

Facebook Ads Library Scraper

parseforge/facebook-ads-library-scraper

Collect ads from Meta Ad Library using search URLs, keywords, or Facebook page URLs. Export structured results with ad creatives, images, videos, advertiser details, platform targeting, transparency data, and performance metrics to support competitive analysis and market research.

Facebook Ad Library Scraper

corner_cutter/facebook-ad-library-scraper

Comprehensive Meta ad library tool that fetches all ads for a given Facebook Ad Library URL or page URL. Extract ad creatives, copy, targeting info, and more.

605

3.9

LinkedIn Ads Scraper

dz_omar/linkedin-ads-scraper

๐Ÿ” Extract comprehensive LinkedIn ads data from the Ad Library. Get ad creatives, headlines, copy, advertiser info, and targeting details. Perfect for competitive intelligence, ๐Ÿ“ˆ market research, and ad campaign analysis. Supports keyword search, date filtering, and multi-country targeting.

๐Ÿ‘ User avatar

FlowExtract API

82

5.0

Facebook Ad Library Scraper

agenscrape/facebook-ad-library-scraper

Extract ads from Facebook Ad Library instantly. Get complete ad details, images, videos, page info, impressions, and targeting data. Just paste the Ad Library URL and run. Fast, reliable extraction for competitor research and market analysis.

Facebook Ad Library Scraper - Competitor Ads & Creatives

fascinating_lentil/facebook-ad-library-scraper

Scrape ads from the public Facebook Ad Library. Extract ad creatives, text, headlines, spend ranges, impressions, targeting info, and more.

๐Ÿ‘ User avatar

Md Jakaria Mirza

2

Facebook Ad Library Scraper

scrapesmith/facebook-ad-library-scraper

Scrape the Facebook Ad Library at scale. Extract ad text, images, videos, landing pages, spend ranges, impressions, advertiser info and more. Filter by keyword, advertiser, country, date range, media type. No login or Facebook account needed. Export to JSON, CSV, Excel.

Facebook Ads Library Scraper API

api_creators/facebook-ads-library-scraper-api

$1 per 1000 ads! Scrape Facebook Ad Library: Extract ad data, copy & creatives from FB & Instagram. Powerful Facebook Ads Scraper for competitor research & ad intelligence. Search by keyword or Page ID. Export JSON, CSV, or Excel. Fast, reliable, and cheap Facebook Ad Library API.

148

5.0