The Facebook Ad Library is free, official, and shows every active ad on Facebook and Instagram. It also stops being useful the moment the job moves from one brand to a whole niche: there is no export, the filters are basic, and a few hundred ads of scrolling leaves nothing to sort or save. This guide covers four working ways to get Ad Library data at scale, with real costs, real limits, and a short Python scraper that runs on mobile proxies.
Key takeaways
- The Ad Library has no export and no link search, so studying a whole vertical by hand does not scale.
- Ad spy tools like Tyver have already scraped and indexed the data, which suits daily competitor research.
- The official Meta Ad Library API is free but returns mostly EU and political ads, not commercial ads worldwide.
- A DIY scraper on mobile proxies is the route to a custom dataset the API and the tools do not cover.
- Datacenter IPs get blocked fast on Meta, so any scraper needs real carrier IPs to keep running.
What data the Ad Library actually holds
Before picking a method, it helps to decide what the research needs to answer. In competitor ad work, the useful fields are the creative itself (image or video, primary text, headline, CTA), how long an ad has been running, the landing page and the link behind it including tracking parameters, the advertiser behind it (Page, domain, other ads), and reach and audience data where Meta discloses it, which is mainly EU delivery. Each method below returns a different slice of that list, so the right choice depends on which fields matter.
The four methods, compared
| Method | Cost | Setup | Scale | Best for |
|---|---|---|---|---|
| Ad spy tool (Tyver) | Free plan, Pro $79/mo | Minutes | 5M+ ads/day, 140+ GEOs | Daily niche research |
| Meta Ad Library + API | Free | Minutes to hours | Manual; API mostly EU/political | Checking one brand or Page |
| DIY scraper + mobile proxies | Proxy traffic + dev time | Days, plus upkeep | As much as the pipeline builds | Custom datasets, internal tools |
| Ready-made scraper (Apify) | Often under $1 / 1,000 ads | About an hour | Pay per result | One-off exports and tests |
Method 1: Ad spy tools that already did the scraping
The quickest way to get Ad Library data is to not scrape it at all. An ad spy tool keeps a prebuilt, searchable database of ads, so the work starts at the filters instead of at a parser that breaks when Meta changes its front end. Research that happens every day gets the lowest-friction path here.
Tyver: depth on Meta ads
Tyver is a Facebook ad spy tool focused on Meta: Facebook, Instagram, Messenger and Audience Network. It collects around 5 million new ads a day from 140+ countries and puts them behind 20+ filters, so the output is a ready database rather than a scraper to babysit. Tyver's standout features are the ones the free library has no answer for.
| Capability | Free Ad Library | Tyver |
|---|---|---|
| Search inside ad links (utm, pixel_ | ||
| Sort by how many days an ad ran | ||
| Similar ads by Page or domain | ||
| Save, tag and share finds | ||
| Bulk export (all ad types) | ||
| Coverage | Manual browse | 5M+ ads/day, 140+ GEOs |
Searching inside ad links is the standout: filtering by a fragment such as utm_campaign= or pixel_id= separates affiliate and performance ads from brand campaigns in seconds, and surfaces every ad pointing at the same domain. Active Days sorting isolates the ads worth studying, since a creative that runs 3 to 14 days is usually proven, while much longer often means a creative burning out. Similar Ads opens every creative from one Fan Page or domain at once, which shows whether an advertiser is scaling a concept. On supported GEOs, mainly the EU, reach, gender and age sit next to the creative. Finds save to folders, and teams share collections with access roles.
Pricing runs a Free plan with all filters and limited database access, Pro at $79/month with the full database and API, and Team at $119/month with two seats; yearly billing brings Pro to about $47/month. One honest limit: Tyver covers Meta only, so there is no TikTok, Google or native ad data, and audience figures depend on what Meta discloses per GEO.
For teams that want the same data inside their own scripts or dashboards without running a scraper, Tyver exposes a Public API on paid plans. At much larger volume, the same team runs Metapi, a dedicated Facebook Ad Library API built for bulk export, which returns all ad types with texts, landing URLs, media links, dates and placements, plus more than two years of history as JSON or CSV. Metapi ships a free tier of 3,000 records a month for testing before scaling.
Build, never copy
Save the strongest creatives to a folder, then change the hook, the first seconds, the text and the visuals. Relaunching someone else's ad as-is wastes the research and risks the account.
Two other spy tools worth knowing
Tyver goes deep on Meta, but two broader tools cover more surfaces for teams that buy across platforms. Minea indexes Facebook, TikTok and Pinterest ads with a dropshipping and product-research angle, which suits sellers tracking winning products rather than pure Meta creative work. BigSpy runs one of the larger multi-platform libraries, spanning Facebook, Instagram, TikTok, YouTube and more, and leans toward broad discovery over deep Meta filtering. Both trade some of Tyver's Meta depth for reach across networks, so the pick comes down to whether the research lives inside Meta or spreads across every channel at once.
Method 2: The Meta Ad Library and its API
The Meta Ad Library is the free starting point, and every marketer should know it well. Search by keyword or advertiser, filter by country, platform, media type and active status, and open any Page to see all its live ads. On EU delivery, Meta also shows reach and a basic age and gender breakdown.
Its limits appear the moment volume matters. There is no export, no search by link or tracking parameter, no way to sort a niche by how long ads have run, and nothing to save or tag. Checking one competitor takes two minutes; mapping a vertical takes days. A free browser extension such as AdLib Pro narrows part of that gap for manual checks, surfacing active days and the full link behind each ad, though it does not turn the library into a dataset.
Meta's Ad Library API (the ads_archive endpoint of the Graph API) is the official programmatic route, and the documentation is worth reading before planning a project around it. Ads that never reached an EU country are returned only when they concern social issues, elections or politics, so for commercial ads outside the EU the API is not a source. Spend, impressions and detailed demographics exist for political and issue ads, not regular commercial ones. Meta requires a developer account and access token, published rate limits are vague, and creatives come back as a snapshot link rather than clean media files. The API fits a specific brand check, a live-status check, or EU and political research, and little beyond that.
Method 3: Build a Facebook Ad Library scraper with mobile proxies
When the data sits outside what the API returns, or it needs to land in a private database, a custom scraper is the answer. The public Ad Library page loads results through background requests as the feed scrolls, so a headless browser can open a search URL, scroll, and collect those responses. Automated collection is governed by Meta's terms and by local law, so the right scope is public ad data only, at reasonable request rates.
The code is the easy part. Staying unblocked is the hard part. Meta shows login walls, empty results and rate limits to datacenter IPs and to any single address that sends too many requests, and enforcement is aggressive: Meta said in 2021 that it blocks billions of suspected scraping actions per day. Two things keep a scraper alive. Real carrier IPs come first: mobile proxies route traffic through 4G and 5G carrier networks, where many real subscribers share one address through carrier-grade NAT, so the traffic reads as an ordinary phone and blocking it risks real users. Rotation and geo-targeting come second: rotate per request for wide keyword sweeps, hold a sticky session while paginating one search, and target a country or ISP to load the landing pages behind each ad the way a local would see them.
1import json2from urllib.parse import urlencode3from playwright.sync_api import sync_playwright4 5# Proxy list credentials from the VoidMob dashboard (Proxy Lists on the order page).6# The exit country is set on the list itself, not in the username.7# Set the list's rotation to Sticky (or a timed interval) so one search keeps one IP.8PROXY = {9 "server": "http://proxy.voidmob.com:10000",10 "username": "YOUR_LIST_USERNAME",11 "password": "YOUR_LIST_PASSWORD",12}13 14def search_url(keyword, country="US"):15 params = {16 "active_status": "active",17 "ad_type": "all",18 "country": country,19 "q": keyword,20 "search_type": "keyword_unordered",21 "media_type": "all",22 }23 return "https://www.facebook.com/ads/library/?" + urlencode(params)24 25def collect_ads(obj, found):26 # walk any JSON and keep objects that look like ads27 if isinstance(obj, dict):28 if "ad_archive_id" in obj:29 found[obj["ad_archive_id"]] = obj30 for v in obj.values():31 collect_ads(v, found)32 elif isinstance(obj, list):33 for v in obj:34 collect_ads(v, found)35 36def scrape(keyword, country="US", scrolls=15):37 found = {}38 with sync_playwright() as p:39 browser = p.chromium.launch(proxy=PROXY, headless=True)40 try:41 page = browser.new_page(locale="en-US")42 43 def on_response(resp):44 if "/api/graphql" in resp.url:45 try:46 lines = resp.text().splitlines()47 except Exception:48 return49 for line in lines:50 try:51 collect_ads(json.loads(line), found)52 except ValueError:53 continue54 55 page.on("response", on_response)56 page.goto(search_url(keyword, country), wait_until="domcontentloaded", timeout=60000)57 page.wait_for_timeout(5000)58 for _ in range(scrolls):59 page.mouse.wheel(0, 4000)60 page.wait_for_timeout(2000)61 finally:62 browser.close()63 return list(found.values())64 65if __name__ == "__main__":66 ads = scrape("joint pain", country="US")67 print(len(ads), "ads collected")68 with open("ads.json", "w") as f:69 json.dump(ads, f, indent=2)A production version adds a queue of keywords and countries, a fresh proxy session per search, retries when a page returns empty, and a database that stores each ad_archive_id with the dates it was seen, which is what makes it possible to calculate how long an ad has run. Maintenance is the real cost: the front end changes often, every change can break the parser, and a full build recreates the deduplication, media downloads, search and tagging a spy tool already ships. For a developer who needs a custom dataset, that trade makes sense. For a buyer who needs ideas for tomorrow's launch, it rarely does.
Keep the scraper running on real carrier IPs
Mobile proxies on 4G/5G networks, billed per GB or as a dedicated device, with HTTP(S), SOCKS5 and API access for rotation.
The Ad Library loads without a login, so the scraper above needs no Facebook account, and staying logged out keeps the collection to public data. Confirm the exit before any run with a quick IP check so the session reports a mobile carrier and leaks no real IP underneath.
Method 4: Ready-made scrapers
Between building a scraper and buying a spy tool sit ready-made actors, the kind hosted on Apify, where third-party developers maintain Facebook Ad Library scrapers. Paste a search URL or a Page, run the actor, and download JSON or CSV, with pricing often under $1 per 1,000 ads. Apify trades an interface for raw data, and quality tracks whatever the actor's maintainer does when Meta updates the page. Most actors accept custom proxies, which matters for specific GEOs. This fits a one-off export, a quick test before committing to a build, or raw data for a single report.
Which method fits the job
Daily research for ideas rather than datasets points to an ad spy tool like Tyver, where the data is already collected, filtered and linked to Pages and domains. An occasional competitor check needs nothing more than the free Meta Ad Library. EU or political data in a private system points to the API, or Metapi when it has to be all ad types at volume. A custom dataset or an internal tool is the case for a DIY scraper on mobile proxies with rotation and geo-targeting, and VoidMob's guide to mobile proxies for web scraping covers that setup in more depth. Quick one-off exports point to a ready-made actor. Plenty of teams combine two: a spy tool for daily research, and a small scraper on carrier IPs for the one dataset no tool covers. To check how a competitor's ads and landing pages actually render in a target market, the guide to mobile proxies for ad verification covers seeing creatives the way a local user does.
FAQ
Can you export data from the Facebook Ad Library?
Not from the web interface, which has no export. The options are the official Meta Ad Library API (mainly EU and political ads), a custom scraper, or an ad spy tool that stores and exports the data for you.
Is the Meta Ad Library API free?
Yes, but it requires a Meta developer account and an access token, and for ads outside the EU it returns only social issue, election and political ads, not regular commercial ads.
Is it legal to scrape the Facebook Ad Library?
The library is public, but automated collection is governed by Meta's terms and by local law. Collect only public ad data, avoid personal data, keep request rates moderate, and use the official API or a tool when in doubt.
Why use mobile proxies instead of datacenter proxies to scrape Meta?
Datacenter ranges are easy to identify and get blocked or rate-limited fast. Mobile carrier IPs are shared by many real users, so they draw far fewer blocks and let a scraper load results and landing pages for a specific country.
What is the best Facebook Ad Library alternative for research?
For daily competitor research on Facebook and Instagram, an ad spy tool such as Tyver adds what the library lacks: link and tracking-parameter search, active-days sorting, similar ads, audience data, and saving. It has a free plan to try first.
The Ad Library is the source, but it was built for transparency, not research. To get ideas fast, start with an ad spy tool. To build a private dataset, add a scraper on a base of rotating mobile IPs so it keeps working. Either way the goal is the same: fewer blind tests, and more ads already proven in the market.
