Facebook Ads Library Scraper avatar

Facebook Ads Library Scraper

Pricing

from $0.80 / 1,000 result items

Go to Apify Store
Facebook Ads Library Scraper

Facebook Ads Library Scraper

Facebook Ads Library scraper for Meta ads by keyword, advertiser Page or Ad Library link: ad id, Page, dates, status, platforms, text, link, CTA, images, videos, political spend and impressions. All filters, no login, no browser. Monitor mode returns only new ads.

Pricing

from $0.80 / 1,000 result items

Rating

0.0

(0)

Developer

Viktor Dubnytskiy

Viktor Dubnytskiy

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

12 days ago

Last modified

Features

Limited permissions

Share

Facebook Ads Library Scraper returns ads from the public Meta Ad Library by keyword, by advertiser Page or from any Ad Library search link, one row per ad with the ad id and link, the advertiser Page, start and end dates, active flag, platforms, ad text, headline, landing page link, call to action, image and video URLs, carousel cards and the number of ads that share the creative. Political and issue ads also carry the public spend and impressions ranges and the paid-for-by disclaimer. No Facebook account, cookies or API key needed.

Try it: the prefilled example returns 20 rows in about 33 seconds and costs about $0.02 (results plus platform usage). Results cost $1.00 per 1,000.

Coverage: every search is read page by page (10 ads per request) until your limit or the end of Facebook's results. Platform usage is paid by you and comes on top of the result price: the actor reads ads through Apify residential proxy, which cost about $0.04 per 1,000 ads in our measurement (1,000 ads, 10.3 MB of residential traffic, 512 MB memory). Facebook shows no spend or impressions for commercial ads, and EU reach figures live on each ad's detail panel, which this actor does not open.

Why this one

  • Monitor mode with alerts for new ads. Save a keyword or a competitor's Page as a task and schedule it: the first run records the ads it sees, every later run returns only ads that were not there before and can post a summary to your webhook or Telegram. The two leading Ad Library scrapers have no monitor mode in their input: every run returns all matching ads again.
  • Plain keywords and filters as input, no URL building. Type nike, pick the country, active status, ad category (political, housing, employment, financial), media type, platforms, ad language, exact phrase and the date range in the form. The most used alternative accepts only Ad Library or Page URLs and has no fields for ad category, media type, platform or language. Pasting Ad Library links and Page links works here too, and a Page link is turned into its Ad Library id for you.
  • Political ads with public spend, impressions and reach ranges plus the paid-for-by organisation, in their own columns.
  • No browser. The actor talks to the Ad Library over plain HTTP, so 1,000 ads took 237 seconds on 512 MB in our test.
  • Price: $1.00 per 1,000 ads plus platform usage (about $0.04 per 1,000, paid by you). apify/facebook-ads-scraper charges $5.80 per 1,000 on the free plan with usage included; curious_coder/facebook-ads-library-scraper charges $0.75 per 1,000 plus $0.00005 per run start with usage included, which is cheaper than this actor per ad.

What you get

Real rows from the example dataset:

pageNamestartDatepublisherPlatformsdisplayFormattitlectaTextcollationCount
Nike2025-06-20facebook, instagramDPANike Air Monarch IVShop nowNone
Nike2026-10-23facebook, instagramDPANike Air Monarch IVShop nowNone
Nike2026-10-23facebook, instagramDPANike Air Monarch IVShop nowNone
Whatnot2026-08-20facebook, instagram, messengerDPAWhatnot: Shop, Sell, ConnectInstall nowNone

Full row: id, url, adArchiveId, adLibraryUrl, pageId, pageName, pageUrl, pageProfilePictureUrl, pageCategories, advertiserMasked, pageLikeCount, isActive, startDate, endDate, startTimestamp, endTimestamp, publisherPlatforms, displayFormat, bodyText, title, linkUrl, linkDescription, caption, ctaText, ctaType, images, videos, cards, collationCount, collationId, categories, spend, impressions, reachEstimate, currency, paidForBy, disclaimerLabel, countryCode, targetedOrReachedCountries, totalActiveTimeSeconds, containsSensitiveContent, containsAiGeneratedMedia, source, query, scrapedAt.

collationCount is Facebook's "N ads use this creative" count. Catalogue ads whose text is a template such as {{product.name}} get the text of their first card instead.

Input

  • Search keywords: words to look for in ads, such as nike. Use Exact phrase for phrase search.
  • Advertiser Pages: Page links (https://www.facebook.com/nike), numeric Page ids, or Ad Library links with view_all_page_id.
  • Ad Library URLs: paste a search from facebook.com/ads/library and its filters are used as they are.
  • Filters: country (or ALL), active or inactive ads, ad category (political and issue, housing, employment, financial), media type, platforms, ad languages, the date range when ads were shown, and sort order.

Monitor mode

Save the input as a task and set Mode to Monitor. Each keyword, Page or Ad Library link is watched separately, and monitor runs read Facebook's "Most recent" order.

  • The first run of a search records the ads it reads (up to Max ads per keyword or Page) and pushes nothing; the run summary says baseline.
  • Later runs return an ad (changeType: "new") when its id was never seen by that search and it started no more than 2 days before the newest ad the search has seen. Ads appear in the Library within hours of their start, so a genuinely new ad passes; an unseen ad that started earlier (one that sat deeper than the previous read, since Facebook's "Most recent" order is grouped by month and not strictly newest first) is recorded silently, not sold as new. Each run reads up to Max ads per keyword or Page of ads it does not know yet, so an out-of-order page of older ads does not hide new ones after it.
  • What can still come out as new without being new: an ad that started within about 2 days before the baseline but was not among the ads the baseline read. A higher Max ads per keyword or Page makes this rarer.
  • A run with nothing new says no_new_items in the run summary and charges only the monitor check.
  • Changing a search's keyword, filters, country or Max ads per keyword or Page starts a new baseline for it; adding a keyword gives that keyword its own baseline while the others keep reporting.
  • A run that Facebook blocks pushes and charges nothing and keeps the previous state. If a run crashes, the monitor state stays locked until that run's timeout and later runs end as overlapping_run; wait or use a new monitorStateId.
  • Add a webhook URL or a Telegram bot to get a summary of the new ads.

Limits

  • Facebook publishes spend, impressions and reach only for political and issue ads; for other ads these fields are empty.
  • EU audience breakdowns and the per-ad detail panel are not read.
  • Facebook returns 10 ads per request; a search with tens of thousands of ads takes about 4 minutes per 1,000 ads.
  • Facebook rate-limits logged-out searches from datacenter IPs, so every search goes through residential proxy (its traffic is your platform usage). If Facebook still refuses after three fresh residential exits, the run stops that search and says so in the log.
  • Ad text, links and media are returned as Facebook shows them; tracking macros in landing page links (such as {{campaign.name}}) are left as published.

Privacy

Most advertisers in the Ad Library are business Pages, and the actor returns the Page and its ads as Facebook publishes them. Some ads are run by personal profiles (Facebook files them under the category "Profile" or "Personal blog"; 8 of 1,000 ads for "shoes" in our test): for those the ad is kept, but the advertiser's name, link, id and picture are left out and advertiserMasked is true. A paid-for-by disclaimer is written only when it matches an organisation pattern (Inc, LLC, PAC, Party, Committee, Foundation, "for Senate", "Friends of" and the like) and is not just a two or three word name. Personal profiles are not accepted as input.

Pricing

$1.00 per 1,000 ads ($0.001 per ad; $0.0009 on Silver, $0.0008 on Gold and higher plans). Monitor mode: $0.005 per run plus $0.001 per new ad. Platform usage (mostly residential proxy traffic, about $0.04 per 1,000 ads) is billed by Apify to your account. If the actor works for you, a short review on the Store helps a lot.

FAQ

Do I need a Facebook account? No.

Why are spend and impressions empty? Facebook publishes them only for political and issue ads.

Facebook changed something and the run is empty? The run summary (RUN_SUMMARY in the key-value store) says why: blocked, rate_limited or no_matches. Facebook rotates its internal query id from time to time; the actor reads the new one from Facebook's own scripts.

Changelog

  • 0.1: first release: keyword, Page and Ad Library link search with all Ad Library filters, plain-HTTP route without a browser, political spend and impressions, monitor mode for new ads.