Meta Ad Library Scraper avatar

Meta Ad Library Scraper

Pricing

from $5.00 / 1,000 results

Go to Apify Store
Meta Ad Library Scraper

Meta Ad Library Scraper

Scrape ads from Meta Ad Library by keyword search or from Facebook page URLs. Extracts ad creatives, CTAs, platforms, and targeting data.

Pricing

from $5.00 / 1,000 results

Rating

0.0

(0)

Developer

Admo Solutions

Admo Solutions

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

12 hours ago

Last modified

Categories

Share

Scrape ads from Meta's Ad Library using Playwright. Supports two modes:

  1. Keyword search — Search the Ad Library by keyword
  2. Facebook page scraping — Scrape all ads from specific Facebook pages

Extracts ad creatives, CTAs, platforms, and targeting data. No API key required.

Features

  • Dual-mode — Ad Library search + Facebook page scraping
  • Relay cache extraction — Parses embedded GraphQL data for complete field coverage
  • Residential proxy support — Built-in proxy rotation
  • Deduplication — Automatically deduplicates by ad archive ID
  • Clean output — Structured JSON dataset

Input

FieldDescriptionDefault
URLsAd Library or Facebook page URLs[]
Search TermKeyword for Ad Library search (if URLs empty)""
Country CodeISO 2-letter country code"ALL"
Ad TypeFilter by ad category"ALL"
Active StatusActive/Inactive/All"ALL"
Max ItemsMaximum ads per source100
Max ScrollsScroll iterations20
Scroll DelayDelay between scrolls (ms)2000

Supported URL formats

  • https://www.facebook.com/ads/library/?active_status=all&ad_type=all&country=US&q=skincare
  • https://www.facebook.com/ZapierApp
  • https://www.facebook.com/profile.php?id=123456
  • facebook.com/YourPage

Output

Each ad contains:

FieldDescription
adArchiveIdUnique ad identifier
pageIdFacebook page ID
pageNameAdvertiser page name
pageUrlPage URL
bodyAd text content
titleAd headline
linkUrlCTA destination URL
ctaTextCTA button text
ctaTypeCTA type (SHOP_NOW, LEARN_MORE, etc.)
startDateWhen ad started running
isActiveWhether ad is active
platformsWhere ad runs (Facebook, Instagram, etc.)
mediaTypeAd format (image, video, carousel)
sourceWhich source this ad came from

Usage

Search by keyword

{
"searchTerm": "skincare",
"country": "US",
"maxItems": 100
}

Scrape from Facebook pages

{
"urls": [
"https://www.facebook.com/ZapierApp",
"https://www.facebook.com/ceraveusa"
],
"maxItems": 50
}

Mixed mode

{
"urls": [
"https://www.facebook.com/ads/library/?active_status=all&q=skincare&country=US",
"https://www.facebook.com/ZapierApp"
],
"maxItems": 100
}

Cost

  • 100 ads: ~$0.05-0.15 compute
  • 1000 ads: ~$0.50-1.50 compute
  • Residential proxy additional

Disclaimer

This scraper only extracts publicly available data from Meta Ad Library. Users are responsible for complying with applicable laws and regulations.