Facebook Ads Library Scraper - Meta & Instagram Ads, No Login avatar

Facebook Ads Library Scraper - Meta & Instagram Ads, No Login

Pricing

from $0.56 / 1,000 results

Go to Apify Store
Facebook Ads Library Scraper - Meta & Instagram Ads, No Login

Facebook Ads Library Scraper - Meta & Instagram Ads, No Login

Facebook Ads Library scraper and unofficial Meta Ad Library API. Scrape Facebook and Instagram ads by keyword, advertiser or Ad Library URL without login: ad copy, images, videos, carousel cards, landing pages, start dates, platforms, political ad spend. Export to JSON, CSV or Excel.

Pricing

from $0.56 / 1,000 results

Rating

0.0

(0)

Developer

Nexus Cortex

Nexus Cortex

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

5 days ago

Last modified

Features

Limited permissions

Share

Facebook Ads Library Scraper & Unofficial Meta Ad Library API (No Login)

Scrape ads from the public Meta Ad Library (facebook.com/ads/library) by keyword, advertiser page or Ad Library URL, and get clean rows ready for spreadsheets: ad copy, headline, images, video files, carousel and catalog cards, landing page and domain, call-to-action button, start date, days running, platforms (Facebook, Instagram, Messenger, Audience Network, Threads), number of ad versions, and for political and issue ads the spend, impressions and "Paid for by" disclaimer.

No Facebook account, cookies, access token or Meta developer app needed. The Actor reads only what any logged-out visitor can see in the Ad Library, over plain HTTP (no browser), so it is fast and cheap: roughly 300-400 ads per minute in our tests.

Use it as a Facebook ad spy tool, an Instagram ads scraper, a competitor ad monitor or an unofficial Meta Ad Library API from your code, Make, Zapier, n8n or Google Sheets.

How to scrape the Facebook Ads Library

  1. Click Try for free (or Start) on this page.
  2. Enter keywords, advertisers (Facebook page URLs, page usernames or page IDs), or paste search URLs copied from the Ad Library.
  3. Pick a country and, if you like, filters: active or inactive ads, media type, platforms, languages, dates, political ads only.
  4. Set Maximum results to cap the size and cost of the run, then run the Actor and download the ads as JSON, CSV or Excel, or read them through the Apify API.

What you can do with it

  • Competitor research: get every ad a brand is running (advertisers: ["nike"]), see which creatives have been running longest (daysActive) and how many versions each ad has (versionsCount).
  • Creative inspiration and swipe files: search a niche ("protein powder", "skincare") and collect the ad copy, headlines, images and video files.
  • Landing page and offer research: linkUrl and linkDomain show where each ad sends traffic; catalog and carousel ads list every product card with its own link and image.
  • Monitoring: schedule a daily run per competitor or keyword and compare new adArchiveIds.
  • Political and issue ads: spend range, impressions range, currency and the "Paid for by" disclaimer for transparency and research work.

Input

FieldDescription
searchQueriesKeywords to search, one per line
advertisersFacebook page URLs (https://www.facebook.com/nike), usernames (nike) or numeric page IDs (15087023444). Returns all ads of each page
startUrlsSearch URLs copied from facebook.com/ads/library (keyword search or an advertiser's "See all ads" page). Filters in the URL are kept
countryCountry where the ads were shown, or ALL
activeStatusactive, inactive or all
adTypeall or political_and_issue_ads
mediaTypeall, image, video, meme, image_and_meme, none
exactPhraseMatch keywords as an exact phrase
platformsOnly ads on facebook, instagram, audience_network, messenger, threads
languagesOnly ads in these languages (en, de, ...)
dateFrom, dateToOnly ads that had impressions in this date range (2026-10-01, or 30 days)
sortByrelevance or impressions (most impressions first)
maxItemsTotal cap on ads for the run (default 50). This is also your maximum spend
maxItemsPerSourceCap per keyword, advertiser or URL (default 200)
proxyConfigurationApify Proxy settings (default: residential Apify Proxy)

Example:

{
"searchQueries": ["running shoes"],
"advertisers": ["nike", "https://www.facebook.com/Gymshark"],
"country": "US",
"activeStatus": "active",
"mediaType": "all",
"maxItems": 200,
"maxItemsPerSource": 100
}

Output

One row per ad. Example (shortened):

{
"type": "ad",
"adArchiveId": "1694952298821099",
"adLibraryUrl": "https://www.facebook.com/ads/library/?id=1694952298821099",
"pageId": "104938532182459",
"pageName": "Just Ingredients Shop",
"pageUrl": "https://www.facebook.com/100083349256793/",
"pageLikeCount": 2801,
"isActive": true,
"startDate": "2026-10-08T07:00:00.000Z",
"endDate": "2026-11-07T08:00:00.000Z",
"daysActive": 30,
"platforms": ["facebook", "instagram", "audience_network", "threads"],
"displayFormat": "VIDEO",
"title": "Just Ingredients Protein Powder",
"body": "The easy part of your day",
"linkUrl": "https://justingredients.com/collections/electrolytes",
"linkDomain": "justingredients.com",
"ctaText": "Shop now",
"videoUrl": "https://video.xx.fbcdn.net/...",
"videoPreviewImageUrl": "https://scontent.xx.fbcdn.net/...",
"cards": [],
"versionsCount": 1,
"spend": null,
"impressions": null,
"source": { "type": "keyword", "value": "protein powder" },
"searchCountry": "US"
}

Other fields: pageProfilePictureUrl, pageCategories, caption, linkDescription, ctaType, imageUrl (first image, or the video's preview frame), images, videos (HD and SD file URLs), cards (title, body, link, image and video of each carousel or catalog card), extraTexts, extraLinks, extraImages, extraVideos, isDynamicTemplate, isLimitedForLoggedOut, collationId, categories, containsSensitiveContent, containsDigitallyCreatedMedia, byline, currency, reachEstimate, targetedOrReachedCountries, scrapedAt. A real sample is in samples/output.json.

A run summary (ads per source, how many ads the Ad Library reports for each search, failed sources) is saved to the key-value store under SUMMARY.

Notes:

  • displayFormat is the Ad Library's own format: IMAGE, VIDEO, CAROUSEL, DPA (catalog / dynamic product ads), DCO (dynamic creative) or EVENT.
  • Catalog and dynamic ads use templates such as {{product.name}} for their headline. The Actor replaces those with the first product card's text and sets isDynamicTemplate: true; every product is in cards.
  • spend, impressions, byline and currency are filled only for political and issue ads; Meta does not publish them for other ads.
  • Image and video links are signed Meta CDN URLs that expire after some days. Download the files you need promptly.

Pricing

Pay per result: you pay for each ad saved to the dataset. Set Maximum results (or your Apify max-charge limit) to cap spend; the Actor stops cleanly when the limit is reached. Duplicate ads found by several keywords or advertisers are returned and charged once. Each run also has Apify's standard start fee of $0.00005 ($0.05 per 1,000 runs), which covers the first seconds of compute. Apify subscribers pay less per result: 10% off on Bronze, 15% on Silver and 20% on Gold and higher plans.

FAQ

Do I need a Facebook account or access token? No. The Actor never logs in and never asks for cookies or tokens.

Is there an official Meta Ad Library API? Why use this instead? Meta's official Ad Library API needs a verified developer account and an access token, and for most countries it only returns political and issue ads. This Actor reads the same public Ad Library website any visitor can use, so it returns commercial ads in every country.

How many ads can I get per search? The Ad Library loads about 10 ads per scroll. In our tests one keyword was paged 40 times (397 unique ads) without issues. The Ad Library itself shows at most about 50,000 results per search; narrow the search with filters for bigger jobs.

Why does the Ad Library show a higher number than I received? The count on the Ad Library page includes ad versions that it groups together. The Actor returns one row per listed ad and reports the number of versions in versionsCount.

Can it get the EU reach and demographic breakdown of an ad? Not yet. The search results do not include it; it may be added in a later version.

Do I need a proxy? The Actor uses Apify's residential proxy by default, because Facebook rate-limits datacenter IPs when loading more results (datacenter IPs only get the first page of about 30 ads per search). Proxy traffic is included in the per-result price.

Limitations

  • Only public data from the Ad Library. Nothing behind a login is accessed.
  • Some ads, for example prescription-drug ads, show only their text to logged-out visitors. They are returned with isLimitedForLoggedOut: true, no media and no displayFormat. Ads the Ad Library hides completely from logged-out visitors are not returned.
  • When no country is given, the Ad Library guesses one from the visitor's IP, so the Actor always sends an explicit country (ALL by default).
  • Meta changes its website often. If the Actor stops working, it fails with a clear error message instead of returning wrong data; please report it in the Issues tab.

This Actor collects only information that Meta publishes in its public Ad Library, without logging in, and does not collect email addresses, phone numbers or other private data. You are responsible for using the data in line with Meta's terms, copyright law (ad creatives belong to their owners) and privacy regulations such as GDPR.

Feedback

Found a bug or need a field? Open an issue in the Issues tab and we will look at it. If this Actor saved you time, a short review on this page helps other users find it.

More scrapers from NexusCortex