Facebook Ads Library Scraper avatar

Facebook Ads Library Scraper

Pricing

from $0.28 / 1,000 item extracteds

Go to Apify Store
Facebook Ads Library Scraper

Facebook Ads Library Scraper

Scrape public Meta/Facebook Ads Library ads by keyword, page, country, status, and media for competitive ad intelligence.

Pricing

from $0.28 / 1,000 item extracteds

Rating

0.0

(0)

Developer

Hanna Nosova

Hanna Nosova

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

13 hours ago

Last modified

Share

Track public Meta and Facebook ads without building your own browser automation. This actor searches the public Meta Ads Library by keyword or advertiser page and saves structured ad records for competitive intelligence, brand monitoring, market research, and reporting workflows.

Use it to collect public ad copy, advertiser names, library IDs, status, delivery dates, platforms, creative media URLs when exposed, landing links, and snapshot links from Facebook Ads Library.

What does Facebook Ads Library Scraper do?

Facebook Ads Library Scraper helps you turn public ad search pages into a clean dataset.

  • ๐Ÿ”Ž Search public ads by keyword such as a brand, product, category, or campaign topic.
  • ๐Ÿข Search advertiser/page ads when you have a Facebook Page ID or supported page URL.
  • ๐ŸŒ Filter by country code such as US, GB, DE, or FR.
  • โœ… Choose active, inactive, or all public ads.
  • ๐Ÿ–ผ๏ธ Filter by media type when Meta exposes the option.
  • ๐Ÿ“ฆ Export results as JSON, CSV, Excel, XML, RSS, or through the Apify API.

Who is it for?

This actor is useful for teams that need public ad intelligence at repeatable intervals.

  • ๐Ÿ“ฃ Marketing teams tracking competitor messaging.
  • ๐Ÿงช Growth teams testing positioning across markets.
  • ๐Ÿงพ Agencies preparing client competitor reports.
  • ๐Ÿ›ก๏ธ Brand monitors watching impersonation or risky ad claims.
  • ๐ŸŽ“ Researchers studying public advertising trends.
  • ๐Ÿงฐ Data teams feeding ad examples into dashboards and AI workflows.

Why use it?

The Meta Ads Library website is built for browsing. It is not convenient when you need a repeatable table of public ads. This actor packages the workflow into an Apify actor so you can schedule it, call it from an API, and combine the output with the rest of your data stack.

What data can you extract?

FieldDescription
queryKeyword used for the run, when keyword mode is used.
countryCountry filter used for the search.
advertiserNameAdvertiser or page name visible on the ad card.
advertiserPageUrlPublic advertiser page URL when exposed.
libraryIdMeta Ads Library ID for the public ad.
adStatusActive or inactive status when visible.
startedAtStart date text when visible.
endedAtEnd date text when visible.
platformsMeta platforms detected in the card text.
adTextMain visible ad copy.
captionOptional caption field.
adTitleShort visible title/headline when detected.
creativeTypeImage, video, or unknown.
imageUrlsCreative image URLs when exposed in the page.
videoUrlsCreative video URLs when exposed in the page.
landingUrlDestination URL when visible.
snapshotUrlMeta Ads Library snapshot URL.
sourceUrlAds Library search URL used for extraction.
scrapedAtISO timestamp when the item was scraped.

Pricing

This Actor uses Apify pay-per-event pricing. The prices below come from the current Actor pricing configuration. Apify public plans map to Store discount tiers, so the table shows both the user-facing plan context and the pricing tier name. The final price shown in Apify depends on the user account plan and any custom agreement.

EventWhat is chargedPrice
startOne-time fee charged when a run starts. Covers fixed startup cost (init, proxy warmup, first HTTP setup).$0.005
EventWhat is chargedFree / no discountStarter / BronzeScale / SilverBusiness / GoldCustom / PlatinumCustom / Diamond
itemCharged per item extracted.$0.5355 / 1,000$0.46565 / 1,000$0.36321 / 1,000$0.27939 / 1,000$0.18626 / 1,000$0.13038 / 1,000

Apify may also charge platform usage for compute, storage, proxies, or data transfer outside this Actor pricing. Check the Actor run and the Apify Pricing tab for the exact cost shown to your account.

Quick start

  1. Open the actor on Apify.
  2. Enter a keyword such as coffee or a known advertiser page ID.
  3. Choose a country such as US.
  4. Keep maxItems low for the first run.
  5. Start the actor.
  6. Download the dataset or call it through the API.

Input options

Keyword query

Use query to search public ads by text. Enter one keyword, or separate multiple keywords with commas/new lines when you want one combined export. Examples:

  • nike
  • coffee
  • running shoes
  • meal delivery
  • coffee, nike, travel

Advertiser page URL or page ID

Use pageId when you know the numeric Facebook Page ID. Some page URLs also contain an ID and can be passed as advertiserPageUrl.

Country

Use a two-letter Ads Library country code. The default is US.

Ad status

Choose one of:

  • active
  • inactive
  • all

Ad type

The default is all. Political and issue ads are available through the dedicated option where supported by Meta.

Media type

Choose all media, image, video, memes, image and meme, or no-media results.

Date range

Use optional startDate and endDate in YYYY-MM-DD format when you need a delivery date window.

Maximum ads

maxItems controls how many records are saved. Start with 10 and increase gradually.

Proxy configuration

Leave proxy settings empty for direct access. If Meta shows verification or empty pages for your run, enable Apify Proxy and choose the lowest-cost proxy group that works for your target country.

Example input

{
"query": "coffee",
"country": "US",
"activeStatus": "active",
"adType": "all",
"mediaType": "all",
"maxItems": 10
}

Example output

{
"query": "coffee",
"country": "US",
"advertiserName": "Example Coffee",
"advertiserPageUrl": "https://www.facebook.com/example",
"libraryId": "1234567890",
"adStatus": "Active",
"startedAt": "Jan 1, 2026",
"endedAt": null,
"platforms": ["Facebook", "Instagram"],
"adText": "Try our new roast today.",
"caption": null,
"adTitle": "New roast",
"creativeType": "image",
"imageUrls": ["https://..."],
"videoUrls": [],
"landingUrl": "https://example.com",
"snapshotUrl": "https://www.facebook.com/ads/library/?id=1234567890",
"sourceUrl": "https://www.facebook.com/ads/library/...",
"scrapedAt": "2026-07-03T00:00:00.000Z"
}

Tips for better results

  • Use specific brand or product terms instead of very broad terms.
  • Match the country to the market you are researching.
  • Use active for current competitive monitoring.
  • Use all when building historical examples.
  • Increase maxItems only after a small run succeeds.
  • Keep separate runs for different brands so exports stay easy to compare.

Scheduling

You can schedule the actor in Apify to run daily, weekly, or monthly. Common schedules include:

  • Daily brand monitoring.
  • Weekly competitor ad review.
  • Monthly creative swipe-file export.
  • Campaign launch monitoring during a specific date range.

Integrations

Use the dataset output with:

  • Google Sheets exports for quick reporting.
  • BI dashboards for competitor trend tracking.
  • Slack or email alerts through Apify integrations.
  • Webhooks that trigger when a run finishes.
  • Data warehouses through Apify API calls.
  • AI analysis pipelines that summarize ad themes.

API usage

Node.js

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('fetch_cat/facebook-ads-library-scraper').call({
query: 'coffee',
country: 'US',
activeStatus: 'active',
maxItems: 10,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);

Python

from apify_client import ApifyClient
client = ApifyClient('YOUR_APIFY_TOKEN')
run = client.actor('fetch_cat/facebook-ads-library-scraper').call(run_input={
'query': 'coffee',
'country': 'US',
'activeStatus': 'active',
'maxItems': 10,
})
items = client.dataset(run['defaultDatasetId']).list_items().items
print(items)

cURL

curl -X POST 'https://api.apify.com/v2/acts/fetch_cat~facebook-ads-library-scraper/runs?token=YOUR_APIFY_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"query":"coffee","country":"US","activeStatus":"active","maxItems":10}'

MCP usage

Use Apify MCP with Claude Desktop or Claude Code to run the actor from natural language prompts.

MCP URL:

https://mcp.apify.com/?tools=fetch_cat/facebook-ads-library-scraper

Claude Code setup:

$claude mcp add apify-facebook-ads-library https://mcp.apify.com/?tools=fetch_cat/facebook-ads-library-scraper

Claude Desktop JSON config:

{
"mcpServers": {
"apify-facebook-ads-library": {
"url": "https://mcp.apify.com/?tools=fetch_cat/facebook-ads-library-scraper"
}
}
}

Example prompts:

  • "Run Facebook Ads Library Scraper for coffee ads in the US and summarize the top messages."
  • "Collect 20 active ads for this advertiser page ID and group the copy themes."
  • "Compare Facebook and Instagram platform mentions in the latest dataset."

Legality

Facebook Ads Library Scraper is intended for public ad transparency data. Use the actor responsibly, respect applicable laws and platform rules, and avoid collecting private account data or attempting to bypass access controls.

This actor is designed for public Ads Library data. Do not use it to collect private account data, bypass access controls, or violate Meta's terms. Review your use case, jurisdiction, and compliance obligations before using scraped data in production.

Troubleshooting

The run returns no ads

The query may have no public ads in the selected country/status combination. Try a broader keyword, a different country, or activeStatus: all.

Meta shows verification

Try Apify Proxy, lower maxItems, or run again later. Verification pages can happen on public sites with automated traffic.

Advertiser page URL does not work

Use a numeric pageId if the URL does not contain one. Vanity page URLs do not always expose a numeric ID.

Limits

  • This actor does not log in to Facebook.
  • Some fields are only saved when visible in the public card.
  • Creative URLs may expire or vary by region.
  • Very broad searches may require multiple runs split by country or date range.

Explore related actors from the same catalog:

Support

If you need a field that appears in the Ads Library page but is missing from the dataset, open an issue with a sample run and the public ad snapshot URL.

FAQ

Can I scrape inactive ads?

Yes. Set activeStatus to inactive or all.

Can I use it without a Facebook account?

Yes. The actor is designed for public Ads Library pages and does not accept credentials.

Can I run it every day?

Yes. Use Apify schedules and keep inputs focused for predictable costs.

Does it include Instagram ads?

When Meta exposes platform labels on the ad card, the platforms field can include Instagram.

Can I export to CSV?

Yes. Apify datasets can be downloaded as CSV, JSON, Excel, XML, RSS, and HTML.