Meta (Facebook) Ad Library Scraper - Fast & Reliable avatar

Meta (Facebook) Ad Library Scraper - Fast & Reliable

Pricing

$6.00 / 1,000 ads

Go to Apify Store
Meta (Facebook) Ad Library Scraper - Fast & Reliable

Meta (Facebook) Ad Library Scraper - Fast & Reliable

Scrape Facebook and Instagram ads from the Meta Ad Library by keyword, Page ID, Ad Library URL or ad ID. Get ad copy, headlines, CTAs, landing pages, image and video URLs, platforms, start dates and days running. Filter by country, status, ad type, media and language. Export to CSV, Excel or JSON.

Pricing

$6.00 / 1,000 ads

Rating

5.0

(14)

Developer

Anas Nadeem

Anas Nadeem

Maintained by Community

Actor stats

77

Bookmarked

3.8K

Total users

131

Monthly active users

0.49 hours

Issues response

a day ago

Last modified

Features

Limited permissions

Share

🔍 Meta Ads Scraper — The Most Powerful Facebook Ad Library Scraper

Trusted by 500+ marketers, agencies, and brands — with over 1,000,000+ ad records scraped and counting. Get complete, structured ad intelligence from the Meta Ad Library in minutes, not hours.

Whether you're tracking competitors, building creative swipe files, or powering an ad intelligence pipeline — this scraper delivers 99% data accuracy with proxy support.

Turn competitor ads into your next creative test with Seercraft

Turn your competitor ad research into ideas for your next campaign. We also build Seercraft for ongoing Meta ad research.

Track competitors daily, save Facebook and Instagram ads to boards, ask Seer questions with links to source ads, and turn your findings into creative briefs.

Explore Seercraft.


⚡ Why This Scraper?

FeatureDetails
🎯 Complete Ad DataBrand, body copy, CTA, links, images, videos, carousel assets, platform breakdown
📊 1M+ Records DeliveredBattle-tested across thousands of runs for brands worldwide
🔄 Two Input ModesPaste a URL directly or build your search with simple parameters
🌍 Any Country, Any BrandSupports all 200+ countries in the Meta Ad Library
🛡️ Anti-Detection Built-InStealth mode, session rotation, human-like scrolling
🖼️ All Media FormatsImages, videos (with duration), carousels — all captured
⚙️ Proxy ReadyPlug in your Apify Residential proxy for 99% coverage

🚀 Quick Start

You have two ways to tell the scraper what to fetch:

Option A: Paste a Direct URL

Already have a Facebook Ad Library URL? Just paste it:

{
"targetUrl": "https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=US&view_all_page_id=108047081396228"
}

Option B: Build from Parameters (New! ✨)

Don't want to craft URLs manually? Just fill in the fields:

{
"country": "US",
"searchQuery": "nike",
"activeStatus": "active",
"mediaType": "video",
"sortMode": "total_impressions"
}

Or search by Page ID:

{
"country": "IN",
"pageId": "786827864757998",
"activeStatus": "active"
}

The scraper builds the correct URL automatically — no guesswork needed.


📋 Input Parameters

Search Identifiers (at least one required when using parameters)

ParameterTypeDescriptionExample
targetUrlstringFull Facebook Ad Library URL (Option A)https://www.facebook.com/ads/library/...
countrystringISO 3166-1 alpha-2 country codeUS, IN, IT, GB
searchQuerystringKeyword search across all adsnike, adidas shoes
pageIdstringFacebook Page ID to view all ads108047081396228
adIdstringLook up a specific ad by ID1191898553123641

Filtering Options

ParameterTypeValuesDefault
activeStatusenumactive, inactive, allall
adTypeenumall, political_and_issue_ads, housing, employment, creditall
mediaTypeenumall, image, video, memeall
isTargetedCountrybooleantrue, falsefalse
contentLanguagesarrayISO 639-1 codes (e.g. ["en", "it"])all languages

Sorting

ParameterTypeValuesDefault
sortModeenumtotal_impressions, relevance, start_datetotal_impressions
sortDirectionenumdesc, ascdesc

Performance Settings

ParameterTypeDefaultDescription
maxConcurrencyinteger1Browser tabs in parallel (1–10)
requestHandlerTimeoutSecsinteger900Max time per page (60–1200s)
maxAdsinteger100Stop after this many ads (1–10,000). Each ad is a billed result
proxyUrlstring—Your Apify Residential proxy URL

📦 Output Format

Each run outputs a clean JSON array of ad objects:

[
{
"libraryID": "1234567890",
"brand": "Nike",
"brandLogo": "https://scontent...",
"active": true,
"platforms": ["Facebook", "Instagram"],
"totalPlatforms": 2,
"similarAdCount": 5,
"multipleVersions": true,
"body": "Just Do It. Shop the latest collection...",
"linkTitle": "Nike.com",
"linkUrl": "https://nike.com/shop",
"linkDescription": "Free shipping on orders over $50",
"ctaText": "Shop Now",
"ctaUrl": "https://nike.com/shop",
"images": [{ "url": "https://..." }],
"videos": [{ "url": "https://...", "duration": 30 }],
"startDate": "1/15/2025",
"format": "video"
}
]

Every field you need — brand identity, creative assets, copy, CTA, platform breakdown, dates, and format detection (image / video / carousel).

Fast HTTP path

Page, keyword and URL searches first run through a fast HTTP scraper. If it can't finish, the run continues in the browser and skips ads that were already saved. When Meta confirms a search has no ads, the run ends without launching the browser. Single-ad lookups (adId, or a URL containing id=) work as before.

Rows from the HTTP path also include pageId, adLibraryUrl, cards (per-card creative of carousel and dynamic ads), collaboratorName, collaboratorPageId, collaboratorLogo, and poster on each video. The RUN_SUMMARY record in the run's key-value store shows which path ran and why.


Without a proxy, Facebook limits results heavily. With an Apify Residential proxy, you get 99% of all ads.

How to set up:

  1. Go to Apify Console → Proxy → Groups tab
  2. Click RESIDENTIAL → Copy the proxy URL
  3. Paste it into the proxyUrl field

Format: http://groups-RESIDENTIAL:YOUR_TOKEN@proxy.apify.com:8000

External proxies (BrightData, Oxylabs, etc.) also work — just paste the URL.


🏗️ Built With

  • Apify SDK + Crawlee for orchestration
  • Puppeteer with stealth plugin for undetectable scraping
  • Scroll-based pagination with intelligent stall detection
  • Duplicate detection and memory-efficient DOM cleanup for large datasets (500+ ads)

💡 Pro Tips

  1. Start with maxConcurrency: 1 — increase only if you have enough memory
  2. Pages with 200+ ads need at least 600s timeout
  3. Use activeStatus: "active" to get only currently running ads
  4. Sort by start_date to catch the freshest creatives first
  5. Combine mediaType: "video" + keyword search to find video ads for specific niches

🤝 Enterprise & Custom Solutions

Building an ad intelligence platform? Need a full creative pipeline — from scraping to analysis to insights?

Let's talk. We've helped brands and agencies build end-to-end creative intelligence workflows.

🌐 Website: whoareyouanas.com
📧 Email: anas5678go@gmail.com
🐦 Twitter/X: @whoareyouanas

Whether you need custom scraping pipelines, bulk data delivery, or API integrations — reach out and let's build something great together.

Saved example task

Open Look up a Facebook ad creative by Library ID, select Try for free to copy the configuration into your own account, then replace the sample input with your research target. Normal Actor charges apply.

{
"adId": "1075137158633135",
"country": "US",
"maxConcurrency": 1,
"requestHandlerTimeoutSecs": 120
}

Read the completed run dataset and inspect any status, quality or error fields before using the results. Public source availability and field coverage can change. Save previous results yourself if you need historical comparisons.

Connect an AI assistant with MCP

Use the hosted Apify MCP server with this Actor selected:

https://mcp.apify.com?tools=whoareyouanas/meta-ad-scraper

For a client that accepts an mcpServers configuration:

{
"mcpServers": {
"apify-meta-ad-scraper": {
"url": "https://mcp.apify.com?tools=whoareyouanas/meta-ad-scraper"
}
}
}

Sign in with Apify OAuth when prompted. For a token-based client, add "headers": {"Authorization": "Bearer YOUR_APIFY_TOKEN"} to the server entry. Client configuration formats vary; use the Apify MCP configurator for your client. For local stdio clients, use the configuration in examples/mcp-stdio.json; Node.js and npm are required.

Example AI prompt:

Use whoareyouanas/meta-ad-scraper with the saved example input above. Wait for the run to finish, read its dataset, and summarize the returned data with source links. Report missing fields, quality limitations and errors; do not infer data that was not returned.

MCP runs use the same input schema and normal Actor pricing. Use get-actor-run if the lookup is still running, then get-dataset-items with the returned dataset ID. A successful run status alone does not prove the requested data was extracted.