Repository avatar
Search & Data Extraction
v1.0.1
active

meta-ads-library-scraper

dev.workers.pomlabs.pom-data-api/meta-ads-library-scraper

Facebook & Instagram Ad Library: search by keyword, Page, advertiser, URL or ad ID. Creatives

Documentation

Meta Ads Library Scraper: Facebook & Instagram Ads · $0.40/1K

Facebook & Instagram Ad Library: search by keyword, Page, advertiser, URL or ad ID. Creatives, video, links, days running, variations, winning score, EU reach and demographics, landing page, monitor. No login. Hard cost cap. $0.40 per 1,000 ads.

Run it on Apify: no install, free credit on a new Apify account.

Read the public Meta Ad Library (Facebook, Instagram, Messenger, Audience Network and Threads) without a login. Search by keyword, advertiser, Page, Ad Library URL or ad ID, filter like on the site, and get every ad as a clean row. $0.40 per 1,000 ads.

What you can do

  • Search: keywords (any order or exact phrase), advertiser names, Page IDs or Page URLs, any pasted Ad Library URL, single ad IDs.
  • Filter: one, several or ALL countries; active, inactive or all; political, housing, employment and credit ads; image, video, meme or text; platform; language; start date range or last 24 h to 90 days; running for at least N days; sort by relevance, newest or impressions.
  • Count first: onlyTotal returns how many ads each search has.
  • Find the winners: every ad has activeDays, variationCount and a winningScore (days running × variations).
  • Dig deeper (optional): EU and UK reach by country, age and gender, targeting, payer and beneficiary, advertiser Page info (likes, Instagram followers, verification, political spend); landing page with final URL, price, e-commerce platform, Meta Pixel and Google tag IDs; saved video and image files.
  • See every version: expandVariants opens the ads Meta groups under one creative and text, one row each.
  • Turn the creative into text: transcribeVideos (transcript, language, first 3 seconds as hook3s, timed segments) and ocrImageAds (imageText, the words on the image or video cover).
  • Understand the angle: analyzeAds adds aiAnalysis: hook, offer, offer type, marketing angle, emotional trigger, target persona, call to action and a one-line summary.
  • Watch competitors: onlyNewAds returns only what is new since the last run.

You never pay more than you ask

maxAds is a hard cap for the whole run, and maxCostUsd stops before your budget. Searches with no ads, searches Meta refuses and invalid inputs are free. A run where Meta refuses everything fails instead of "succeeding" with nothing.

Example input

{ "searchQueries": ["running shoes"], "country": "US", "mediaType": "video", "longRunningDays": 30, "maxAds": 200 }

Output (one row per ad)

adArchiveId, adLibraryUrl, pageId, pageName, pageUrl, pageLikes, isActive, startDate, endDate, activeDays, variationCount, winningScore, platforms, text, title, linkDescription, ctaText, ctaType, linkUrl, displayFormat, images, videos (HD and SD), cards, spend, impressions, currency and paidFor (where Meta publishes them, mostly political ads), totalAdsInSearch, transparency flags (containsDigitalCreatedMedia, containsSensitiveContent, hasUserReported, pageIsDeleted, stateMediaRunLabel, isAaaEligible), and more. A summary per search is in the SUMMARY record.

Prices

WhatPrice
Ad$0.40 per 1,000
Ad details (reach, demographics, advertiser)$0.60 per 1,000
Saved media (per ad, up to 3 videos and 4 images)$3.00 per 1,000
Landing page analysis$1.00 per 1,000
Video transcript (only when the video has speech)$10.00 per 1,000
Text on the image (only when there is text)$3.00 per 1,000
AI marketing analysis$5.00 per 1,000
Count of a search (onlyTotal)$0.001 each

Good to know

Meta shows spend and impressions only for political and issue ads, and reach and demographics mainly for ads delivered in the EU and UK: fields Meta does not publish come back empty. No login or cookies needed from you.

Support, feedback and requests

Questions, bug reports, complaints, feature requests, or an idea for a new tool? Email us at pomexplica+support@gmail.com, in any language. We read our inbox every day and answer every message. Suggestions and feedback of every kind are welcome: tell us what you need and we will look into it.

Call it by API

curl -X POST "https://api.apify.com/v2/acts/pomlabs~meta-ads-library-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"searchQueries": ["running shoes"], "maxAds": 30}'

Python:

from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("pomlabs/meta-ads-library-scraper").call(run_input={"searchQueries": ["running shoes"], "maxAds": 30})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

Use it from Claude, Cursor or any MCP client

claude mcp add meta-ads-library-scraper "https://mcp.apify.com?tools=pomlabs/meta-ads-library-scraper" -t http

More Actors by Pom Labs

All our Actors: apify.com/pomlabs