Facebook Ads Library
Pricing
from $0.29 / 1,000 ads
Facebook Ads Library
Facebook Ads Library scraper, Facebook Ad Library scraper and Meta Ad Library API: Facebook and Instagram ads by keyword, advertiser or Ad Library URL; one row per ad with text, media, landing page, dates, advertiser and EU reach. $0.45 per 1,000 ads on Starter, 11x cheaper than the most-used rival.
Pricing
from $0.29 / 1,000 ads
Rating
0.0
(0)
Developer
Preternix
Maintained by CommunityActor stats
0
Bookmarked
44
Total users
14
Monthly active users
3 days ago
Last modified
Categories
Features
Share
Type a keyword, get 15 ads in 3 seconds, $0.45 per 1,000 ads on the Starter plan.
Search the Meta Ad Library by keyword, advertiser or Ad Library link, pick a country, and get one clean row per ad. Every row has the ad text, headline, image and video links, call-to-action button, landing page, start and last-shown dates, days active, platforms and the advertiser page. For ads shown in the EU or UK you can add Meta's reach per country, targeted ages and gender, payer and beneficiary. No Facebook account, no cookies and no Meta developer token, so it also works as a Meta Ad Library API alternative.
Quick summary
- Search ads three ways: keywords as you would type them in the Ad Library, advertisers (Facebook page URLs, usernames, page IDs, Instagram handles), or Ad Library URLs and ad IDs.
- Facebook, Instagram, Messenger, Threads, Audience Network and WhatsApp ads, filtered by country, status, media type, language, platform, special ad category and date range.
- Creative intelligence: full ad text, headline, CTA, landing page, format, carousel cards, image and video files, days active and Meta's own ad count.
- Optional landing page enrichment: find e-commerce platforms, tracking tools and public contact details.
- EU and UK transparency data with Include ad details: reach, reach by country, ages, gender, payer and beneficiary, at no extra cost.
- Only new ads mode for daily competitor monitoring.
- Pay per ad from $0.29 per 1,000 ads, no start fee. Export to CSV, JSON or Excel.
How it compares
Speed, reliability and price
We ran this Actor and the two most-used other Facebook Ad Library Actors on Apify on November 29, 2026. Every tool got the same 4 searches, started in the same second.
| Test search | This Actor | Most-used alternative | Second alternative |
|---|---|---|---|
| US keyword "protein powder", 15 ads | 3.2 s, 15 ads | 73.1 s, 15 ads | 7.1 s, 15 ads |
| US brand page (Nike), 15 ads | 2.2 s, 15 ads | 58.3 s, 0 ads (blocked) | 22.8 s, 15 ads |
| US brand page (Nike), 15 ads, second run | 3.2 s, 15 ads | 16.1 s, 15 ads | 4.9 s, 15 ads |
| Germany keyword with ad details, 10 ads | 5.8 s, 10 ads | 37.0 s, 10 ads | 9.9 s, 11 ads |
| Searches with every requested ad | 4 of 4 | 3 of 4 | 4 of 4 |
| EU reach as its own column (Germany test) | 10 of 10 rows | inside a nested details object | inside a nested details object |
| Price per 1,000 ads (Starter plan) | $0.45 | $5.00 | $0.75 |
Times are each run's own run time on Apify. The blocked run still charged for an error row. Results vary with your inputs, and the other tools are not named.
Compared with browsing the Ad Library by hand
| Capability | Facebook Ads Library | Manual or single-URL workflow |
|---|---|---|
| Keyword, advertiser and Ad Library URL search | All three in one run | One URL at a time |
| Creative assets, copy and landing pages | adText, headline, ctaText, image, videoUrl, landingUrl whenever the ad includes them | Card text only |
| New-ad monitoring | onlyNewAds skips ads an earlier run delivered | Re-reading the same creatives |
| Advertiser size | includeTotalActiveAds adds the advertiser's active ad count | Counting by hand |
| Your stack | Python and JavaScript clients, n8n, Make, Zapier, Apify MCP server | Copy and paste |
Field coverage
An earlier test on November 24, 2026 ran this Actor and three other Facebook Ad Library Actors side by side with 3 searches (a US keyword, a US brand page and a German keyword, 30 ads per tool). Tools A, B and C are anonymized separately from the table above.
| Measure | This Actor | Tool A | Tool B | Tool C |
|---|---|---|---|---|
| Test searches completed | 3/3 | 3/3 | 3/3 | 3/3 |
| Average run time per search | 4.0s | 8.4s | 18.2s | 6.1s |
| Video file link | 43.3% | 36.7% | 43.3% | 33.3% |
| Headline | 83.3% | 80.0% | 83.3% | 76.7% |
| EU reach | 33.3% | 0.0% | 33.3% | 33.3% |
| Call-to-action text | 93.3% | 96.7% | 93.3% | 93.3% |
| Landing page | 96.7% | 100.0% | 96.7% | 96.7% |
Percentages show how often each field was filled. Ad text, ad ID, page name, page ID, media links, platforms and start date were filled on every row by all four tools. Run time is wall-clock time per search. Other tools are anonymized, and results vary with your inputs.
Output & Data Fields
One row per ad. The same ad is delivered once per run, even when several searches find it.
| Field | Type | Description |
|---|---|---|
pageName | string or null | The Facebook page that runs the ad. |
pageUrl | string or null | The advertiser's Facebook page. |
pageId | string or null | The advertiser's Facebook page id. |
adArchiveId | string or null | The ad's Meta Ad Library ID. |
adLibraryUrl | string | The ad in the Meta Ad Library. |
adText | string or null | The ad's primary text in full (for dynamic and catalog ads, the first card's text). |
adTextSnippet | string or null | The first 50 characters of the ad text, on one line. |
headline | string or null | The headline under the creative (for dynamic and catalog ads, the first card's). |
ctaText | string or null | The call-to-action button text, e.g. Shop now. |
landingUrl | string or null | Where the ad's button leads. |
storeEnrichment | object | With enrichStores: store platform, currency, detected tools and public contacts when the page is available. |
format | string or null | Image, Video, Carousel, Dynamic creative, Catalog, ... |
image | string or null | The ad's picture: its first image, the video's preview frame, or the first card's image. Meta's image links expire about 5 days after the run. |
videoUrl | string or null | The ad's video file (standard definition; snapshot.videos also has HD). Expires like the images. |
cards | array or null | Ads with two or more cards (carousel, dynamic creative, catalog): every card's headline, text, description, landingUrl, ctaText, image and videoUrl. |
platforms | array or null | Where the ad runs: Facebook, Instagram, Messenger, Threads, Audience Network, WhatsApp. |
isActive | boolean or null | Still running when the run read it. |
startedAt | string or null | The day the ad started running (YYYY-MM-DD). |
lastShownAt | string or null | The last day the ad ran: the day it stopped, or the run's day for active ads. |
daysActive | integer or null | Days from Started to Last Shown. |
collationCount | integer or null | How many ads use this creative and text, when Meta says (it tells on one ad of each group). |
adsCount | integer or null | How many ads Meta lists together with this one in the search results (one result group). |
rank | integer or null | The ad's place in its search: most impressions first (with Sort by most recent, most recent first). |
totalCount | integer or null | Meta's count of matching ads. When totalCountIsCapped is true, 50000 means 50,000+. |
pageLikes | integer or null | Likes of the advertiser's Facebook page. |
creativeHidden | boolean | True when Meta shows this ad's picture or video only to logged-in Facebook users (gatedType LOGGED_OUT, often creator profiles): the row has the ad's text, advertiser and dates but no image or videoUrl. |
spend | string or null | Political and issue ads only: Meta's spend range, e.g. $45K - $50K. |
impressions | string or null | Political and issue ads only: Meta's impressions range, e.g. >1M. |
paidFor | string or null | Political and issue ads only: the Paid for by disclaimer. |
euReach | integer or null | With Include ad details: people reached in the EU (ads shown in the EU only). |
reachByCountry | array or null | With Include ad details: people reached per country, most first, e.g. DE: 12,345 (EU/UK ads). |
targetAges | string or null | With Include ad details: the targeted age range, e.g. 18-65+ (EU/UK ads). |
targetGender | string or null | With Include ad details: the targeted gender (EU/UK ads). |
payer | string or null | With Include ad details: who paid for the ad (EU/UK ads). |
beneficiary | string or null | With Include ad details: who the ad benefits (EU/UK ads). |
isPageVerified | boolean or null | With Include ad details: the advertiser's page has Meta's verified badge. |
instagramUrl | string or null | With Include ad details: the advertiser's Instagram account. |
instagramFollowers | integer or null | With Include ad details: followers of that Instagram account. |
pageTotalActiveAds | integer or null | Meta's active ad count for this advertiser in the selected countries, if requested. |
searchInput | string | The search term, advertiser or Ad Library URL that found the ad. |
scrapedAt | string | When the run started (UTC). |
Other fields in the dataset: spendMin, spendMax, currency, reachEstimate, totalCountIsCapped, pageTotalActiveAdsIsCapped, pageAbout, detailsStatus, ukReach.
Every row also carries Meta's full ad record (such as snapshot and publisherPlatform) under the field names other Ad Library tools use, so existing pipelines keep working.
Sample output
Selected fields from a real row of a US search for "protein powder" (signed media links shortened):
{"pageName": "Just Ingredients Shop","pageUrl": "https://www.facebook.com/100083349256793/","pageId": "104938532182459","adArchiveId": "1694952298821099","adLibraryUrl": "https://www.facebook.com/ads/library/?id=1694952298821099","adText": "The easy part of your day","headline": "Just Ingredients Protein Powder","ctaText": "Shop now","landingUrl": "https://justingredients.com/collections/electrolytes","format": "Video","image": "https://scontent-lga3-2.xx.fbcdn.net/v/t39.35426-6/841437522_1060676150301499_3927428718582706680_n.jpg?_nc_ca...","videoUrl": "https://video-lga3-3.xx.fbcdn.net/o1/v/t2/f2/m412/AQPjO48VqQogXBVGijkOEiEWlFp2k6Y-q8ZeDCmCnAThSzbInNts4DyIzQNI...","platforms": ["Facebook","Instagram","Audience Network"],"isActive": true,"startedAt": "2026-10-08","lastShownAt": "2026-11-23","daysActive": 46,"collationCount": 1,"adsCount": 1,"rank": 1,"totalCount": 21598,"pageLikes": 3202,"creativeHidden": false,"searchInput": "https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=US&media_type=all&search_type=k...","scrapedAt": "2026-11-24T05:09:00Z"}
Features
Keyword, advertiser and URL search
Search terms (searchQueries) work like the Ad Library search box, and Exact phrase (exactPhrase) matches the words in order. Advertisers (advertisers) accepts Facebook page URLs, usernames, page IDs, advertiser names, Ad Library URLs and Instagram profile URLs or @handles. Ad Library URLs (startUrls) reuses a search you already built in the browser, filters included, and Ad Library IDs (adIds) looks up single ads.
Every Ad Library filter
Filter by Country (country) or Several countries (countries), Ad status (activeStatus), Media type (mediaType), Ad category (adType, including political and issue, housing, employment and credit ads), Ad language (contentLanguages), Platforms (publisherPlatforms) and the date range the ads were shown (dateFrom, dateTo). Sort ads by (sortBy) returns top ads by impressions first or the most recent first.
Ad details and advertiser data
Include ad details (includeAdDetails) adds the advertiser's verification badge, Instagram account and followers, and for EU or UK ads the reach, reach by country, targeted ages and gender, payer and beneficiary. Include advertiser page info (includeAboutPage) adds Meta's public page transparency data in pageAbout, and Include advertiser active ad count (includeTotalActiveAds) adds pageTotalActiveAds. None of these add a charge.
Landing page enrichment
Turn on Enrich advertiser landing pages (enrichStores) to add storeEnrichment to ads with a landing page we can read. It includes platform, isEcommerce, currency when detected, technologies, contactEmails, and socialLinks. The first page we can check for each domain supplies the result for that domain. We check pages directly without residential proxies and skip redirects to other domains. We don't run page scripts or follow contact links, so contact and tracking details may be incomplete. If a page is unavailable or the lookup budget is used up, the ad still appears without the extra field.
Monitoring and counting
Only new ads (onlyNewAds) skips ads already delivered for the same search and filters, so a scheduled run returns only fresh creatives. Only retrieve counts (onlyTotal) saves Meta's matching ad counts to the run summary without writing or charging for ad rows, which is ideal for market sizing.
Deep pagination
When Meta limits how far a search can page, the Actor scans smaller date ranges and skips ads it already delivered, so Max ads per search (maxAdsPerQuery) can go far beyond the first pages. Use 0 for no per-search limit within your run's spending and time limits.
Integrations & Export Formats
Download results as CSV, JSON, Excel (XLSX), XML, HTML or RSS from the Output tab, or connect the dataset to your tools.
Python (apify-client)
from apify_client import ApifyClientclient = ApifyClient("<YOUR_APIFY_TOKEN>")run_input = {"advertisers": ["https://www.facebook.com/nike/"],"country": "US","activeStatus": "active","maxAdsPerQuery": 100,"includeAdDetails": True}run = client.actor("deepmine/meta-ad-library").call(run_input=run_input)for ad in client.dataset(run["defaultDatasetId"]).iterate_items():print(ad["startedAt"], ad["daysActive"], ad["headline"], ad["landingUrl"])
JavaScript / Node.js (apify-client)
import { ApifyClient } from "apify-client";const client = new ApifyClient({ token: "<YOUR_APIFY_TOKEN>" });const input = {"searchQueries": ["running shoes"],"countries": ["GB", "DE", "FR"],"mediaType": "video","sortBy": "impressions","maxAdsPerQuery": 200,"includeAdDetails": true};const run = await client.actor("deepmine/meta-ad-library").call(input);const { items } = await client.dataset(run.defaultDatasetId).listItems();console.log(items.map((ad) => [ad.pageName, ad.euReach, ad.videoUrl]));
REST API
curl -X POST "https://api.apify.com/v2/acts/deepmine~meta-ad-library/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>" \-H "Content-Type: application/json" \-d '{"searchQueries": ["protein powder"], "country": "US", "maxAdsPerQuery": 50}'
No-code tools and AI agents
- Google Sheets: keep a swipe file of competitor ads that updates on a schedule through the Apify Google Sheets integration.
- n8n, Make and Zapier: add the Apify module, run the Actor daily with Only new ads and post each new competitor creative to Slack, Notion, Airtable, Google Sheets or your CRM.
- Clay: call the run-sync endpoint from an HTTP API column to check whether each account in a list is running Meta ads and how many.
- Apify MCP server: connect it in Claude Desktop, Cursor, Windsurf or any MCP client, and let an AI agent call
deepmine/meta-ad-libraryas a live tool to pull ads for a brand or keyword and summarize hooks, offers and landing pages. - Webhooks and the REST API: start runs asynchronously and get a webhook with the dataset ID the moment a run finishes, then fetch it as JSON or CSV.
How to Use & API Parameters
Quick start
- Enter one or more Search terms, Advertisers or Ad Library URLs.
- Set Country (two-letter code like
US, orALL) and Max ads per search. - Optional: turn on Include ad details for EU and UK reach and advertiser profile data.
- Click Start, then export the dataset as CSV, JSON or Excel.
Input parameters
Give at least one of searchQueries, advertisers, startUrls or adIds.
| Parameter | Type | Default | Description |
|---|---|---|---|
searchQueries | array | - | Search terms. Keywords to search ads for, as you'd type them in the Ad Library search box. Give at least one of searchQueries, advertisers, startUrls or adIds. |
advertisers | array | - | Advertisers. Accepts Facebook page URLs, usernames, page IDs, advertiser names, their Ad Library URLs, and Instagram profile URLs or @handles. Instagram results are matched to their advertising page. |
country | string | "ALL" | Country. Two-letter country code where the ads ran (US, GB, DE, ...), or ALL for every country (left out = ALL). |
maxAdsPerQuery | integer | 200 | Max ads per search. Stop each search, advertiser or URL after this many ads. Use 0 for no per-search limit. When Meta limits pagination, the Actor scans smaller date ranges, which can change the overall order. |
includeAdDetails | boolean | false | Include ad details. Also fetch each ad's details: the advertiser's verification and Instagram account and followers and, for ads shown in the EU or UK, the reach, reach by country, targeted ages and gender, plus the payer and beneficiary. |
enrichStores | boolean | false | Enrich advertiser landing pages. Add store and public contact details when found. |
onlyNewAds | boolean | false | Only new ads. For the same search and filters, skip ads already delivered by this monitor. Runs use the newest ads first. The first run has no history. |
includeAboutPage | boolean | false | Include advertiser page info. Add the public page transparency and profile information Meta returns, including linked Instagram details when available. |
includeTotalActiveAds | boolean | false | Include advertiser active ad count. Add Meta’s total active ad count for each advertiser in the selected countries, independent of other search filters. |
onlyTotal | boolean | false | Only retrieve counts. Save Meta’s counts to the run summary (OUTPUT), without writing or charging for ad rows. Capped totals appear as 50000 with isCapped set to true. |
startUrls | array | - | Ad Library URLs. Ad Library search or ad links, Facebook page URLs, and Instagram profile URLs. Ad Library search links use the filters in the URL. |
adIds | array | - | Ad Library IDs. Look up individual ads by Library ID or by Ad Library links with ?id=. |
sortBy | string | "impressions" | Sort ads by. impressions (default): top ads first, the ones with the most impressions, as the Ad Library sorts them; recent: most recent first (grouped by the month they started). Options: impressions, recent. |
activeStatus | string | "active" | Ad status. active (default): only active ads; inactive: only ads that stopped; all: both. Options: active, inactive, all. |
mediaType | string | "all" | Media type. Only ads with this kind of media. Options: all, image, video, meme, image_and_meme, none. |
adType | string | "all" | Ad category. All ads, or only one of Meta's special categories: social issues, elections or politics (these carry spend and impressions ranges), housing, employment, or credit and financial products. Options: all, political_and_issue_ads, housing_ads, employment_ads, credit_ads. |
countries | array | - | Several countries. Two-letter country codes (US, GB, DE, ...) to search all at once, instead of the one Country above. Each search covers all of them, and an ad shown in several of them is one row. |
contentLanguages | array | - | Ad language. Only ads in these languages, as two-letter codes (en, es, de, fr, ...). Left empty: every language. |
publisherPlatforms | array | - | Platforms. Only ads shown on any of these platforms. Left empty: every platform. Options: facebook, instagram, messenger, audience_network, threads, whatsapp. |
exactPhrase | boolean | false | Exact phrase. Match the search terms as an exact phrase instead of any order. |
dateFrom | string | - | Shown on or after. Only ads that were shown on or after this date (YYYY-MM-DD), whatever day they started. This is the Ad Library's own date filter. |
dateTo | string | - | Shown on or before. Only ads that were shown on or before this date (YYYY-MM-DD). |
proxyConfiguration | object | {"useApifyProxy": true, "apifyProxyGr... | Proxy. Residential proxies are the default: Meta refuses most datacenter IPs past the first page of results, so an Apify Proxy setting without residential still reads the result pages over residential (at no cost to you). |
Example input
{"searchQueries": ["protein powder"],"advertisers": ["https://www.facebook.com/nike/"],"country": "US","activeStatus": "active","sortBy": "impressions","maxAdsPerQuery": 100,"includeAdDetails": true}
Use Cases
Competitor ad research
Add your competitors' Facebook pages to Advertisers and see every active ad they run: creative, copy, offer, landing page and how long each ad has been live. Long-running ads (daysActive) are usually the winners.
Creative inspiration and swipe files
Collect top ads by impressions for a niche and country, with hooks, headlines, buttons, image links and video files, to brief designers and UGC creators.
Facebook ads spy for agencies and media buyers
Monitor client categories daily with Only new ads and report new creatives, new landing pages and new markets as soon as they appear.
Market sizing and lead generation
Use Only retrieve counts to measure how many advertisers and ads target a keyword in each country, or export advertiser pages running ads as warm leads for agency outreach.
EU transparency and political ad research
With Include ad details and Ad category set to political and issue ads, collect reach by country, targeting, spend and impressions ranges, payer and beneficiary for research and compliance work.
Pricing
Facebook Ads Library uses pay-per-event pricing: you pay for each ad saved to your dataset. Ad details, advertiser page info, active ad counts and count-only runs add no charge, and there is no start fee.
| Event | Free | Starter | Scale | Business |
|---|---|---|---|---|
| Ad (per 1,000) | $0.55 | $0.45 | $0.39 | $0.29 |
Volume discounts apply automatically by Apify plan. A run of 100 ads on the Starter plan costs a few cents. To stay in budget, set Max ads per search and a maximum cost per run in Apify's run options.
FAQ
How do I scrape the Facebook Ad Library?
Enter a keyword in Search terms (searchQueries), a brand page in Advertisers (advertisers) or an Ad Library link in Ad Library URLs (startUrls), choose a Country (a two-letter code, or ALL), and run. Each ad becomes a row you can download as CSV, JSON or Excel, with the ad text, creative links, landing page and dates. Facebook and Instagram ads come back the same way.
How fast is it, and what does it cost?
In our November 29, 2026 test, 15 ads for a US keyword took 3.2 seconds, and 4 test searches took 2.2 to 5.8 seconds each. You pay $0.45 per 1,000 ads on the Starter plan ($0.29 on Business), with no start fee.
Does it return the ad copy, call-to-action, landing page and video?
Yes, whenever the ad includes them. adText, headline, ctaText, landingUrl, format, image and videoUrl are extracted directly from the ad creative, with pageName and adArchiveId on every row. Include ad details (includeAdDetails) adds EU and UK reach, targeting, payer and beneficiary.
Is this a Meta Ad Library API alternative?
Yes. Meta's official Ad Library API needs a developer app and identity verification before you can query it. This Actor reads the public Ad Library logged out, covers every ad category the Library shows, and returns structured JSON through the Apify API with no Meta setup.
Can I download the ad images and videos?
Yes. image holds the creative's picture and videoUrl the video file. Meta's media links are signed and expire about 5 days after the run, so download the files you want to keep.
Can I see how many ads a competitor is running?
Yes. Turn on Include advertiser active ad count to add pageTotalActiveAds for each advertiser in the selected countries, or use Only retrieve counts to get Meta's counts without paying for ad rows.
Can I get only ads that are new since my last run?
Yes. Turn on Only new ads. For the same search and filters, ads delivered by an earlier run are skipped, so scheduled runs return only fresh ads and you are not charged again for ads that search already delivered. The first run has no history, and each search and filter set keeps its own history.
Can I send the ads to Slack, n8n or an AI agent?
Yes. Call deepmine/meta-ad-library from the Apify Python or JavaScript client, the Apify module in n8n or Make, or the Apify MCP server, and send each run's ads to Slack, a sheet or an AI agent that summarizes the winning hooks and landing pages.
Why do some rows say creativeHidden is true?
Meta shows the picture or video of a few ads only to logged-in viewers. Those rows still have the advertiser, text, dates and platforms.
Do I need a Facebook account, cookies or a developer token?
No. The Actor reads the public Ad Library without logging in.