VOOZH about

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

⇱ Facebook Ad Library Scraper - Competitor Ads & Creatives Β· Apify


πŸ‘ Facebook Ad Library Scraper - Competitor Ads & Creatives avatar

Facebook Ad Library Scraper - Competitor Ads & Creatives

Pricing

from $1.00 / 1,000 ad scrapeds

Go to Apify Store

Facebook Ad Library Scraper - Competitor Ads & Creatives

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

Pricing

from $1.00 / 1,000 ad scrapeds

Rating

0.0

(0)

Developer

πŸ‘ Md Jakaria Mirza

Md Jakaria Mirza

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

4 days ago

Last modified

Share

Facebook Ad Library Scraper - Competitor Ads, Creatives & Spend

Scrape the public Facebook Ad Library in minutes. This Facebook Ad Library scraper extracts ad creatives, copy, headlines, CTAs, spend ranges, impressions, run dates, and targeting info from facebook.com/ads/library for any keyword, advertiser, or Page ID. Export to JSON, CSV, Excel, or HTML, or pull via the Apify API β€” no login and no API key required, because the Ad Library is a public ad transparency tool.

Built with Node.js 20, TypeScript, and the Apify SDK. It handles pagination, scrolling, and cookie consent automatically, deduplicates by ad ID, and uses Apify residential proxies with retries so runs stay reliable and repeatable.

What It Extracts

  • adId β€” unique Facebook ad identifier
  • advertiserPageName β€” name of the advertiser's Facebook page
  • advertiserPageId β€” Facebook Page ID
  • advertiserPageUrl β€” direct link to the advertiser's page
  • adCreativeText β€” primary ad body text
  • adHeadline β€” ad headline
  • adDescription β€” ad description text
  • ctaButtonText β€” call-to-action button text
  • destinationUrl β€” link the ad points to
  • adType β€” image, video, carousel, or text
  • imageUrl β€” primary image URL
  • imageUrls β€” all image URLs
  • videoThumbnailUrl β€” video thumbnail
  • videoUrl β€” direct video URL
  • adStartDate β€” when the ad started running
  • adEndDate β€” when the ad stopped (if inactive)
  • impressionsRange β€” viewership range (e.g. 10K-50K)
  • spendRange β€” estimated spend in USD
  • countriesRunningIn β€” target countries
  • languages β€” ad languages
  • platformsList β€” where the ad runs
  • fundingEntity β€” funding entity (political ads)
  • paidForByText β€” "Paid for by" disclosure
  • targetingInfo β€” age, gender, location (if disclosed)
  • adLibraryUrl β€” direct link to the ad in the library
  • searchQuery β€” original search keyword
  • scrapedAt β€” extraction timestamp

Use Cases

  1. Competitor ad research β€” discover which ads competitors are running, their messaging, and creative formats, then benchmark against your own.
  2. Creative intelligence β€” analyze high-performing ad copy, headlines, CTAs, and image/video formats across your industry.
  3. Political ad monitoring β€” track political advertising spend, funding entities, "Paid for by" disclosures, and targeting across elections.
  4. Spend and impressions benchmarking β€” pull spend ranges and impression ranges to estimate competitor budgets and reach.
  5. Brand and trend tracking β€” monitor how brands appear in the Ad Library over time and spot new campaigns as they launch.

Pricing

This Actor uses Apify Pay Per Event pricing. You pay only for ad records successfully saved to the dataset β€” failed, blocked, or empty results are not billed.

Event namePrice per event1,000 ads10,000 ads
ad-scraped$0.001$1.00$10.00

Input

FieldTypeRequiredDefaultDescription
keywordsarrayno["Nike"]Search keywords to find ads. Searched in sequence.
pageIdsarrayno[]Numeric Facebook Page IDs to scrape ads for directly.
advertiserNamesarrayno[]Advertiser or Page names to search for.
countrystringnoALLISO 3166-1 alpha-2 code (e.g. US, GB, DE) or ALL.
adCategorystringnoallOne of all, issues_elections_politics, housing, employment, credit, political.
adStatusstringnoactiveOne of active, inactive, all.
platformsarraynoall fourfacebook, instagram, messenger, audience_network.
maxResultsintegerno20Max ads per search query (0 = unlimited, up to 1000).
proxyConfigurationobjectnoResidentialApify proxy settings. Residential recommended.

Example Input

{
"keywords":["Nike"],
"country":"US",
"adStatus":"active",
"maxResults":50,
"proxyConfiguration":{
"useApifyProxy":true,
"apifyProxyGroups":["RESIDENTIAL"]
}
}

How to Scrape the Facebook Ad Library (Step by Step)

  1. Click Try for free / Run.
  2. Enter search keywords, advertiser names, or numeric Page IDs.
  3. Optionally set a country, adCategory, adStatus, and platforms filter.
  4. Set maxResults (start small, like 20, to test).
  5. Run, then export the results as JSON, CSV, Excel, or HTML, or pull them via the Apify API.

Sample Output

{
"adId":"1234567890123456789",
"advertiserPageName":"Nike",
"advertiserPageId":"150849945690582",
"advertiserPageUrl":"https://www.facebook.com/profile.php?id=150849945690582",
"adCreativeText":"Just Do It. New collection available now.",
"adHeadline":"Shop Now",
"adDescription":"Explore the latest Nike styles",
"ctaButtonText":"Shop Now",
"destinationUrl":"https://www.nike.com/new-releases",
"adType":"image",
"imageUrl":"https://scontent.xx.fbcdn.net/v/example.jpg",
"imageUrls":["https://scontent.xx.fbcdn.net/v/example.jpg"],
"videoThumbnailUrl":null,
"videoUrl":null,
"adStartDate":"2024-01-15",
"adEndDate":null,
"impressionsRange":"10K-50K",
"spendRange":"$1,000-$5,000",
"countriesRunningIn":["US"],
"languages":["en"],
"platformsList":["facebook","instagram"],
"fundingEntity":null,
"paidForByText":null,
"targetingInfo":{
"age":null,
"gender":null,
"location":null
},
"adLibraryUrl":"https://www.facebook.com/ads/library/?id=1234567890123456789",
"scrapedAt":"2024-06-10T12:00:00.000Z",
"searchQuery":"Nike"
}

How It Works

  1. Validates the input and builds Ad Library search URLs from your keywords, advertiser names, or Page IDs.
  2. Navigates the public Ad Library, handling cookie consent, scrolling, and pagination automatically.
  3. Extracts and cleans each ad's fields, falling back to null when optional data is not disclosed.
  4. Deduplicates results by adId.
  5. Charges ad-scraped only after a clean record is saved, then writes it to the Apify Dataset.

Known Limits

  • Many fields are conditional. spendRange, impressionsRange, fundingEntity, paidForByText, and targetingInfo are typically populated only for political/issue ads where Meta discloses them; commercial ads often return null for these.
  • The Ad Library exposes up to roughly 1,000 ads per search, so maxResults is capped at 1000.
  • Field availability and layout depend on what Meta makes public and can change if the Ad Library changes.

Ethics & Legal

This Actor scrapes public data only from Facebook's Ad Library, a transparency tool Meta provides for public-interest research and ad transparency. No Facebook login or authentication is used and no personal data is collected. You are responsible for complying with Meta's terms, privacy laws, GDPR, and local regulations wherever you use the data.

License

Apache-2.0. See LICENSE.

You might also like

Meta Ad Library Scraper β€” Ad Creatives, Spend & Targeting

khadinakbar/meta-ad-library-scraper

Extract Facebook & Instagram ad creatives, spend ranges, impressions, targeting data, and landing pages from Meta Ad Library $5.00/1K.

27

Facebook Ads Library Scraper

simpleapi/facebook-ads-library-scraper

Facebook Ads Library Scraper extracts ads from the Facebook Ads Library, capturing ad creatives, texts, impressions, spend ranges, regions, advertiser info, start/end dates, and transparency data. Ideal for competitor research, ad monitoring, political ad tracking, and automated marketing insights.

Facebook Ads Library Scraper

scrapio/facebook-ads-library-scraper

Scrapes ads from the Facebook Ads Library, capturing ad creatives, headlines, texts, spend ranges, impressions, advertiser details, launch dates, regions, and URLs. Ideal for competitor analysis, ad research, market insights, and automated creative tracking

Facebook Ads Library Scraper

api-empire/facebook-ads-library-scraper

Facebook Ads Library Scraper extracts ads from the Facebook Ads Library with full details. Capture creatives, copy, spend ranges, impressions, targeting data, advertiser info, and timestamps. Ideal for competitor research, campaign analysis, and structured ad intelligence workflows.

74

5.0

Facebook Ads Library Scraper

scrapier/facebook-ads-library-scraper

Extract ad data with the Facebook Ads Library Scraper. Retrieve active and inactive ads, creatives, targeting info, impressions, and engagement metrics. Perfect for competitor analysis, market research, and ad strategy insights. Fast, reliable, and scalable for bulk ad data extraction.

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 Ads Library Scraper

scrapapi/facebook-ads-library-scraper

πŸ“Š Facebook Ads Library Scraper pulls public ad dataβ€”creatives, copy, advertiser, dates, regions, and spend/impressions (when available) from Meta’s Ad Library. πŸš€ Perfect for competitor research, ad tracking & compliance. Export CSV/JSON, schedule runs, and automate.

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.

601

3.9

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

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