Why Every Facebook Ad Library Scraper Breaks (And What Actually Works)
The honest truth about scraping Meta's Ad Library: why tools constantly break, when paid spy tools are a waste of money, and the free technique that actually reveals winning ads.

Search "Facebook Ad Library scraper" and you'll find a graveyard of broken tools, frustrated forum posts, and SaaS products charging $99-$149/month for something Meta gives away free. I spent weeks testing every major scraper, watching them break, and figuring out what actually works. Here's the unfiltered truth.
The Bottom Line: Most people don't need a scraper at all. The free Ad Library + one simple technique (checking ad longevity) tells you more about what's working than any $149/month spy tool. But if you need automation, be prepared for a cat-and-mouse game with Meta.
How a Political Scandal Created the Best Free Spy Tool
In 2016, Russian operatives bought Facebook ads to influence the US election. The fallout was massive. Congressional hearings. Mark Zuckerberg's awkward testimony. And in 2019, Facebook's response: the Ad Library.
The idea was transparency. Let journalists and voters see political ads. Know who's paying. Know who's being targeted. A watchdog tool.
What Meta didn't anticipate: marketers would hijack it.
"I'm happy that it exists, it's better than nothing. But I'm still missing a lot. It's not the transparency we as journalists or other researchers were hoping for."
— A journalist interviewed about the Ad Library's limitations
Today, the Ad Library is one of the most underrated tools in digital marketing. Free access to every active ad running across Facebook, Instagram, Messenger, and Threads. No login required. Complete visibility into what your competitors are running right now.
And that's exactly why people want to scrape it at scale.
Three Ways to Get Ad Library Data (And Their Tradeoffs)
| Method | Cost | Reliability | Data Access |
|---|---|---|---|
| Manual browsing | Free | 100% | Full (but slow) |
| Official API | Free (if approved) | High | Political ads only* |
| Third-party scrapers | $0-$149/mo | Breaks constantly | Full (when working) |
* The API only returns political/social cause ads, or ads running in the EU/Brazil. For regular commercial ads, the API is essentially useless.
Why Every Scraper Eventually Breaks
Here's something the scraper companies don't advertise: Meta actively fights them.
The Problem:
"The classes are random! How can you extract the data when class names change every time?"— Frustrated user on the n8n community forum
Facebook deliberately obfuscates their HTML. Class names that look likex1lliihqinstead of ad-card. And they change them regularly.
This breaks CSS-selector based scrapers. The scraper looks for a specific class to find ad data. Meta changes the class. Scraper fails. User complains. Developer fixes it. Meta changes it again.
Real Forum Posts I Found:
- "Facebook Ad Library Scraper Failed!" — Gumloop user after setup that looked "correct"
- "Request failed and reached maximum retries. Error: Blocked from Searching or Viewing the Ad Library" — Apify issue tracker
- "I ended up using an external paid tool" — n8n user who gave up on DIY
- "I love Gumloop but all these bugs makes me want to cancel..."
The issue isn't that scrapers are badly built. It's that scraping Facebook is an arms race, and Meta has infinitely more resources.
Other Anti-Scraping Measures:
- IP address monitoring and blocking
- Rate limiting on requests
- Behavioral pattern detection
- CAPTCHA challenges
- Login walls for certain data
The Official API: A Bureaucratic Nightmare
"Just use the official API" sounds reasonable until you try it.
What API Access Requires:
- Create a Facebook Developer account
- Submit identity verification (government ID, sometimes snail mail)
- Wait days to weeks for approval
- Get an access token (expires after a few hours unless extended)
- Extend to 60-day token manually
- Renew every 60 days forever
And after all that? The API is mostly limited to political ads and EU-targeted ads. For regular ecommerce or B2B ads—the stuff most marketers care about—the API returns almost nothing useful.
Common API Errors:
"Application does not have permission for this action" (OAuthException code 10)This error has been reported on GitHub issues from 2020 through January 2025. People still can't get it working.
One developer reported: "Even after trying permissions like ads_read and ads_management, and having their ID confirmed, users still face this issue."
Skip the Scraping Headache
Instead of fighting Meta's anti-scraping measures, use AdMakeAI to research competitor ads and instantly recreate winning layouts with your own branding. Same psychological hooks. Your message.
Is Scraping the Ad Library Legal?
Short answer: Yes, probably. Long answer: It's complicated.
The Legal Precedent:
Multiple federal court rulings against Meta and Twitter have established that web scraping publicly accessible data is legal. The most notable is hiQ Labs v. LinkedIn.
But "legal" doesn't mean "without consequences." Meta can:
- Block your IP address
- Restrict your Facebook account
- Ban you from their platforms
- Terminate your developer access
The Ad Library is public data, explicitly designed for transparency. But Meta's terms of service still prohibit automated scraping. You probably won't get sued. You might get blocked.
The One Technique That Actually Reveals Winners
Here's what the expensive spy tools won't tell you: the most valuable data in the Ad Library is completely free and requires zero scraping.
The Longevity Proxy
If an ad has been running for months, it's almost certainly profitable. Businesses don't pay to run losing ads for 60+ days. Ad longevity is a direct signal of performance—and the Ad Library shows you exactly how long each ad has been active.
This is the technique that actually works:
- Go to facebook.com/ads/library — No login required
- Search for a competitor or keyword — You can search by page name or phrase
- Filter by "Active" ads — Shows what's running right now
- Scroll to the oldest ads — These are your winners. Ads running for 3+ months are proven performers.
- Look for patterns — Format (video/static/carousel), hook style, offer type, visual treatment
An ad that's been running since June while others from the same brand only last 2 weeks? That's your signal. Study the hook, the format, the angle. Then create your own version.
Pro Tip:
Ad Library links expire, and ads get taken down. You need a system to save creatives before they disappear. With AdMakeAI's research tool, you can save ads directly to organized swipe files—and when you're ready, instantly recreate them with your own branding using our Recreate Competitor Ad feature.
What the Ad Library Won't Tell You (No Matter What You Pay)
Every spy tool advertises competitor research. None of them can give you the metrics that actually matter:
Data That Doesn't Exist:
- CTR (Click-Through Rate) — No scraper can see this
- ROAS (Return on Ad Spend) — Only the advertiser knows
- CPA (Cost Per Acquisition) — Impossible to access
- Actual ad spend — Only shown for political ads
- Audience targeting — Hidden (except EU demographic ranges)
- Conversion data — Never exposed
This is why ad longevity matters so much. It's the only proxy for performance that's actually visible. A $149/month spy tool can't tell you if an ad is profitable—only that it exists.
When Paid Spy Tools Are Worth It (And When They're Not)
I'm not saying all spy tools are scams. Some serve legitimate purposes:
Worth It If:
- • You monitor 50+ competitors weekly
- • You run an agency managing multiple clients
- • You need automated alerts for new competitor ads
- • You're building a searchable swipe file at scale
- • Time saved > tool cost (do the math)
Waste of Money If:
- • You check competitors once a month
- • You monitor fewer than 10 brands
- • You think they reveal "winning products"
- • You expect performance metrics
- • You're just starting out
Here's the honest breakdown of major tools:
| Tool | Price | Best For | Biggest Drawback |
|---|---|---|---|
| Meta Ad Library | Free | Everyone | Manual process |
| Apify Scraper | ~$5/1K ads | Bulk extraction | Breaks regularly |
| Foreplay | $49-$99/mo | Creative teams | Swipe file focused, not analytics |
| AdSpy | $149/mo | Large databases | Expensive, only Facebook |
| BigSpy | $99/mo | Multi-platform | Old data, not always accurate |
One common mistake: subscribing and forgetting to use it. Set a calendar reminder. "Monday 9am: Review competitor ads." Consistency beats occasional deep dives. If you're not checking weekly, you're wasting your subscription.
Building Your Own Scraper (For Developers)
If you're technical and want to try anyway, here are your options:
Approach 1: Official API
- GitHub: minimaxir/facebook-ad-library-scraper — Python, uses official API, requires approval
- Good for political/EU ads research
- Tokens expire every 60 days
- Won't work for regular commercial ads
Approach 2: Selenium Browser Automation
- GitHub: abdulmanan45/facebook-ads-scraper — Python + Selenium, headless Chrome
- More flexible, gets all ad types
- Higher risk of detection and blocking
- Breaks when Meta updates the DOM
Approach 3: HAR File Method
- Stevesie's approach — Capture network requests as HAR files
- Works around TOS issues (manual browsing + data extraction)
- More legal gray area friendly
- Requires manual browser interaction
My Honest Take:
Unless you're building a product or have very specific research needs, the time you spend maintaining a scraper will exceed the time you'd spend just using the Ad Library manually. The juice usually isn't worth the squeeze.
The Real Competitive Advantage (It's Not Scraping)
Here's the uncomfortable truth: knowing what your competitors run doesn't make your ads better. Execution does.
I've seen marketers spend hours in spy tools, building massive swipe files, and then... create mediocre ads anyway. Because they copied surface-level elements without understanding why they worked.
The psychological hook that stops the scroll. The layout that guides the eye. The color contrast that makes the CTA pop. These are what you need to extract—not just screenshot.
What Actually Matters:
- Speed of iteration — How fast can you create and test new creatives?
- Understanding your audience — What hooks resonate with YOUR customers?
- Testing volume — Are you testing enough variations?
- Creative production capacity — This is usually the real bottleneck
The brands winning at Facebook ads in 2025 aren't the ones with the best spy tools. They're the ones who can produce and test creatives faster than their competitors.
This is why we built AdMakeAI. Not another scraper. A way to go from "I found a winning ad" to "I have my own version ready to test" in under 60 seconds.
The AdMakeAI Workflow:
- Research competitors — Browse competitor ads, save to organized swipe files, track what they're testing
- Create similar ad from the winning layout — Upload any ad, our AI extracts the structure, psychology, and style
- Add your branding — Your product, your message, your colors. Same psychological hook that made the original work.
- Generate variations — Create 5-10 variations in minutes, not hours. Test faster than your competition.
Your Action Plan
You have two paths. The manual way works but is slow. Or you can skip straight to creating winning ads.
The Manual Method (Free):
- Set a weekly calendar reminder
- Go to facebook.com/ads/library
- Search 3-5 top competitors
- Sort by oldest active ads
- Screenshot everything manually
- Organize in Google Drive
- Hire a designer or DIY in Canva
- Wait days for variations
The AdMakeAI Method:
- Research competitors in our tool
- Save ads to organized swipe files
- Click "Create Similar Ad" on any winner
- AI extracts the psychological structure
- Add your product & branding
- Generate 5-10 variations instantly
- Download and launch same day
- Test faster than your competition
Scraping sounds sexy. The free manual method sounds responsible. But the brands that win are the ones who can go from insight to live ad the fastest. Research is only valuable if you can act on it.
Stop Scraping. Start Creating.
Research competitor ads, save the winners, and recreate them with your branding in seconds. Same psychological hooks that made them work—your product, your message.
Free credits included • No design skills needed • From research to ad in 60 seconds
Related Resources
Ready to Create Winning Ads?
Join marketers using AI to research competitors and create high-converting ads