Meta Ad Library Scraper

Scrape Facebook and Instagram ads from Meta's Ad Library by keyword, page or advertiser

Datapika Meta Ad Library Scraper is our scraping tool published as openclawai/meta-ad-library-scraper on Apify. Datapika maintains the product; Apify hosts execution and billing. About the publisher.

What is this API for?

Research Facebook and Instagram ads in Meta's Ad Library by keyword, page or advertiser. Ad creatives with text, media URLs, start dates, platforms, and reach or spend fields where Meta publishes them.

Limits: Not a Meta Marketing API. Spend and impression ranges appear only on ads Meta classifies as political or issue ads; other ads carry creative and date fields.

$0.005 per result

2 users

68 runs

Searches Meta's public Ad Library for any keyword, Facebook page URL or page ID and returns every matching ad as one flat row: page, status, start and end dates, days active, platforms, creative text, call to action, link, image and video URLs, and the spend and impression ranges Meta publishes for political and issue ads. Runs anonymously, filters by country, ad type, status and media type, and costs $0.005 per ad.

Apify store response dated . Figures are cached and may lag; confirm current rates on Apify.

The displayed rate is the primary result event. Start fees, additional events, platform usage, or plan charges may apply. Check the current pricing before running.

Run it on Apify

Built for

performance marketers cloning competitors' longest-running creativesagencies auditing a brand's active ads across countriesresearchers tracking political and issue ad spend

The data contract

Know the fields before you run.

Full input schema ↗

Selected fields from the published build 1.0.7, reviewed September 4, 2026. This is a schema reference, not a live result sample. Fields can be absent or empty depending on the source and selected options.

Download the dated input and field references (.json)
Selected documented output fields
FieldTypeMeaning / availability
ad_idstringMeta Ad Library ID of the ad (the 'id' in an Ad Library URL).
page_namestringName of the advertiser's Facebook page.
is_activebooleanTrue if the ad is currently running.
start_datestringDate the ad started running (YYYY-MM-DD).
days_activeintegerDays between start and end (or today if still active). Long-running ads are usually the profitable ones.
formatstringVIDEO, IMAGE or TEXT
bodystringPrimary ad text.
cta_textstringCall-to-action button label, e.g. 'Shop Now'.
link_urlstringLanding page the ad links to.
image_urlstringImage (or video thumbnail) URL of the primary creative.
video_urlstringVideo file URL of the primary creative, when the ad is a video.
publisher_platformsarrayPlatforms the ad ran on: facebook, instagram, messenger, audience_network, threads.
spend_lowintegerLower bound of spend (political & issue ads).
impressions_lowintegerLower bound of the impression range (political & issue ads).

Call it from code or an agent

curl -X POST \
  "https://api.apify.com/v2/acts/openclawai~meta-ad-library-scraper/run-sync-get-dataset-items?format=json" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"queries":["https://www.facebook.com/nike","running shoes"],"country":"ALL","maxAdsPerQuery":100,"activeStatus":"ACTIVE"}'

Set APIFY_TOKEN to your own token. This small input was checked against the published schema; it is not an executed benchmark. Running it can incur charges. For large jobs, use the asynchronous /runs endpoint.

Full input schema and OpenAPI spec on the actor API page.

Questions, answered

How much does it cost to scrape Meta Ad Library ads?

This scraper charges $0.005 per ad row, so 1,000 Facebook or Instagram ads cost $5. There is no start fee and no Meta developer token; the actor reads the public Ad Library through residential proxies included in the price. Apify platform usage may apply.

Does it return ad spend and impressions?

Yes where Meta publishes them. Political and issue ads carry spend and impression ranges plus demographic breakdowns; commercial ads carry creative, dates, platforms and days active, because Meta does not disclose their spend.

More from the catalog