Meta Ad Library Scraper: Facebook and Instagram Ads
Pricing
from $0.70 / 1,000 ads
Meta Ad Library Scraper: Facebook and Instagram Ads
Facebook and Instagram ads from the Meta Ad Library for a keyword or a page, $0.70 per 1,000 ads. Each row: advertiser, ad text, headline, button, landing page and domain, start date, days running and platforms.
Pricing
from $0.70 / 1,000 ads
Rating
0.0
(0)
Developer
Arcadium Data
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
21 hours ago
Last modified
Categories
Features
Share
Give it a keyword or a Facebook page id and it returns the ads Meta publishes in its public Ad Library as JSON: one row per ad with the advertiser, ad text, headline, button, landing page and domain, start date, days running and the platforms it runs on. $0.70 per 1,000 ads; you pay only for rows you get.
Why this actor
- Finds who is advertising a topic right now: search "webinar" in the US and get the advertisers with active Facebook and Instagram ads, how long each ad has run and where it points.
- Reads the public Ad Library like a visitor: no Facebook account, no login. The page runs in a real browser, the ads come from the page's own data.
- The first 30 ads per search load with the page; more are read 10 per page.
- Searches that cannot be read fully come back as free error rows with a code.
Built by Arcadium Data: public data, dated and agent-ready, never personal data.
Use with AI agents
Returns the active ads for a keyword or a Facebook page: advertiser, ad copy, headline, button, landing page, start date, days running, platforms. Agents can call it through the Apify MCP server (https://mcp.apify.com, open source as apify/actors-mcp-server) as arcadium/meta-ad-library: the input schema is read from the actor, the result is a dataset of JSON rows.
Input example for "which US advertisers run ads for live webinars":
{"searchTerms": ["webinar", "masterclass"],"country": "US","activeStatus": "active","maxAds": 100}
Output example (one row, shortened):
{"rowType": "ad","adArchiveId": "9608115189220583","adLibraryUrl": "https://www.facebook.com/ads/library/?id=9608115189220583","pageId": "1234567890","pageName": "Example College Planning","pageUrl": "https://www.facebook.com/examplecollegeplanning/","startDate": "2025-02-17","endDate": null,"daysRunning": 634,"isActive": true,"platforms": ["facebook", "instagram", "audience_network", "messenger"],"body": "If you only received $5,500 in college aid...","title": "Join The Webinar Now","ctaText": "Learn more","linkUrl": "https://go.example.com/invitation","displayDomain": "go.example.com","collationCount": 1,"searchTerm": "webinar","country": "US","scrapedAt": "2026-11-12T03:11:00.390Z"}
What you get
One row per ad (rowType: "ad"), or per group of identical creatives: Meta groups ads that share a creative, and collationCount says how many the group holds.
| Field | Meaning |
|---|---|
adArchiveId, adLibraryUrl | Meta's id of the ad and its Ad Library page |
pageId, pageName, pageUrl | The advertiser's Facebook page |
startDate, endDate, daysRunning, isActive | When the ad started, stopped (null while it runs) and for how many days |
platforms | facebook, instagram, messenger, audience_network, threads |
displayFormat | IMAGE, VIDEO, CAROUSEL, DCO (dynamic creative) and others |
body, title, ctaText | Ad text, headline and button |
linkUrl, displayDomain | Landing page and the domain shown under the ad |
collationCount, collationId | Size of Meta's group of identical creatives |
searchTerm, country, scrapedAt | Which search found it, the country filter, when it was read |
Input
| Field | Default | Meaning |
|---|---|---|
searchTerms | none | Keywords or phrases, one search each |
pageIds | none | Facebook page ids: all ads of those pages |
country | US | Two-letter code, or ALL |
activeStatus | active | active, inactive or all |
mediaType | all | all, image, video, meme, image_and_meme, none |
maxAds | 50 | Ads per search term or page (up to 5,000) |
pageDelaySec | 4 | Pause between result pages |
includeErrorRows | true | Free row for a search that could not be read fully |
proxyConfiguration | automatic | Your own proxy URLs replace the automatic proxies |
Use from code
Python:
from apify_client import ApifyClientclient = ApifyClient("<YOUR_APIFY_TOKEN>")run = client.actor("arcadium/meta-ad-library").call(run_input={"searchTerms": ["webinar", "masterclass"],"country": "US","maxAds": 100,})for row in client.dataset(run["defaultDatasetId"]).iterate_items():if row.get("rowType") == "ad":print(row["pageName"], row["daysRunning"], row["linkUrl"])
JavaScript:
import { ApifyClient } from 'apify-client';const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });const run = await client.actor('arcadium/meta-ad-library').call({ searchTerms: ['webinar'], maxAds: 60 });const { items } = await client.dataset(run.defaultDatasetId).listItems();const advertisers = new Set(items.filter((r) => r.rowType === 'ad').map((r) => r.pageName));console.log([...advertisers]);
Pricing
You pay per row delivered, at the price of your Apify plan. Error rows and repeats are free.
| Apify plan | Ad, per 1,000 |
|---|---|
| Every plan | $0.70 |
Plus a one-off $0.04 per GB of memory when a run starts (the default run uses 2 GB, so $0.08).
Set a maximum cost per run in the Apify run options and the actor stops before it goes over.
Use cases
- Lead lists of advertisers: companies that run active ads for webinars, masterclasses, courses or any other offer, with the landing page and how long they have been advertising.
- Competitor ad watch: the ads a competitor's Facebook page runs now, with copy, button and landing page.
- Market research: which advertisers and platforms dominate a topic in a country.
- Agency prospecting: advertisers that keep an ad running for months are paying for it to work.
Limitations
- Only what the Ad Library shows without a login. Ads about social issues, elections and politics carry extra data that is not output.
- Impressions, spend and targeting are published by Meta for political and EU ads only; they are not output.
- The Ad Library is large (a search such as "webinar" counts over 23,000 ads). Meta limits how fast result pages are read, so a search for more than 30 ads takes about 5 to 8 seconds per 10 ads.
- A search for more than 30 ads reads the further pages through a residential proxy: Meta rate-limits datacenter addresses on those pages.
- Image and video links are not output; open
adLibraryUrlto see the creative. - If Meta shows a login wall or a CAPTCHA, the run stops that search, does nothing about it and reports it as a free
blockederror row. Run again later.
Privacy
The actor outputs what the Ad Library publishes about advertisers: the name and link of the Facebook page and the ad itself. Email addresses and phone numbers are removed from ad text. Page names of individuals are Meta's published page names; use them as business contacts only.
FAQ
How do I get only active ads?
That is the default (activeStatus: "active"). Use all for stopped ads too.
Why is body filled for a dynamic creative ad?
Those ads hold template text such as {{product.name}} at the top level. The actor reads the text of the first card instead.
How many ads can I get per search?
Up to maxAds (5,000). The first 30 load with the page; each further 10 take one more request.
Something looks wrong in the output. Who do I tell? Open an issue on the actor page with the run link. We read them all.