# Facebook Ads Library Scraper & AI Ad Analysis (`ironlabs/meta-ads-competitor-strategy`) Actor

AI strategy report on any brand's Facebook and Instagram ads from the Meta Ad Library: messaging, hooks, offers, formats, likely winning ads, weaknesses and 8 ready-to-brief ad ideas. Compare up to 6 advertisers with a 4-week test plan.

- **URL**: https://apify.com/ironlabs/meta-ads-competitor-strategy.md
- **Developed by:** [Iron Labs](https://apify.com/ironlabs) (community)
- **Categories:** AI, Social media
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $350.00 / 1,000 advertiser strategy reports

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-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

## Facebook Ads Library Scraper & AI Ad Analysis

**Paste your competitors' Facebook pages. Get back their full Facebook and Instagram ad strategy in about 3 minutes:** what they say, which hooks and offers they use, which ads are probably winning, where they're weak, and 8 ready-to-brief ad ideas to beat them.

Built on the public **Meta Ad Library**. No login, no ad account and no coding needed.

### What you get for each advertiser

| | |
|---|---|
| 📊 **Ad activity** | Active ads, ads running 30+ days, median days running, new ads launched in the last 7 and 30 days |
| 🎬 **Formats and placements** | Video vs image vs carousel vs catalogue ads, and Facebook, Instagram, Messenger, Audience Network and Threads |
| 🧲 **Messaging pillars** | The 3–6 messages they repeat, how often, with real copy examples |
| 🪝 **Hooks** | Opening-line patterns, with examples |
| 🏷️ **Offers and CTAs** | Discounts, free shipping, bundles and urgency, plus the calls to action they rely on |
| 🏆 **Likely winning ads** | The longest-running and most-tested ads (advertisers keep paying for what works), linked to the Ad Library |
| 🧪 **Testing behaviour** | How many copy variants and versions they test |
| 🌍 **Markets and funnel** | Which countries and landing pages they push, and whether ads aim at awareness or sales |
| 💪 **Strengths, weaknesses and openings** | Backed by real ads, not guesses |
| 💡 **8 ad ideas** | Angle, format, headline, primary text and CTA, ready to hand to a designer, tailored to your business if you describe it |
| ⭐ **Scores** | Messaging, creative variety, testing and overall, out of 10 |

### Plus a side-by-side comparison (2+ advertisers)

- A ranking with a one-line verdict each
- **Who leads where:** volume, creative variety, testing, offers, longevity of winners, clarity
- Market patterns, and the **white space nobody owns**
- Add **your own page** to get your gaps, quick wins and a **4-week ad test plan**

### 📄 A report you can send to a client

Every run saves a polished one-page **HTML report**: open the **Report** tab in the Output, then print it or save it as a PDF. All data is also available as **JSON, CSV or Excel**, or through the API.

### How to use it

1. Enter 1–6 competitor Facebook pages: a link (`https://www.facebook.com/gymshark`), a page name (`gymshark`) or a Meta Ad Library link.
2. *Optional:* add your own page, plus one sentence about your business (e.g. *"D2C skincare brand in the UK, we want cheaper purchases"*).
3. Click **Start**. Open the **Report** tab when it finishes.

### 💰 Pricing

You only pay for reports that succeed:

| Event | Free plan | Starter | Scale | Business |
|---|---|---|---|---|
| Advertiser strategy report (per advertiser) | **$0.50** | $0.45 | $0.40 | $0.35 |
| Side-by-side comparison (per run, 2+ advertisers) | **$1.50** | $1.35 | $1.20 | $1.00 |

Higher Apify plans get the lower price automatically. The ads themselves are collected by Apify's official [Facebook Ads Scraper](https://apify.com/apify/facebook-ads-scraper), which runs inside your run and is billed at its own price (about **$0.23 for 40 ads**).

**Example:** 3 competitors plus your own page, 40 ads each: 4 × $0.50 + $1.50 + about $0.95 of ad data ≈ **$4.45 for a complete competitor ad audit**. Agencies charge hundreds for this.

Pages with no ads, broken links and any analysis that fails are **not charged**. Set a maximum cost per run in Run options if you want a hard cap.

### Example output (one row, shortened)

```json
{
  "type": "advertiser",
  "advertiser": "Gymshark",
  "pageLikes": 2239340,
  "activeAds": 40,
  "medianDaysRunning": 16,
  "newAdsLast30Days": 31,
  "topFormat": "image",
  "overallScore": 6,
  "executiveSummary": "Gymshark is running a brand-introduction push in Saudi Arabia and Kuwait with one line in English and Arabic: 'We make gym stuff and only gym stuff.' Catalogue ads add a light product layer. No offers, no urgency...",
  "analysis": {
    "hooks": [{"pattern": "Focus claim (only-gym promise)", "example": "We make gym stuff and only gym stuff."}],
    "adIdeas": [{"angle": "Built for Indian heat", "format": "15s video", "headline": "Sweat-proof. Monsoon-proof. Made for India.", "primaryText": "...", "cta": "Shop Now", "whyItWillWork": "..."}]
  }
}
```

### Who it's for

- **Performance marketers and media buyers:** fresh angles and proven hooks before your next test
- **Agencies:** competitor ad audits for pitches and onboarding, in minutes
- **D2C and e-commerce brands:** see what rivals spend on, and where they leave gaps
- **Copywriters and creative strategists:** a swipe file with strategy behind it

### FAQ

**Can it see ad spend or results?** The Meta Ad Library doesn't show spend or performance for most commercial ads, so the report uses how long ads run and how many versions are tested as signals of what works.

**Does it need my Facebook login?** No. It only reads the public Ad Library.

**What if a page has no active ads?** It's skipped and not charged. Turn off **Active ads only** to include recently stopped ads.

**How is the analysis made?** A leading AI model (Anthropic's Claude) reads the ads and is instructed to back every claim with real ad copy or numbers. Review the insights before acting on them.

**What data is sent to the AI?** Only public Ad Library data and the optional business sentence you type.

**Need more?** Weekly monitoring, more advertisers or another platform? Open an issue on the **Issues** tab and we'll reply quickly.

# Actor input Schema

## `competitors` (type: `array`):

Facebook page links (https://www.facebook.com/gymshark), page names (gymshark) or Meta Ad Library links. Up to 6 per run.

## `myPage` (type: `string`):

Add your own page to be benchmarked. Gaps, quick wins and the 4-week test plan are then written for you.

## `businessContext` (type: `string`):

One or two sentences, e.g. 'D2C skincare brand in the UK, we want cheaper purchases from Instagram ads'. Used to tailor the ad ideas. Do not include personal data.

## `adsPerAdvertiser` (type: `integer`):

How many ads to collect per page (10-200). 40 gives a solid picture of a brand's current strategy.

## `activeOnly` (type: `boolean`):

Analyse only ads running right now (recommended). Turn off to include recently stopped ads too.

## `includeComparison` (type: `boolean`):

With 2 or more advertisers, add a ranking, who-leads-where, white space and a 4-week ad test plan.

## Actor input object example

```json
{
  "competitors": [
    "https://www.facebook.com/gymshark",
    "https://www.facebook.com/alphalete"
  ],
  "adsPerAdvertiser": 40,
  "activeOnly": true,
  "includeComparison": true
}
```

# Actor output Schema

## `report` (type: `string`):

No description

## `results` (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 = {
    "competitors": [
        "https://www.facebook.com/gymshark",
        "https://www.facebook.com/alphalete"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("ironlabs/meta-ads-competitor-strategy").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 = { "competitors": [
        "https://www.facebook.com/gymshark",
        "https://www.facebook.com/alphalete",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("ironlabs/meta-ads-competitor-strategy").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 '{
  "competitors": [
    "https://www.facebook.com/gymshark",
    "https://www.facebook.com/alphalete"
  ]
}' |
apify call ironlabs/meta-ads-competitor-strategy --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,ironlabs/meta-ads-competitor-strategy"
        }
    }
}
```

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/JcKjjAS0gLFtdcdCC/builds/wObZLVth4OyvPDbOj/openapi.json
