Advertising data

Meta Ad Library scraper for Facebook and Instagram ads

Search Meta's Ad Library by keyword or advertiser page and get one flat row per ad: text, headline, call to action, link, image and video URLs, format, platforms and run dates. A hard cap stops the run at your limit, so you never pay for more ads than you asked for.

★ 5.0 rating · 5 reviews31 users99.0% successful runs (30 days)

What data you get

adTextAd body text
headlineAd headline
callToActionCall-to-action button
linkDestination link
imageUrls / videoUrlsCreative image and video URLs
formatAd format
platformsMeta platforms the ad ran on
startDate / endDateWhen the ad started and stopped
advertiser / pageIdAdvertiser page name and id

How it works

  1. Open the scraper on Apify and sign up (free).
  2. Enter routes, dates and options in the form.
  3. Click Start and download results as JSON, CSV or Excel, or call the API.

Pricing

$1.00 per 1,000 rows

Pay per event: you are charged only for what the run returns — ads returned. There is no monthly subscription; caps in the input keep each run's cost predictable.

Apify gives $5 free credits every month — enough to test this scraper at no cost.

Example tasks

Ready-made inputs. Copy one into the scraper form or send it through the API.

Scrape active Facebook ads for running shoes in the US

Up to 200 ads currently running.

{
  "queries": [
    "running shoes"
  ],
  "country": "US",
  "activeStatus": "active",
  "maxAds": 200
}
Run this task →

Get all ads from one Facebook page in the UK

Active and stopped ads of one advertiser.

{
  "pageIds": [
    "15087023444"
  ],
  "country": "GB",
  "activeStatus": "all",
  "maxAds": 500
}
Run this task →

Find Instagram and Facebook video ads for skincare in Germany

Video ads started since September 2026.

{
  "queries": [
    "skincare"
  ],
  "country": "DE",
  "mediaType": "video",
  "startDate": "2026-09-01",
  "maxAds": 100
}
Run this task →

Scrape political ads about climate from Meta Ad Library

The political and social-issue shelf, all statuses.

{
  "queries": [
    "climate"
  ],
  "country": "US",
  "adType": "political",
  "activeStatus": "all",
  "maxAds": 300
}
Run this task →

Use cases

FAQ

Do I need a Facebook account or access token?

No. You only need an Apify account; search by keyword or by numeric page id.

Can I get every ad from one advertiser?

Yes. Add the advertiser's Facebook page id; it is the number in an ad's Ad Library link.

Is it legal to scrape Meta Ad Library?

The scraper reads publicly available Meta Ad Library data without logging in. Scraping public data is generally allowed, but you are responsible for complying with local laws and the site's terms, and for not collecting or misusing personal data.

Why choose a country?

Meta indexes ads per country of the audience, so results depend on the two-letter country code you set.

How do I get the data into my app or spreadsheet?

Call it through the Apify API, use the Python or JavaScript client, or connect it to Make, n8n, Zapier or Google Sheets. Results export to JSON, CSV or Excel, and runs can be scheduled.

More scrapers

Start scraping the Meta Ad Library

Run on Apify — free trial