# Meta (Facebook & Instagram) Ad Library Winner Hunter (`viktornovakuae/meta-ads-library-winner-hunter`) Actor

Extract active Facebook & Instagram ads from Meta Ad Library with Ad Longevity Score, active duplicate count, HD video/image URLs & target funnel domain.

- **URL**: https://apify.com/viktornovakuae/meta-ads-library-winner-hunter.md
- **Developed by:** [Viktor Novak](https://apify.com/viktornovakuae) (community)
- **Categories:** Social media, Lead generation, MCP servers
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$0.55 / 1,000 meta-ad-scrapeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Meta (Facebook & Instagram) Ad Library Winner Hunter API

Extract, enrich, and analyze **Facebook and Instagram Ad Library winning ads** in seconds with clean, structured JSON/CSV/Excel output—engineered for **B2B growth teams, data pipelines, n8n/Make automations, and AI MCP agents**.

***

### Why Choose This Actor?

- **Built-In Winner Scoring (`EVERGREEN_WINNER` & `SCALING_WINNER`):** Combines **Days Running** (`daysRunning`) and **Active Collation Duplicate Count** (`collationDuplicateCount`—how many ad sets are scaling the exact same creative simultaneously) to surface profitable ads instantly.
- **Direct HD Video & Image Asset Links:** Extracts clean `videoUrls` (HD/SD MP4) and `imageUrls` alongside full ad copy (`adBodyText`), CTA button (`Shop Now`, `Learn More`), and destination `funnelDomain`.
- **No Facebook Account or Cookies Needed:** Intercepts structured GraphQL & SSR payloads directly from the public Meta Ad Library across any country (`US`, `AE`, `GB`, `DE`, `ALL`).

***

### High-ROI Use Cases

- **Performance Creative Studios & UGC Strategists:** Pull every `EVERGREEN_WINNER` (`30+ days running`) in skincare, supplements, SaaS, or Dubai real estate to reverse-engineer winning hooks.
- **Dropshipping & E-Commerce Product Discovery:** Spot stores launching `10+ duplicate ad sets` on a single product (`SCALING_WINNER`) and extract their exact landing page URL.
- **Automated Competitor Ad Alerts (n8n):** Schedule weekly scans on competitor brands and push new video creatives straight into Slack or Notion.

***

### Quick Start: How to Use in 3 Clicks (No Coding Required)

1. **Click "Try for free"** to open the Actor in your Apify Console—sensible prefilled defaults are already loaded so you can test immediately.
2. **Enter your targets** in the **Target Sources & Search Inputs** section (domains, keywords, slugs, or URLs) and set your desired result limit.
3. **Click "Start"** and download your enriched dataset in **Excel (`.xlsx`), CSV, JSON, or JSONL**, or pipe results directly into Google Sheets, Slack, HubSpot, or n8n.

***

### Input Parameters

| Parameter | Type | Required | Description |
| :--- | :--- | :---: | :--- |
| `searchQueries` | `array` | Yes | Keywords, brand names, or domains to search in Meta Ad Library (e.g. 'dubai off plan', 'athletic greens', 'shopify'). *(Default: `["shopify"]`)* |
| `country` | `string` | Optional | 2-letter country code (e.g. 'US', 'AE', 'GB', 'DE', or 'ALL'). *(Default: `"US"`)* |
| `minDaysRunning` | `integer` | Optional | Filter out 1-day test ads; e.g. set 14 to keep only profitable creatives. *(Default: `0`)* |
| `maxAdsPerQuery` | `integer` | Optional | Maximum ad creatives to extract per search query. *(Default: `30`)* |
| `proxyConfiguration` | `object` | Optional | Optional Apify Proxy settings. *(Default: `{"useApifyProxy": true}`)* |

#### Input JSON Example

```json
{
  "searchQueries": [
    "shopify",
    "dubai off plan"
  ],
  "country": "US",
  "minDaysRunning": 7,
  "maxAdsPerQuery": 25
}
```

***

### Output Dataset Schema & Sample Record

Every item pushed to the default dataset follows a strict, normalized schema ready for spreadsheets, SQL warehouses, or LLM tool-calling:

| Field | Type | Description |
| :--- | :--- | :--- |
| `query` | `string` | Search keyword or brand. |
| `adArchiveId` | `string` | Unique Meta Ad Library ID. |
| `pageName` | `string` | Facebook / Instagram Advertiser Page name. |
| `winnerTier` | `string` | `EVERGREEN_WINNER` (30d+ or 10+ duplicates), `SCALING_WINNER` (14d+ or 4+ duplicates), or `FRESH_TEST`. |
| `daysRunning` | `integer` | Active days since campaign launch. |
| `collationDuplicateCount` | `integer` | Number of active ad variations scaling the same creative. |
| `platforms` | `array[string]` | Placements (`facebook`, `instagram`, `messenger`, `audience_network`). |
| `ctaText / ctaLinkUrl` | `string` | Call-to-action button label and destination offer URL. |
| `funnelDomain` | `string` | Extracted root domain of the advertiser's landing page. |
| `adBodyText` | `string` | Primary ad copy text. |
| `videoUrls / imageUrls` | `array[string]` | Direct creative media URLs. |

#### Sample Output JSON

```json
{
  "query": "shopify",
  "adArchiveId": "114829401928374",
  "pageId": "204095876290",
  "pageName": "Shopify",
  "isActive": true,
  "winnerTier": "EVERGREEN_WINNER",
  "daysRunning": 48,
  "collationDuplicateCount": 12,
  "startDateIso": "2026-10-11T08:00:00+00:00",
  "platforms": [
    "facebook",
    "instagram"
  ],
  "ctaText": "Start Free Trial",
  "ctaLinkUrl": "https://www.shopify.com/free-trial",
  "funnelDomain": "shopify.com",
  "adBodyText": "Launch and scale your online brand with the world's highest-converting checkout...",
  "videoUrls": [
    "https://video.xx.fbcdn.net/v/t42.1790-2/..."
  ],
  "imageUrls": [],
  "adLibraryUrl": "https://www.facebook.com/ads/library/?id=114829401928374"
}
```

***

### Transparent Pay-Per-Event Pricing

You only pay for clean records actually delivered to your dataset via Apify's **Pay-Per-Event (`meta-ad-scraped`)** model—no monthly lock-in or wasted subscription fees:

| Volume Extracted | Estimated Cost (`$0.55 / 1,000` items) |
| :--- | :--- |
| **100 items** | **$0.06** |
| **1,000 items** | **$0.55** |
| **10,000 items** | **$5.50** |

> **Free-Plan Demo Mode:** Users on Apify's `$0` Free plan can run live tests (up to 15–25 records per run) to inspect full data quality and schema compatibility before upgrading to any paid Apify plan for unlimited volume.

***

### API, Python, n8n & AI Agent (MCP) Integrations

#### 1. Connect to Claude, Cursor, ChatGPT & AI Agents via Apify MCP

Add the official Apify MCP server (`https://mcp.apify.com`) to your AI client so your assistant can discover and call `viktornovakuae/meta-ads-library-winner-hunter` autonomously:

```json
{
  "mcpServers": {
    "apify": {
      "url": "https://mcp.apify.com",
      "headers": {
        "Authorization": "Bearer YOUR_APIFY_API_TOKEN"
      }
    }
  }
}
```

#### 2. Run Synchronously via cURL (Single HTTP Request -> JSON Items)

```bash
curl -X POST "https://api.apify.com/v2/acts/viktornovakuae~meta-ads-library-winner-hunter/run-sync-get-dataset-items?token=YOUR_APIFY_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"searchQueries": ["shopify", "dubai off plan"], "country": "US", "minDaysRunning": 7, "maxAdsPerQuery": 25}'
```

#### 3. Run via Official Python SDK (`apify-client`)

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_API_TOKEN")
run = client.actor("viktornovakuae/meta-ads-library-winner-hunter").call(run_input={
  "searchQueries": [
    "shopify",
    "dubai off plan"
  ],
  "country": "US",
  "minDaysRunning": 7,
  "maxAdsPerQuery": 25
})

for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

#### 4. Automate in n8n / Make / Zapier

Install the verified **`@apify/n8n-nodes-apify`** node in n8n (or use an `HTTP Request` node), select **Run Actor and Get Dataset Items**, choose `viktornovakuae/meta-ads-library-winner-hunter`, and route enriched records straight into Google Sheets, Airtable, HubSpot, Telegram, or OpenAI/Gemini nodes.

***

### Frequently Asked Questions (FAQ)

#### How to scrape Facebook and Instagram Ad Library winning ads reliably without getting blocked?

This Actor handles connection headers, pagination, rate-limiting, structured JSON/API extraction, and Apify Proxy rotation automatically in the cloud—delivering clean structured rows without maintaining brittle local scripts.

#### How much does it cost to extract Facebook and Instagram Ad Library winning ads?

Pricing is strictly usage-based at **$0.55 per 1,000 results** (`meta-ad-scraped`). Extracting 500 records costs roughly **$0.28**, making it significantly more cost-effective than enterprise SaaS subscriptions.

#### Is extracting public data legal and compliant?

Yes. This Actor exclusively accesses **publicly available web data** without logging into private user accounts, bypassing paywalls, or collecting sensitive private personal data. Always ensure your downstream use complies with applicable terms and regulations (such as GDPR/CCPA where relevant).

***

### Related Intelligence Tools in Our Suite

Combine this Actor with our other specialized B2B, E-Commerce, Ads & AI data tools on Apify:

| Actor | Best For |
| :--- | :--- |
| [**Multi-ATS Career Jobs & B2B Hiring Signals API**](https://apify.com/viktornovakuae/multi-ats-jobs-hiring-signals) | Greenhouse, Lever, Ashby, Workable & SmartRecruiters jobs + B2B sales triggers |
| [**B2B Website Contact Scraper + Instant MX Email Validator**](https://apify.com/viktornovakuae/b2b-contact-email-validator) | 2-in-1 domain crawler + live DNS MX/SPF & disposable email verification |
| [**Trustpilot + App Store + Google Play Reviews & Churn Monitor**](https://apify.com/viktornovakuae/unified-reviews-churn-monitor) | 3-platform customer review intelligence with automated Churn Risk alerts |
| [**YouTube Transcript, Chapters & AI RAG Chunker API**](https://apify.com/viktornovakuae/youtube-transcript-rag-chunker) | Semantic timestamped Markdown chunks (`?t=Ns`) + outbound sponsor links |
| [**Reddit Buyer-Intent, Pain-Point & Brand Mention Scraper**](https://apify.com/viktornovakuae/reddit-buyer-intent-radar) | 0–100 Buyer-Intent scoring (`alternative to`, `recommend a tool`) on Reddit |
| [**eBay Sold Listings Scraper & Real Market Price Valuator**](https://apify.com/viktornovakuae/ebay-sold-price-valuator) | IQR-filtered median sold price, fair-value band & flip margin calculator |
| [**Google Ads Transparency Spy & Winning Creative Longevity API**](https://apify.com/viktornovakuae/google-ads-transparency-spy) | Browserless Google Ads spy ranked by active longevity days (`90d+ winners`) |
| [**UAE Real Estate & Below-Market Deal Finder (Dubai & Abu Dhabi)**](https://apify.com/viktornovakuae/uae-real-estate-deal-analyzer) | AED/sqft cohort median comparison, Below-Market % gems, gross yield & broker contacts |
| [**Amazon Product, Monthly Sales Volume & Revenue Intelligence API**](https://apify.com/viktornovakuae/amazon-product-revenue-intelligence) | 10 Amazon marketplaces with Monthly Units Bought & Estimated Monthly Revenue |

# Actor input Schema

## `searchQueries` (type: `array`):

Keywords, brand names, or domains to search in Meta Ad Library (e.g. 'dubai off plan', 'athletic greens', 'shopify').

## `country` (type: `string`):

2-letter country code (e.g. 'US', 'AE', 'GB', 'DE', or 'ALL').

## `minDaysRunning` (type: `integer`):

Filter out 1-day test ads; e.g. set 14 to keep only profitable creatives.

## `maxAdsPerQuery` (type: `integer`):

Maximum ad creatives to extract per search query.

## `proxyConfiguration` (type: `object`):

Optional Apify Proxy settings.

## Actor input object example

```json
{
  "searchQueries": [
    "shopify"
  ],
  "country": "US",
  "minDaysRunning": 0,
  "maxAdsPerQuery": 30,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `ads` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "searchQueries": [
        "shopify"
    ],
    "country": "US",
    "minDaysRunning": 0,
    "maxAdsPerQuery": 30,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("viktornovakuae/meta-ads-library-winner-hunter").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "searchQueries": ["shopify"],
    "country": "US",
    "minDaysRunning": 0,
    "maxAdsPerQuery": 30,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("viktornovakuae/meta-ads-library-winner-hunter").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "searchQueries": [
    "shopify"
  ],
  "country": "US",
  "minDaysRunning": 0,
  "maxAdsPerQuery": 30,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call viktornovakuae/meta-ads-library-winner-hunter --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,viktornovakuae/meta-ads-library-winner-hunter"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/liVtfi6Hz9ur29973/builds/gT1EfzcS2eCrJSU73/openapi.json
