Facebook Ad Library Scraper: Meta Ads, Creatives and Dates
Pricing
from $0.97 / 1,000 ads scraped
Facebook Ad Library Scraper: Meta Ads, Creatives and Dates
Export ads from the Meta Ad Library for Facebook and Instagram. Search by keyword, Ad Library link or advertiser Page ID and filter by country, active status, ad type and media type. Get copy, media, call to action, landing URL and run dates. For competitor research and creative swipe files.
Pricing
from $0.97 / 1,000 ads scraped
Rating
5.0
(1)
Developer
Oski
Maintained by CommunityActor stats
1
Bookmarked
7
Total users
1
Monthly active users
13 days ago
Last modified
Categories
Features
Share
Facebook Ad Library Scraper
Scrape the Meta Ad Library (Facebook, Instagram, Messenger, Audience Network and Threads ads) into clean, structured data. Search by keyword or advertiser Page ID and get every ad's copy, images, videos, carousel cards, call to action, landing URL, run dates and platforms. A 200-ad pull costs about $0.24, with no login, no access token and no Meta API key.
Part of an ad-intelligence suite with the Google Ads Transparency Center Scraper and the LinkedIn Ad Library Scraper, so you can see what a competitor runs on Meta, Google and LinkedIn from one account.
What you can use it for
- Agencies: pull a prospect's live Facebook and Instagram ads before a pitch, with the exact copy and landing pages.
- Founders and marketers: monitor competitors' active ads each week and spot new offers soon after they go live.
- Creative teams: build a swipe file of images, videos and carousels with headline, body and call-to-action text.
- Media buyers: see how long an ad has run (start and end dates) and which Meta platforms it is placed on.
- Researchers and journalists: collect political and issue ads, where Meta publishes spend and impression figures.
How to use it
- Under Search terms, add brands or keywords, such as
Nike. A link copied from Facebook's Ad Library works too. - To get every ad from one advertiser, paste their Ad Library link under Advertisers.
- Set Country (a name such as
United Kingdom, a code, orALL) and click Start. - When it finishes, open the Output tab and download as CSV, Excel or JSON.
While it runs, the status line at the top of the run page shows progress (for example "Search 1 of 3: Nike. 120 ads so far."). When it finishes, the same line says what was found and explains anything that was skipped, so you never have to read the log.
Run it on a schedule
The recurring job for this actor is checking which ads a competitor has live right now, every morning, so a new offer shows up in your sheet soon after it starts.
Input for a daily run
{"searchTerms": ["gymshark"],"country": "GB","activeStatus": "active","maxAdsPerSearch": 100}
This actor has no memory of earlier runs, so each run returns the live ads again, including ones you already have. Match on ad_archive_id, which is Meta's own id for the ad, to drop the repeats, or keep only rows whose start_date is after your last run.
Set it up in three steps
- Open the actor, fill the input as above and click Save as a new task.
- Open Schedules in the Apify console, click Create new and pick how often it should run. For every day at 07:00 UTC, the cron line is
0 7 * * *. - Add the saved task to the schedule and save.
A month costs about $4.20 for 30 daily runs of one search and 100 ads each (30 x $0.14). If a weekly check is enough, use 0 7 * * 1 (Mondays at 07:00 UTC): 4 such runs cost about $0.56.
Or create the schedule over the API
curl -X POST "https://api.apify.com/v2/schedules" \-H "Authorization: Bearer YOUR_TOKEN" \-H "Content-Type: application/json" \-d '{"name": "daily-facebook-ads","cronExpression": "0 7 * * *","timezone": "UTC","isEnabled": true,"isExclusive": true,"actions": [{"type": "RUN_ACTOR","actorId": "oski~facebook-ad-library-scraper","runInput": {"body": "{\"searchTerms\": [\"gymshark\"], \"country\": \"GB\", \"activeStatus\": \"active\", \"maxAdsPerSearch\": 100}","contentType": "application/json; charset=utf-8"}}]}'
How much does it cost?
You pay a $0.04 start fee (the actor runs a real browser), $0.01 for each extra search after the first, and $0.001 per ad returned. You only pay for ads actually delivered, and a search Facebook refuses to load is never charged.
| Run | Maths | Cost |
|---|---|---|
| 1 search, 100 ads | $0.04 + 100 x $0.001 | about $0.14 |
| 1 search, 1,000 ads | $0.04 + 1,000 x $0.001 | about $1.04 |
| 5 searches, 200 ads each | $0.04 + 4 x $0.01 + 1,000 x $0.001 | about $1.08 |
| 10 searches, 1,000 ads each | $0.04 + 9 x $0.01 + 10,000 x $0.001 | about $10.13 |
Putting several search terms in one run is still cheaper than starting many small runs, because the start fee is paid once.
Input
| Field | What it does |
|---|---|
searchTerms | Brands or keywords, one per line. A pasted Ad Library link is read for its search. |
pageIds | An advertiser's Ad Library link, or the number after view_all_page_id=. A name typed here is searched as a keyword. |
country | Country to search in: a name or code (United Kingdom, UK, US), or ALL. |
activeStatus | all, active, or inactive. |
adType | all, or political_and_issue_ads (those carry spend and impression data). |
mediaType | all, image, video, meme, image_and_meme or none. |
maxAdsPerSearch | How many ads per search term or Page ID (default 200). You pay per ad returned. |
maxScrolls | Advanced safety stop. It grows automatically to fit Max ads per search. |
proxyConfiguration | Advanced. Residential proxy, required and on by default (Meta blocks datacenter IPs). |
Example input
The smallest useful input is one search term and a country:
{"searchTerms": ["nike"],"country": "US","maxAdsPerSearch": 100}
A five-brand competitor sweep in the UK, live ads only:
{"searchTerms": ["nike", "adidas", "gymshark", "puma", "under armour"],"country": "GB","activeStatus": "active","maxAdsPerSearch": 200}
Every ad from one advertiser, by Page ID, video ads only, running or stopped:
{"pageIds": ["15087023444"],"country": "US","activeStatus": "all","mediaType": "video","maxAdsPerSearch": 300}
Other values you can send: activeStatus takes all, active or inactive; adType takes all or political_and_issue_ads; mediaType takes all, image, video, meme, image_and_meme or none; country takes a name, a two-letter code or ALL. searchTerms and pageIds can be sent together in one run: each entry is its own search.
Output sample
One record per ad:
{"ad_archive_id": "1083488127854662","collation_id": "1893388475436778","collation_count": 1,"is_active": true,"page_id": "89516513179","page_name": "Nordstrom Rack","page_profile_uri": "https://www.facebook.com/NordstromRack/","page_profile_picture_url": "https://scontent.fgua13-1.fna.fbcdn.net/v/t39.35426-6/843089643_1447145547348429_3317943331316322597_n.jpg?stp=dst-jpg_s60x60_tt6&_nc_cat=105&_nc_map=urlgen_bucketless&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=q-ImfFTPXk8Q7kNvwGaB76J&_nc_oc=AdozelHRiAzK7y2bbqKJSL66Hicbd5vbFte7Su1WascJg1JC8hHEEPb7BDrFM-6F294&_n...","page_like_count": 2528488,"page_categories": ["Clothing (Brand)"],"start_date": "2026-10-29","end_date": "2026-11-19","publisher_platform": ["FACEBOOK","INSTAGRAM"],"display_format": "DCO","title": "New Store Now Open","body": "Your new Nordstrom Rack at Canton is here! Save on Nike, UGG®, Levi's®, AG, FRAME, 7 For All Mankind and more.","caption": "stores.nordstromrack.com","cta_text": "Learn more","cta_type": "LEARN_MORE","link_url": "https://stores.nordstromrack.com/us/mi/canton/44740-ford-rd","link_description": "Great Brands. Great Prices.","byline": null,"images": [],"videos": [],"cards": [{"title": "New Store Now Open","body": "Your new Nordstrom Rack at Canton is here! Save on Nike, UGG®, Levi's®, AG, FRAME, 7 For All Mankind and more.","caption": "","cta_text": "Learn More","cta_type": "LEARN_MORE","link_url": "https://stores.nordstromrack.com/us/mi/canton/44740-ford-rd","link_description": "Great Brands. Great Prices.","image_url": "https://scontent.fgua13-1.fna.fbcdn.net/v/t39.35426-6/833914032_1723300819509438_4044950383343472245_n.jpg?_nc_cat=103&_nc_map=urlgen_bucketless&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=aeju0dG3SbkQ7kNvwEH7ofF&_nc_oc=AdpRsa3yCailv-SrEqyPMpLXfl-ls5uryL8NLSMp6LRdfVhXiYO0BIDjWkeX-d2n1FY&_nc_zt=14&_nc_ht=scontent...","video_url": null},{"title": "New Store Now Open","body": "Your new Nordstrom Rack at Canton is here! Save on Nike, UGG®, Levi's®, AG, FRAME, 7 For All Mankind and more.","caption": "","cta_text": "Learn More","cta_type": "LEARN_MORE","link_url": "https://stores.nordstromrack.com/us/mi/canton/44740-ford-rd","link_description": "Great Brands. Great Prices.","image_url": "https://scontent.fgua13-1.fna.fbcdn.net/v/t39.35426-6/833852939_1709079853490292_4875033857058328302_n.jpg?_nc_cat=109&_nc_map=urlgen_bucketless&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=M4oEoW50HqQQ7kNvwF8MbyE&_nc_oc=AdrVIbvxE3jLX6NkfzYm0kY1RD1D8QygapXhhedNvWrtpUqq327JYAYXPMvWPObF34E&_nc_zt=14&_nc_ht=scontent...","video_url": null}],"categories": ["UNKNOWN"],"impressions_text": null,"reach_estimate": null,"spend": null,"currency": null,"contains_sensitive_content": false,"contains_digital_created_media": false,"ad_snapshot_url": "https://www.facebook.com/ads/library/?id=1083488127854662","search": "nike","search_kind": "query","country": "US","scraped_at": "2026-11-19T16:55:37+00:00"}
This is a real row from a run on 2026-11-19, with long text and long lists shortened.
Records also carry caption, link_description, byline, page_profile_uri, page_profile_picture_url, page_categories, categories, collation_id, collation_count, reach_estimate, currency, contains_sensitive_content and contains_digital_created_media when Meta provides them. Videos include a preview_image, and each carousel card has its own title, body, CTA, link, image and video. Dates are converted from Meta's timestamps to YYYY-MM-DD.
Spend and impression figures are only published by Meta for political and issue ads. They come through when present and are null otherwise.
If something looks wrong
The status line at the end of every run explains anything that was skipped or came back empty. The common messages:
| Message | What to do |
|---|---|
| Input problem: ... | Something in the input needs changing, and the message says what. The run stopped before anything was charged. |
| No ads for "..." in GB | Try another country, set Active status to All, or check the spelling. |
| "..." is not a numeric Page ID, so it was searched as a keyword | Nothing to fix, but for one advertiser's ads paste their Ad Library link. |
| The search for "..." failed | Facebook was busy. Run it again later. |
Still stuck? Open an issue on the actor page with the run link and it gets looked at quickly.
Tips for bigger runs
- Add more search terms or Page IDs. Each one is a separate search with its own
maxAdsPerSearchbudget, costing $0.01 after the first; the start fee is paid once. - Use Page IDs for complete advertiser coverage. A keyword search also returns other advertisers who mention the word; a Page ID pulls one advertiser's ads only.
- Going past about 400 ads in one search? Raise
maxScrollsalong withmaxAdsPerSearch: each scroll loads roughly 10 ads, so 1,000 ads needs about 100 scrolls. - Use
activeStatus: activewhen you only care about what is running now, so the budget goes on live ads. - Run one country per task and schedule several tasks if you track many markets. The Ad Library is scoped by country.
Scheduling and integrations
For a daily or weekly run, see Run it on a schedule above, and for n8n, Make and Zapier see the next section. Apify's integrations can also send results to Google Sheets or Slack, and a webhook can call your own system when a run finishes.
Use it in n8n, Make or Zapier
Any tool that can send an HTTP request can run this actor and get the rows back in the same call.
| Setting | Value |
|---|---|
| Method | POST |
| URL | https://api.apify.com/v2/acts/oski~facebook-ad-library-scraper/run-sync-get-dataset-items |
| Header | Authorization: Bearer YOUR_TOKEN |
| Body type | JSON, with an input such as the one below |
{"searchTerms": ["gymshark"],"country": "GB","activeStatus": "active","maxAdsPerSearch": 50}
n8n: add an HTTP Request node with those settings after a Schedule Trigger. Each returned row becomes one n8n item, so the next node (Google Sheets, Slack, email) receives one row per ad.
Make and Zapier: Make has an HTTP "Make a request" module; use the same four settings. Zapier has "Webhooks by Zapier" (Custom Request); use the same four settings there too.
This call waits for the run to finish and Apify ends it after 300 seconds, so keep maxAdsPerSearch small for this route and use a schedule plus the dataset for large runs.
Facebook Ad Library API: call it from your code
Use the actor as a Facebook Ad Library API (Meta Ad Library API) that needs no access token and no Meta developer app: send search terms or Page IDs, get ads back as JSON.
curl (waits for the run and returns the ads):
curl -X POST "https://api.apify.com/v2/acts/oski~facebook-ad-library-scraper/run-sync-get-dataset-items?token=YOUR_TOKEN" \-H "Content-Type: application/json" \-d '{"searchTerms": ["nike"], "country": "US", "activeStatus": "active", "maxAdsPerSearch": 100}'
Python (pip install apify-client):
from apify_client import ApifyClientclient = ApifyClient("YOUR_TOKEN")run = client.actor("oski/facebook-ad-library-scraper").call(run_input={"searchTerms": ["gymshark", "nike"],"country": "GB","activeStatus": "active","maxAdsPerSearch": 200,})for ad in client.dataset(run["defaultDatasetId"]).iterate_items():print(ad["page_name"], ad["start_date"], ad["cta_text"], ad["link_url"])
JavaScript (npm install apify-client):
import { ApifyClient } from 'apify-client';const client = new ApifyClient({ token: 'YOUR_TOKEN' });const run = await client.actor('oski/facebook-ad-library-scraper').call({searchTerms: ['solar panels'],country: 'AU',activeStatus: 'active',mediaType: 'video',maxAdsPerSearch: 200,});const { items } = await client.dataset(run.defaultDatasetId).listItems();console.log(items.map((ad) => [ad.page_name, ad.title, ad.ad_snapshot_url]));
The sync endpoint in the curl example waits up to 5 minutes. For bigger runs, start the actor with the runs endpoint, or use the Python or JavaScript client as above, and fetch the dataset when it finishes.
Use it with AI agents and LLM apps
- Claude, Cursor and other MCP clients: connect Apify's MCP server and add this actor by its name,
oski/facebook-ad-library-scraper. The agent can then answer questions such as "what offers is this brand running on Facebook and Instagram this week?" from live ads. - Ad copy as separate fields:
title,body,cta_textandlink_urlarrive as their own fields, and each carousel card has its own. A model can compare hooks, offers and calls to action across advertisers without pulling them out of one block of text. - Ready-made filters for a prompt:
is_active,start_date,end_dateandpublisher_platformlet you send a model only the ads that matter, for example the ones live on Instagram that started in the last month.ad_snapshot_urlgives it a link to cite for each ad.
Is it legal to scrape the Facebook Ad Library?
The actor reads only the public Ad Library, which Meta publishes for transparency, without logging in and without touching any private account. The data is about ads and the Pages that ran them. A Page can belong to an individual, so page_name, byline and the Page's profile link can identify a person, and you are responsible for having a lawful reason to store and use them. The creatives belong to the advertisers, so check your rights before you republish them. This is general information and not legal advice.
FAQ
Do I need a Facebook account or access token? No. The actor opens the public Ad Library in a headless browser and reads the same data the page loads.
Why did I get fewer ads than expected? The search may have fewer matching ads in that country or with your filters, or the Ad Library stopped returning new results (the actor stops after four scrolls in a row with no new ads, each retried with a longer wait). Try ALL countries, activeStatus: all, or a Page ID.
How fresh is the data? Every run reads the Ad Library live, so you get what Meta shows at that moment.
Why is spend empty? Meta only publishes spend and impressions for political and issue ads.
Does it cover Instagram ads? Yes. The Meta Ad Library holds ads for Facebook, Instagram, Messenger, Audience Network and Threads, and publisher_platform lists where each ad is placed. There is no input to search one platform only, so filter the results on that field.
Can I export Facebook ads to Excel or Google Sheets? Yes. Download the results as Excel, CSV or JSON from the Output tab, or use Apify's Google Sheets integration.
Can I get only new ads? There is no built-in memory of earlier runs. Schedule the same input with activeStatus set to active and compare runs by ad_archive_id, which is Meta's own id for the ad, or keep only rows whose start_date is after your last run.
How many ads can one search return? As many as you set in Max ads per search (default 200), or until the Ad Library stops returning new ads for that search. Each scroll loads roughly 10 ads, and the scroll limit grows to fit the number you ask for.
Does it download the images and videos? No. Each ad carries links to its images, videos and video preview images. Download the files you want to keep from those links.
Can I get every ad from one advertiser? Yes. Paste the advertiser's Ad Library link, or the number after view_all_page_id=, under Advertisers. A keyword search also returns other advertisers who mention the word.
What if it breaks? Open an issue on the actor page. It gets fixed fast.
Changelog
- 29 September 2026: safer delivery when a run reaches its maximum cost: every ad that is charged is delivered.
- 18 September 2026: the browser no longer downloads ad images and videos, so runs use far less data. A page that fails to load is retried on a fresh IP up to 3 times. Pasted Ad Library links and country names are accepted, the scroll limit grows to fit Max ads per search, and input mistakes stop the run before anything is charged.
- 22 July 2026: first build. Search by keyword or Page ID, with filters for country, active status, ad type and media type.
Other scrapers from Oski
- Google Ads Transparency Center Scraper: every Google ad an advertiser runs, with impressions and dates by country.
- LinkedIn Ad Library Scraper: B2B ads with paying entity, impressions by country and targeting.
- Website Contact Finder: emails, phones and socials from the advertisers' websites.
- App Store Reviews Scraper: what users say about the apps being advertised.