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.
- Keyword, page URL or page ID input, any country or all countries at once, active or inactive ads.
- Parallel collection: about 2,000 ads in roughly a minute, with image and video URLs on every creative.
- Flat $5 per 1,000 ads, no start fee, no login or Meta token.
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.
Built for
The data contract
Know the fields before you run.
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)| Field | Type | Meaning / availability |
|---|---|---|
| ad_id | string | Meta Ad Library ID of the ad (the 'id' in an Ad Library URL). |
| page_name | string | Name of the advertiser's Facebook page. |
| is_active | boolean | True if the ad is currently running. |
| start_date | string | Date the ad started running (YYYY-MM-DD). |
| days_active | integer | Days between start and end (or today if still active). Long-running ads are usually the profitable ones. |
| format | string | VIDEO, IMAGE or TEXT |
| body | string | Primary ad text. |
| cta_text | string | Call-to-action button label, e.g. 'Shop Now'. |
| link_url | string | Landing page the ad links to. |
| image_url | string | Image (or video thumbnail) URL of the primary creative. |
| video_url | string | Video file URL of the primary creative, when the ad is a video. |
| publisher_platforms | array | Platforms the ad ran on: facebook, instagram, messenger, audience_network, threads. |
| spend_low | integer | Lower bound of spend (political & issue ads). |
| impressions_low | integer | Lower 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.