Comparison
Meta Ad Library API Alternatives: Five Ways to Get Ad Data
Most people who look for an alternative to the Meta Ad Library API have already hit the same wall: they got through the identity check, made their first call, and found that the ads they care about, ordinary commercial ads outside the EU, are simply not there. This guide compares the five realistic ways to get Ad Library data into your own code, what each one is good at, and how to move an existing integration over in a few minutes.
Published 7 min read
On this page
Why people look for an alternative
Meta's official Ad Library API (the ads_archive edge of the Graph API) was built for political transparency. It returns ads about social issues, elections and politics in every country where Meta labels them, and, since the Digital Services Act, every ad delivered in the European Union. That leaves out the bulk of what marketers want to study: a Shopify brand's ads in the United States, a SaaS company's campaigns in Canada, an app install push in Brazil.
Three other things push teams away. Access requires a personal identity verification and a developer app, which is awkward for an agency or a company account. The API returns no image or video files, only a snapshot link that needs a token to open. And the rate limits are not published, so a job that worked on Monday can be throttled on Tuesday. The full list of limitations goes through each of these in detail.
Meanwhile the public website at facebook.com/ads/library shows all active ads, commercial ones included, to anyone who is logged out. Every alternative below is, in one way or another, a way to read that public library at scale.
The five options
1. The official Graph API, used for what it covers
If your work is about political or issue advertising, or only about ads delivered in the EU, the official API is a reasonable choice: it is free, it is Meta's own data, and it exposes spend and impressions ranges for political ads. Its weakness is coverage, not quality. Researchers studying elections often stay on it; anyone doing competitive research on commercial ads outside Europe needs something else.
2. Writing your own scraper
Browser automation (Playwright, Puppeteer, Selenium) or raw HTTP requests against the library pages can get you every public ad. The first page of results is easy. Going further means handling an anti-bot challenge, GraphQL query ids that rotate, page-two requests that are blocked from datacenter IPs, media links that expire after a few days, and a JSON structure that shifts without notice. The scraping guide describes those problems one by one. Build it yourself when scraping is your core competence or when you need something no provider offers; otherwise budget for ongoing maintenance, not a one-off script.
3. Scrapers from a marketplace
Scraping marketplaces sell ready-made "actors" or jobs: you configure a search, run it, and download a dataset. They are convenient for one-off exports and for people who prefer a web interface to code. The trade-offs are typical of batch tools: runs take minutes rather than seconds, output formats differ from one scraper to the next, pricing is usually per compute time or per result, and quality depends on whoever maintains that particular scraper. Check how recently it was updated and whether it returns EU transparency data before you rely on it.
4. Ad spy tools
Ad spy platforms are SaaS dashboards for media buyers: a searchable archive of creatives, saved boards, filters by niche, sometimes engagement estimates. They are excellent for browsing and inspiration, and some keep ads longer than the library does. They are rarely built for developers: an API, when there is one, tends to come with a high-tier plan, and the data model is the tool's own. If what you need is a feed for your own product, a client report or a data pipeline, a dashboard is the wrong shape.
5. An Ad Library API
An Ad Library API reads the public library on demand and answers documented JSON over plain HTTP. With ScrapeAdLibrary that means the ads search, ad details with EU transparency data, advertiser pages and their ads and advertiser search, for commercial and political ads in every country, with one API key. A call costs one credit whatever the number of ads it returns (up to 30), errors are free, and 65 calls a month cost nothing.
Side by side
| Option | Commercial ads outside the EU | Media files | Setup | Best for |
|---|---|---|---|---|
| Official Graph API | No | Snapshot link only | Identity check + app | Political and EU-only research |
| Own scraper | Yes | Yes, links expire | Days, then maintenance | Teams that scrape for a living |
| Marketplace scraper | Usually | Varies | Minutes | One-off exports |
| Ad spy tool | Yes | Yes, in the tool | Minutes | Browsing creatives by hand |
| Ad Library API | Yes | Yes, links expire | Minutes | Products, pipelines, reports |
No option is right for everyone. A political scientist with an approved developer account may never need anything but the official API. A media buyer who scrolls for inspiration every morning is well served by a spy tool. The moment the data has to land in your own code on a schedule, the choice narrows to building a scraper or calling an API, and that is a build-or-buy decision about maintenance.
Moving from ads_archive to a REST call
If you already have code written against the official API, the concepts map almost one to one. The main differences: you pass a single country (or ALL) instead of an array of reached countries, filters are plain query parameters, and the response is already flattened into one object per ad with its creatives inside.
| Graph API ads_archive | ScrapeAdLibrary /v1/ads/search |
|---|---|
search_terms | q (plus match=exact for an exact phrase) |
search_page_ids | page_id (one page), or GET /v1/pages/{page_id}/ads |
ad_reached_countries | country (ISO code or ALL) |
ad_active_status | status (active, inactive, all) |
ad_type=POLITICAL_AND_ISSUE_ADS | ad_type=political |
publisher_platforms | platforms (comma-separated) |
ad_delivery_date_min / max | active_from / active_to (YYYY-MM-DD) |
after cursor | cursor = next_cursor of the previous page |
The same search, an advertiser's active ads in Germany on Instagram, as a REST call:
curl -s "https://api.scrapeadlibrary.com/v1/ads/search?page_id=15087023444&country=DE&status=active&platforms=instagram" \
-H "X-API-Key: $SCRAPEADLIBRARY_API_KEY"Where the official API needed a second request or a snapshot page to see the creative, each ad here already carries images, videos and carousel cards, with an expires_at on every media URL. For the EU audience data that ads_archive returns as eu_total_reach and age_country_gender_reach_breakdown, call GET /v1/ads/{ad_id}: the EU transparency guide shows how to read it.
How to choose
- Write down the countries and ad types you need. Political or EU-only: start with the official API. Commercial ads anywhere else: you need the public library.
- Decide where the data lives. In a person's browser: a spy tool. In a spreadsheet once: a marketplace scraper or our free Ad Library search. In your code, every day: an API or your own scraper.
- Price the maintenance, not the first run. A scraper that costs nothing to write can cost a day a month to keep alive. Compare that with a per-call price.
- Test with real queries. Run the searches your project depends on. With 65 free calls a month you can check coverage, freshness and fields before paying anything, then it is $5 per 1,000 calls.
- Read the legal side. Whatever the source, you are processing public data that can include personal data. The legal guide summarises what matters.
Beyond Meta
Competitive research rarely stops at Facebook and Instagram. The same API key also reads the Google Ads Transparency Center (Search, YouTube and Display ads by advertiser or website) and the LinkedIn Ad Library, with the same billing and the same cursor model. That makes it practical to watch a competitor across channels from one script.
Frequently asked questions
- Is there an official Meta Ad Library API for commercial ads?
- Only for commercial ads delivered in the European Union, which Meta added for the Digital Services Act. Commercial ads shown elsewhere are visible on the public Ad Library website but are not returned by the official API.
- Do I need a Facebook developer account to use an alternative?
- Not for an Ad Library API like this one: you sign up with an e-mail address and use an API key. The official Graph API is the option that requires identity verification and a developer app.
- Can I keep my existing ads_archive code?
- Mostly the logic, not the calls. The filters map one to one (search terms to q, page ids to page_id, reached countries to country), and both sources use the same Ad Library ad ids, so stored data stays compatible.
- Which alternative returns images and videos?
- Scrapers of the public library, spy tools and an Ad Library API all return creatives. Media links from Meta expire after a few days, so download the files you want to keep the day you fetch them.
Related guides
- Facebook Ad Library API Limitations: What the Official API Leaves OutWhat the official Meta Ad Library API covers and what it misses: access, countries, ad types, media, rate limits, terms, and when scraping fills the gap.
- How to Scrape the Facebook Ad Library (2026 Guide)Three ways to get Facebook Ad Library data out as JSON: by hand, with your own scraper, or with an API. Working cURL, Python and JavaScript examples.
- How to Spy on Competitor Facebook Ads (Legally, with Data)Find every competitor running Facebook and Instagram ads, list their creatives, hooks, offers and landing pages, and turn the Ad Library into a daily feed.