Facebook Ads Library avatar

Facebook Ads Library

Pricing

$0.50 / 1,000 results

Go to Apify Store
Facebook Ads Library

Facebook Ads Library

๐Ÿงฒ ONLY 0.5$/1000 Results : Scrape Facebook Ad Library at scale. Extract ads, creatives, videos, CTAs, links & platforms. Enable Ad Details for EU reach, demographics & audience targeting. Multi-URL, auto-pagination, MCP ready

Pricing

$0.50 / 1,000 results

Rating

5.0

(1)

Developer

Data Xplorer

Data Xplorer

Maintained by Community

Actor stats

0

Bookmarked

76

Total users

15

Monthly active users

14 days ago

Last modified

Share

๐ŸŽฏ Facebook Ads Library Scraper โ€” Meta Ad Library Data, Reach, Demographics & Targeting

Scrape the Meta (Facebook) Ads Library without an API key. This Facebook Ads Library Scraper extracts competitor ads, creative assets, ad spend transparency, and detailed demographic reach into clean JSON, CSV, or Excel โ€” ready for competitive intelligence, media planning, and creative research.

Whether you need competitor ad monitoring, audience targeting insights, EU reach & demographic breakdowns, or a creative swipe file, this tool collects and structures everything in one run: no scraping infrastructure, no proxies, no maintenance on your side.

Facebook Ad Library Scraper

๐ŸŽฏ What can you use the Facebook Ads Library Scraper for?

  • ๐Ÿ” Competitor intelligence: monitor what ads competitors run right now, and how their creative strategy evolves
  • ๐Ÿ“Š Media buying & planning: analyze reach by age, gender, and country to benchmark or refine your own targeting
  • ๐ŸŽจ Creative research: build a swipe file of high-performing ad creatives across formats (image, video, carousel)
  • ๐Ÿข Brand safety & compliance: track who is running ads mentioning your brand, and audit payer/beneficiary transparency
  • ๐Ÿ“ˆ Market research: compare advertising strategies across countries and industries
  • ๐Ÿค– AI agents & LLM workflows: feed structured ad data into your agents via MCP for automated competitive reporting

๐Ÿ’Ž Why choose this Facebook Ads Library Scraper?

  • ๐Ÿš€ Fast & reliable: advanced extraction engine built for consistent, high-quality results at scale
  • ๐Ÿ“Š Complete ad data: creative content, images, videos, CTAs, links, platforms, and publication dates in every run
  • ๐Ÿ”ฌ Ad Details mode: unlock EU reach, demographics, age ร— gender breakdowns, and full targeting data on demand
  • ๐Ÿ“„ Auto-pagination: fetches every page of results automatically โ€” no manual scrolling, no missed ads
  • ๐ŸŽฏ Multi-URL support: scrape multiple pages, brands, or search queries in a single run
  • ๐Ÿ–ผ๏ธ Smart media extraction: images, video thumbnails, and HD/SD video URLs across all ad formats
  • ๐Ÿ›ก๏ธ Anti-blocking built in: residential proxy support for reliable, uninterrupted access
  • ๐Ÿค– MCP-ready: use it as a tool for Claude, ChatGPT, or any AI agent via the Apify MCP Server

๐Ÿ”ฎ How it works

1. ๐Ÿ”— Provide Ad Library URLs

Paste one or more Facebook Ad Library URLs. You can scrape:

  • A specific page's ads โ€” via view_all_page_id
  • Search results โ€” via the q keyword parameter
  • Filtered results โ€” active/inactive, country, media type

2. ๐Ÿ“ฆ Set your limits

Choose how many ads to scrape (default: 100, set 0 for unlimited).

3. ๐Ÿ”ฌ Enable Ad Details (optional)

Turn on fetchDetails to enrich each ad with:

  • ๐Ÿ“ˆ EU total reach
  • ๐Ÿ‘ฅ Demographic breakdowns (age ร— gender ร— country)
  • ๐ŸŽฏ Audience targeting (age range, gender, locations)
  • ๐Ÿ’ผ Payer & beneficiary transparency data

4. โšก Run & export

Results are pushed incrementally โ€” start using the data before the run finishes. Export to JSON, CSV, Excel, or pull it via the API.

๐Ÿ“‹ Quick start

  1. Click Try for free / open the Actor in Apify Console.
  2. Paste one or more Facebook Ad Library URLs (page or search).
  3. Set maxAds, and enable fetchDetails if you need reach & demographics.
  4. Click Start and download your data as JSON, CSV, or Excel.

Input parameters

ParameterTypeDefaultDescription
urlsarrayโ€”One or more Facebook Ad Library URLs to scrape
maxAdsnumber100Maximum ads to scrape (0 = unlimited)
fetchDetailsbooleanfalseFetch detailed reach, demographics & targeting per ad
proxyConfigobjectResidentialProxy configuration (residential recommended)

Input example โ€” scrape a page's ads

{
"urls": [
{ "url": "https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=FR&view_all_page_id=434174436675167&media_type=all" }
],
"maxAds": 100,
"fetchDetails": false
}

Input example โ€” search by keyword

{
"urls": [
{ "url": "https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=US&q=running%20shoes&media_type=all" }
],
"maxAds": 50,
"fetchDetails": false
}

Input example โ€” with reach & demographics

{
"urls": [
{ "url": "https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=FR&view_all_page_id=434174436675167&media_type=all" }
],
"maxAds": 30,
"fetchDetails": true
}

Input example โ€” multiple pages at once

{
"urls": [
{ "url": "https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=FR&view_all_page_id=434174436675167&media_type=all" },
{ "url": "https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=US&view_all_page_id=139594698297&media_type=all" }
],
"maxAds": 200,
"fetchDetails": false
}

โœจ What you'll get

๐Ÿ“‹ Standard fields (always included)

FieldDescription
adArchiveIdUnique Facebook Ad Library ID
collationIdGroups ad variations together
pageNameAdvertiser page name
imagePreview image URL (or video thumbnail)
bodyTextAd copy / body text
titleAd title
publicationDateStart & end dates with timestamps
adVariationsNumber of creative variations
ctaTextCall-to-action button text (Learn More, Shop Now, etc.)
linkUrlDestination URL
isActiveWhether the ad is currently running
hasVideoWhether the ad contains video
platformsDistribution platforms (Facebook, Instagram, Messenger, Audience Network)
mediaTypeIMAGE, VIDEO, or TEXT
all_imagesAll image URLs found in the ad
all_videosAll video URLs (HD/SD)

๐Ÿ”ฌ Detail fields (when fetchDetails is enabled)

FieldDescription
audienceTargeting info: gender, age range (min/max), locations
reachTotal EU reach + breakdown by country, age range, and gender
payerEntity paying for the ad
beneficiaryEntity benefiting from the ad

Output example โ€” standard

{
"adArchiveId": "1472608967817658",
"collationId": "8293741056382",
"pageName": "Apple",
"image": "https://scontent.xx.fbcdn.net/v/t45.1600-4/...",
"bodyText": "iPhone 16 Pro. The thinnest borders ever on iPhone.",
"title": "iPhone 16 Pro",
"publicationDate": {
"startDate": "2026-04-15T00:00:00.000Z",
"endDate": "N/A",
"startDate_timestamp": 1776384000,
"endDate_timestamp": 0
},
"adVariations": 3,
"ctaText": "Learn More",
"linkUrl": "https://www.apple.com/iphone-16-pro/",
"isActive": true,
"hasVideo": true,
"platforms": ["Facebook", "Instagram"],
"mediaType": "VIDEO",
"all_images": [],
"all_videos": ["https://video.xx.fbcdn.net/v/..."]
}

Output example โ€” with Ad Details

{
"adArchiveId": "1472608967817658",
"pageName": "Apple",
"title": "iPhone 16 Pro",
"isActive": true,
"audience": {
"gender": "All",
"age": { "min": 18, "max": 65 },
"locations": [
{ "name": "France", "type": "countries", "excluded": false }
]
},
"reach": {
"total": 1665288,
"breakdown": [
{ "country": "FR", "age_range": "18-24", "male": 96974, "female": 170035, "unknown": 21102 },
{ "country": "FR", "age_range": "25-34", "male": 252206, "female": 367860, "unknown": 30821 }
]
},
"payer": "APPLE INC.",
"beneficiary": "APPLE INC."
}

๐ŸŽฏ Use cases

๐Ÿ“ฑ Competitor intelligence

  • Monitor what ads your competitors are running right now
  • Track their creative strategy over time
  • Compare platforms (Facebook vs. Instagram) and ad formats
  • Compare ad copy, CTAs, and landing pages

๐Ÿ“Š Media buying & planning

  • Discover which demographics competitors are targeting
  • Analyze reach distribution across age groups and genders
  • Identify underserved audience segments
  • Benchmark your reach against competitors

๐ŸŽจ Creative strategy

  • Build a swipe file of competitor ad creatives
  • Analyze which formats perform best (image vs. video)
  • Track seasonal creative trends
  • Study CTA and messaging patterns

๐Ÿข Brand safety & compliance

  • Monitor who is running ads mentioning your brand
  • Track payer/beneficiary transparency data
  • Audit ad compliance across markets
  • Detect unauthorized use of brand assets

๐Ÿค– AI-powered workflows

  • Feed ad data into LLMs for creative analysis
  • Automate weekly competitor ad reports
  • Build real-time monitoring dashboards
  • Use the MCP integration for conversational ad intelligence

๐Ÿ”’ Reliability & performance

  • Incremental result delivery โ€” start using data before the run finishes
  • Residential proxy rotation and anti-detection built in
  • Smart pagination and retry handling
  • Consistent output schema across single and multi-URL runs

๐Ÿ’ก Pro tips

  • ๐Ÿ”ฅ For competitive analysis: use view_all_page_id to scrape every ad from a specific competitor page. Find the page ID by searching the brand on Facebook Ad Library and checking the URL.
  • ๐Ÿ“ˆ For demographic insights: enable fetchDetails: true for the full breakdown โ€” invaluable for media planning.
  • ๐ŸŒ For multi-market analysis: run the same page ID across different country parameters to compare how a brand advertises across markets.
  • โšก For maximum speed: keep fetchDetails: false for fast bulk scraping; enable it only when you need reach and demographic data.
  • ๐Ÿ’ฐ For cost control: start with a small maxAds to validate your query, then scale up.
  • ๐Ÿ”„ For ongoing monitoring: schedule this Actor daily or weekly via Apify Schedules, and combine with webhooks to get notified when new ads appear.

๐Ÿ”— Integrations

Connect this scraper to your favorite tools and automate your ad intelligence workflows:

๐Ÿค– MCP server for AI agents

Use this scraper as a tool for Claude, ChatGPT, or any AI agent via the Apify MCP Server. Your AI assistant can monitor competitor ad strategies, analyze creative trends, generate reports, and track new ads from specific brands automatically.

Need more data sources for your projects? Check out our other fast, reliable scrapers:

  • ๐Ÿ“ข TikTok Ads Scraper: extract TikTok Ads Library and Creative Center data โ€” the LinkedIn Ads equivalent for TikTok, with per-country reach and engagement metrics.
  • ๐Ÿ’ผ LinkedIn Ad Library Scraper: track B2B ad campaigns, targeting, and creatives from LinkedIn's Ad Library.
  • ๐Ÿ“ˆ Google Trends Scraper: pair ad monitoring with search interest data to see whether a brand's ad push is moving demand.
  • ๐Ÿ“ฐ Google News Scraper: track press coverage alongside ad activity for a full picture of a brand's market presence.

โ“ Frequently asked questions (FAQ)

Does Meta offer an official API for the Ad Library?

Meta's Ad Library API exists but requires approval, has rate limits, and returns limited fields. This Actor gives you the same public data โ€” creatives, targeting, reach, payer/beneficiary โ€” in clean JSON, CSV, or Excel, without an approval process or quota management.

How do I scrape all ads from a specific competitor?

Search for the brand on the Facebook Ad Library website, copy the URL (it includes view_all_page_id), and paste it into the urls input. The Actor auto-paginates through every ad the page is running.

Can I get reach and demographic data, not just creatives?

Yes. Enable fetchDetails: true. Each ad is enriched with EU total reach and a full breakdown by country, age range, and gender, plus targeting (age, gender, locations) and payer/beneficiary transparency data.

Does this only cover the EU, or global ads too?

Ad creatives (copy, images, videos, CTAs) are available globally. Reach and demographic breakdowns are provided for ads shown in the EU, in line with what Meta's Ad Library transparency requirements expose.

Can I search by keyword instead of a specific page?

Yes. Use a Facebook Ad Library search URL with the q parameter (e.g. q=running shoes) instead of view_all_page_id, and the Actor will scrape the matching search results.

Can I monitor a competitor automatically and get alerted on new ads?

Yes. Use the Apify Scheduler to run the Actor daily or weekly, and connect it to Make, n8n, or a webhook to detect and alert on new ads as soon as they appear.

The Ad Library is a public transparency tool that Meta itself makes available for anyone to browse. This Actor only collects publicly visible data with no login required. That said, you are responsible for complying with Meta's terms and applicable data protection laws for how you use the results.

What are the best alternatives for cross-platform ad intelligence?

Combine this Actor with our TikTok Ads Scraper and LinkedIn Ad Library Scraper to get a full picture of a brand's paid strategy across Meta, TikTok, and LinkedIn in one pipeline. See the Related Actors section above.

๐Ÿค Support & resources

Need help or have a feature request? Open an issue on the Actor's Issues tab โ€” we actively maintain this scraper.

โค๏ธ Love this Facebook Ads Library Scraper? Please leave a review here. It really helps other users discover a reliable tool, and it's the single biggest lever for this Actor's visibility right now.


Built with โค๏ธ for marketers, media buyers, and competitive intelligence professionals