Facebook Ads Library avatar

Facebook Ads Library

Pricing

from $0.29 / 1,000 ads

Go to Apify Store
Facebook Ads Library

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

Preternix

Maintained by Community

Actor stats

0

Bookmarked

44

Total users

14

Monthly active users

3 days ago

Last modified

Features

Limited permissions

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 searchThis ActorMost-used alternativeSecond alternative
US keyword "protein powder", 15 ads3.2 s, 15 ads73.1 s, 15 ads7.1 s, 15 ads
US brand page (Nike), 15 ads2.2 s, 15 ads58.3 s, 0 ads (blocked)22.8 s, 15 ads
US brand page (Nike), 15 ads, second run3.2 s, 15 ads16.1 s, 15 ads4.9 s, 15 ads
Germany keyword with ad details, 10 ads5.8 s, 10 ads37.0 s, 10 ads9.9 s, 11 ads
Searches with every requested ad4 of 43 of 44 of 4
EU reach as its own column (Germany test)10 of 10 rowsinside a nested details objectinside 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

CapabilityFacebook Ads LibraryManual or single-URL workflow
Keyword, advertiser and Ad Library URL searchAll three in one runOne URL at a time
Creative assets, copy and landing pagesadText, headline, ctaText, image, videoUrl, landingUrl whenever the ad includes themCard text only
New-ad monitoringonlyNewAds skips ads an earlier run deliveredRe-reading the same creatives
Advertiser sizeincludeTotalActiveAds adds the advertiser's active ad countCounting by hand
Your stackPython and JavaScript clients, n8n, Make, Zapier, Apify MCP serverCopy 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.

MeasureThis ActorTool ATool BTool C
Test searches completed3/33/33/33/3
Average run time per search4.0s8.4s18.2s6.1s
Video file link43.3%36.7%43.3%33.3%
Headline83.3%80.0%83.3%76.7%
EU reach33.3%0.0%33.3%33.3%
Call-to-action text93.3%96.7%93.3%93.3%
Landing page96.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.

FieldTypeDescription
pageNamestring or nullThe Facebook page that runs the ad.
pageUrlstring or nullThe advertiser's Facebook page.
pageIdstring or nullThe advertiser's Facebook page id.
adArchiveIdstring or nullThe ad's Meta Ad Library ID.
adLibraryUrlstringThe ad in the Meta Ad Library.
adTextstring or nullThe ad's primary text in full (for dynamic and catalog ads, the first card's text).
adTextSnippetstring or nullThe first 50 characters of the ad text, on one line.
headlinestring or nullThe headline under the creative (for dynamic and catalog ads, the first card's).
ctaTextstring or nullThe call-to-action button text, e.g. Shop now.
landingUrlstring or nullWhere the ad's button leads.
storeEnrichmentobjectWith enrichStores: store platform, currency, detected tools and public contacts when the page is available.
formatstring or nullImage, Video, Carousel, Dynamic creative, Catalog, ...
imagestring or nullThe 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.
videoUrlstring or nullThe ad's video file (standard definition; snapshot.videos also has HD). Expires like the images.
cardsarray or nullAds with two or more cards (carousel, dynamic creative, catalog): every card's headline, text, description, landingUrl, ctaText, image and videoUrl.
platformsarray or nullWhere the ad runs: Facebook, Instagram, Messenger, Threads, Audience Network, WhatsApp.
isActiveboolean or nullStill running when the run read it.
startedAtstring or nullThe day the ad started running (YYYY-MM-DD).
lastShownAtstring or nullThe last day the ad ran: the day it stopped, or the run's day for active ads.
daysActiveinteger or nullDays from Started to Last Shown.
collationCountinteger or nullHow many ads use this creative and text, when Meta says (it tells on one ad of each group).
adsCountinteger or nullHow many ads Meta lists together with this one in the search results (one result group).
rankinteger or nullThe ad's place in its search: most impressions first (with Sort by most recent, most recent first).
totalCountinteger or nullMeta's count of matching ads. When totalCountIsCapped is true, 50000 means 50,000+.
pageLikesinteger or nullLikes of the advertiser's Facebook page.
creativeHiddenbooleanTrue 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.
spendstring or nullPolitical and issue ads only: Meta's spend range, e.g. $45K - $50K.
impressionsstring or nullPolitical and issue ads only: Meta's impressions range, e.g. >1M.
paidForstring or nullPolitical and issue ads only: the Paid for by disclaimer.
euReachinteger or nullWith Include ad details: people reached in the EU (ads shown in the EU only).
reachByCountryarray or nullWith Include ad details: people reached per country, most first, e.g. DE: 12,345 (EU/UK ads).
targetAgesstring or nullWith Include ad details: the targeted age range, e.g. 18-65+ (EU/UK ads).
targetGenderstring or nullWith Include ad details: the targeted gender (EU/UK ads).
payerstring or nullWith Include ad details: who paid for the ad (EU/UK ads).
beneficiarystring or nullWith Include ad details: who the ad benefits (EU/UK ads).
isPageVerifiedboolean or nullWith Include ad details: the advertiser's page has Meta's verified badge.
instagramUrlstring or nullWith Include ad details: the advertiser's Instagram account.
instagramFollowersinteger or nullWith Include ad details: followers of that Instagram account.
pageTotalActiveAdsinteger or nullMeta's active ad count for this advertiser in the selected countries, if requested.
searchInputstringThe search term, advertiser or Ad Library URL that found the ad.
scrapedAtstringWhen 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

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 ApifyClient
client = 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-library as 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

  1. Enter one or more Search terms, Advertisers or Ad Library URLs.
  2. Set Country (two-letter code like US, or ALL) and Max ads per search.
  3. Optional: turn on Include ad details for EU and UK reach and advertiser profile data.
  4. Click Start, then export the dataset as CSV, JSON or Excel.

Input parameters

Give at least one of searchQueries, advertisers, startUrls or adIds.

ParameterTypeDefaultDescription
searchQueriesarray-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.
advertisersarray-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.
countrystring"ALL"Country. Two-letter country code where the ads ran (US, GB, DE, ...), or ALL for every country (left out = ALL).
maxAdsPerQueryinteger200Max 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.
includeAdDetailsbooleanfalseInclude 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.
enrichStoresbooleanfalseEnrich advertiser landing pages. Add store and public contact details when found.
onlyNewAdsbooleanfalseOnly 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.
includeAboutPagebooleanfalseInclude advertiser page info. Add the public page transparency and profile information Meta returns, including linked Instagram details when available.
includeTotalActiveAdsbooleanfalseInclude advertiser active ad count. Add Meta’s total active ad count for each advertiser in the selected countries, independent of other search filters.
onlyTotalbooleanfalseOnly 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.
startUrlsarray-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.
adIdsarray-Ad Library IDs. Look up individual ads by Library ID or by Ad Library links with ?id=.
sortBystring"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.
activeStatusstring"active"Ad status. active (default): only active ads; inactive: only ads that stopped; all: both. Options: active, inactive, all.
mediaTypestring"all"Media type. Only ads with this kind of media. Options: all, image, video, meme, image_and_meme, none.
adTypestring"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.
countriesarray-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.
contentLanguagesarray-Ad language. Only ads in these languages, as two-letter codes (en, es, de, fr, ...). Left empty: every language.
publisherPlatformsarray-Platforms. Only ads shown on any of these platforms. Left empty: every platform. Options: facebook, instagram, messenger, audience_network, threads, whatsapp.
exactPhrasebooleanfalseExact phrase. Match the search terms as an exact phrase instead of any order.
dateFromstring-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.
dateTostring-Shown on or before. Only ads that were shown on or before this date (YYYY-MM-DD).
proxyConfigurationobject{"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.

EventFreeStarterScaleBusiness
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.