# Export Facebook and Instagram ads from the Meta Ad Library, with creatives, landing pages and dates

Canonical: https://polarcrawl.com/actors/facebook-ad-library-scraper
Apify actor: vero-api/facebook-ad-library-scraper (https://apify.com/vero-api/facebook-ad-library-scraper)
Category: Ads & market research. Users: 2. Runs: 82. Data from the Apify Store on Dec 3, 2026.


Add keywords, Facebook page links, page IDs or Ad Library links, narrow them by country, status, platform or dates, and get one row per ad. Each row carries the advertiser, ad text, headline, landing page, button text, image and video links, platforms, start date and days running. Switch on details to add EU and UK reach, targeting and who paid for the ad.

Best for:
- Competitor ad research on Facebook and Instagram
- Swipe files of long-running ad creatives
- Tracking political ad spend and reach

## Price

It costs $0.40 per 1,000 ads on Apify's Free plan and drops to $0.32 on the Business plan.

| Event (per 1,000) | Free | Starter | Scale | Business |
|---|---|---|---|---|
| ads | $0.40 | $0.40 | $0.36 | $0.32 |
| Ad with details | $0.70 | $0.70 | $0.63 | $0.56 |

## Run it

MCP server URL (this actor only): https://mcp.apify.com/?tools=fetch-actor-details,vero-api/facebook-ad-library-scraper

Input example:

```json
{
  "searches": [
    "https://www.facebook.com/nike"
  ],
  "maxAdsPerSearch": 4
}
```

REST API:

```bash
curl -X POST "https://api.apify.com/v2/acts/vero-api~facebook-ad-library-scraper/run-sync-get-dataset-items?maxTotalChargeUsd=1" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "searches": [
    "https://www.facebook.com/nike"
  ],
  "maxAdsPerSearch": 4
}'
```

OpenAPI: https://api.apify.com/v2/acts/vero-api~facebook-ad-library-scraper/builds/default/openapi.json

## Input fields

| Field | Type | Required | Description |
|---|---|---|---|
| searches | array | yes | Add a keyword (running shoes), a Facebook page link (https://www.facebook.com/nike), a page ID (15087023444), an ad's Library ID (1702938977100376) or any link from the Ad Library, including links to a single ad. Ad Libr |
| maxAdsPerSearch | integer | no | How many ads to collect for each keyword, page or link. |
| includeDetails | boolean | no | Switch on to add what Meta shows under "See ad details". For ads shown in the EU or UK: how many people saw the ad there, by country, age and gender, and the age, gender and locations it targeted. For political and issue |
| country | string | no | Only ads shown in this country. |
| activeStatus | string | no | Ads running right now, ads that have stopped, or both. |
| adType | string | no | All ads, or only one of Meta's special ad categories. Political and issue ads include how much was spent and how many times they were seen. |
| mediaType | string | no | Only ads with this kind of creative. |
| platforms | array | no | Only ads shown on these Meta platforms. Leave empty for all of them. |
| startDate | string | no | Only ads that ran on or after this date. Pick a date, or a span like 7 days to keep scheduled runs current. |
| endDate | string | no | Only ads that ran on or before this date. |
| language | string | no | Only ads written in this language, as a two-letter code: en, es, de, fr, pt, ar… |
| exactPhrase | boolean | no | Find ads with your words in this exact order, instead of ads that contain all the words anywhere. |
| sortBy | string | no | Which ads come first. |

## Output fields

| Field | Type | Description |
|---|---|---|
| search | string | The keyword, page or link this ad was found with. |
| adId | string | The ad's ID in the Meta Ad Library. |
| adUrl | string | Opens the ad in the Meta Ad Library. |
| pageId | string | The advertiser's Facebook page ID. |
| pageName | string | The Facebook page that runs the ad. |
| pageUrl | string | The advertiser's Facebook page. |
| pageProfilePictureUrl | string | The advertiser's profile picture. |
| pageLikes | integer | How many people like the advertiser's page. |
| pageCategories | array | The advertiser's page categories. |
| isActive | boolean | Whether the ad is running right now. |
| startDate | string | The day the ad started running. |
| endDate | string | The day the ad stopped, or today for ads still running. |
| daysActive | integer | How many days the ad has run. Long runners are usually the winners. |
| platforms | array | Where the ad runs: facebook, instagram, messenger, audience_network, threads, whatsapp. |
| format | string | image, video, carousel, dco (dynamic creative), dpa (product catalog) or text. |
| text | string | The main text of the ad. For catalog and dynamic ads, the text of the first card, as the Ad Library shows it. |
| title | string | The ad's headline. For catalog and dynamic ads, the first card's headline, such as the product name. |
| linkDescription | string | The line under the headline. |
| linkUrl | string | Where the ad sends people. |
| displayUrl | string | The website shown on the ad. |
| ctaText | string | The ad's call-to-action button. |
| ctaType | string | The kind of call to action. |
| images | array | Full-size links to every image in the ad, including each card of carousel and dynamic ads. |
| videos | array | Every video in the ad, in HD and SD, with its thumbnail. |
| cards | array | Each card of a carousel, dynamic or catalog ad, with its own headline, product link and creative. |
| variants | integer | How many versions of this ad the advertiser runs. |
| categories | array | Meta's special ad categories: political, housing, employment, credit. |
| paidForBy | string | Who paid for a political or issue ad. |
| spend | string | Amount spent, for political and issue ads. |
| impressions | string | How many times the ad was seen, for political and issue ads. |
| currency | string | The currency of the spend. |
| details | object | Filled in when "Add reach, audience and advertiser details" is on. For ads shown in the EU or UK: totalReach (people reached there), reachByCountry (by country, age and gender) and the targeted age, gender and locations. For political and issue ads: audienceShareByAgeGender and reachShareByRegion (0-1 shares of the people reached), deliveryCountry, and pageSpend (the advertiser's total and weekly spend on such ads in the country you picked, in its currency, by who paid). Also who paid for the ad (payers) and the advertiser's Instagram account, followers, verification and About text. Lists are empty and values null when Meta publishes nothing for the ad. |

## Questions

### How much does the Facebook Ad Library scraper cost?

It costs $0.40 per 1,000 ads on Apify's Free plan and drops to $0.32 on the Business plan. You pay only for the ads that land in your dataset, and an ad found by two of your searches is delivered and charged once.

### What can I search with?

A keyword like running shoes, a Facebook page link, a page ID, an ad's Library ID or any Ad Library link, including a link to a single ad. Ad Library links keep every filter you set on the site, and you can mix all of these in one run.

### Do I get the ad images and videos?

Yes. Every ad comes with full-size image links and its videos in HD and SD with thumbnails. Carousel, dynamic and catalog ads also list each card with its own headline, product link and creative.

### Can I see how many people an ad reached?

Yes. Switch on details, an optional add-on billed per ad, to get reach by country, age and gender for ads shown in the EU or UK, plus the targeted audience, who paid and the advertiser's Instagram account. For political and issue ads you also see the age, gender and region split of the people reached, on top of their spend and impressions.

### Can I track a competitor's new ads every week?

Yes. Schedule a run with the ran on or after date set to a span like 7 days, sort by newest, and each run brings back the latest ads. Download them as JSON, CSV or Excel, or send them to Google Sheets.

Works best with: A brand's Facebook page link or a focused keyword, paired with a country. Paste an Ad Library link to reuse the exact filters you already set on the site.
