# Facebook Ads Library Scraper — Cheapest Reliable (Meta ads) (`oddlyclever/facebook-ads-library-cheapest`) Actor

Meta Ad Library ads (Facebook & Instagram) by keyword or advertiser page: text, title, link, images, videos, dates, platforms, spend for EU/political ads. Up to 9× cheaper: runs the cheapest Ad Library scraper that works today, auto-fallback, one clean format.

- **URL**: https://apify.com/oddlyclever/facebook-ads-library-cheapest.md
- **Developed by:** [Oddly Clever](https://apify.com/oddlyclever) (community)
- **Categories:** Social media, Marketing, E-commerce
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.50 / 1,000 ads delivered

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

## Facebook Ads Library Scraper — Cheapest Reliable (Meta ads, auto-fallback)

**Same Meta Ad Library data, up to 9× cheaper.** Most Apify users run the best-known Facebook Ads scraper at about
**$5.80 per 1,000 ads**, while other well-rated Actors return the very same ads for **$0.15–$0.75 per 1,000**.
This Actor is a **broker**: it runs the cheapest Ad Library Actor that **works today**, falls back automatically if it
fails, and gives you **one clean format** whatever Actor did the job.

### What you get (one item per ad)

Advertiser (page name, ID, URL, likes, categories), ad ID and **Ad Library link**, **active or not**, **start and end
dates**, **platforms** (Facebook, Instagram, Messenger, Audience Network), format, **ad text, headline, link, call to
action**, **image and video URLs**, number of variants, AI-generated media flag, and — when Meta publishes them (EU,
political and social-issue ads) — **spend, impressions and currency**.

### Typical uses

- **Competitor ad monitoring**: every ad a brand is running, since when, on which platforms.
- **Creative research**: winning hooks, offers and formats in your niche (long-running ads = ads that work).
- **Lead generation**: businesses actively advertising on Meta in a country or niche.

### How it works

1. **Quote first**: before anything starts you get an estimated cost (and what the same job would cost with the most
   used Actor). If the quote exceeds your **budget cap**, nothing is started.
2. **Cheapest reliable first**: Actors are tried from cheapest to most expensive (all with hundreds of thousands of
   successful runs). Actors that our daily observatory sees as broken are skipped.
3. **Automatic fallback**: if an Actor fails or returns nothing, the next one takes over.
4. **One format, no duplicates.**

The underlying Actors run **on your own Apify account at their own published price**; this broker adds a small fee per
delivered ad. The run summary (`OUTPUT` in the key-value store) shows the Actors used and the estimated savings.

### How much does it cost?

**$0.50 per 1,000 ads** for this broker, plus the underlying Actor's published price (from $0.15 per 1,000) — **about $0.65 per 1,000 ads in total**, versus about $5.80 with the best-known Ads Library scraper (−89 %).

| Example | Cost |
|---|---|
| 50 ads of one competitor | ≈ $0.03 |
| 1,000 ads | ≈ $0.65 |
| 10,000 ads | ≈ $6.50 |

Apify's free plan ($5 of monthly credit) covers about **7,500 ads a month**. You pay only for ads delivered, and you can cap spending per run.

### How to use it

1. Type keywords or brand names in **Searches** (exact phrase by default) and pick a **Country**.
2. Set **Max ads per search** and a **budget cap**.
3. Click **Start**: you get ad text, title, media links, page, dates and platforms — export or schedule it weekly to watch your competitors.

### Input

```json
{"searches": ["running shoes"], "pageUrls": ["https://www.facebook.com/nike"], "country": "FR",
 "activeStatus": "active", "maxAdsPerSearch": 50, "maxTotalCostUsd": "5"}
```

`strategy`: `cheapest` (default) or `leader` (most used Actor first).

### Output

```json
{"ad_archive_id": "2087216342231765", "ad_library_url": "https://www.facebook.com/ads/library/?id=2087216342231765",
 "page_name": "SHEIN", "page_id": "380039845369159", "page_url": "https://www.facebook.com/SHEINOFFICIAL/",
 "is_active": true, "start_date": "2026-07-17", "end_date": "2026-12-02", "platforms": ["FACEBOOK", "INSTAGRAM"],
 "display_format": "DPA", "body_text": "Don't miss out. Shop SHEIN…", "title": "Grey Graphic Tee", "cta_text": "Shop now",
 "link_url": "https://m.shein.com/…", "image_urls": ["https://scontent…"], "search": "running shoes",
 "source_actor": "jmlp/meta-ad-library-scraper", "source_price_per_1000_usd": 0.15}
```

### Notes

Data comes from Meta's public **Ad Library** (ads transparency). No login, no private data.

### Use it from AI agents, automation tools or code

- **AI assistants (Claude, ChatGPT, Cursor, VS Code…)**: add the MCP server `https://mcp.apify.com/?tools=oddlyclever/facebook-ads-library-cheapest` — the assistant can then run this Actor on demand. Also listed in the official MCP Registry.
- **AI agents without an Apify account** can pay per run themselves (x402, card) through [agi.apify.com](https://agi.apify.com) — this Actor runs with limited permissions, so it is eligible.
- **n8n, Make, Zapier**: use the Apify integration and pick this Actor; schedule it and send results to Google Sheets, Slack, email or your CRM.
- **API** (Python):

```python
from apify_client import ApifyClient
client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("oddlyclever/facebook-ads-library-cheapest").call(run_input={...})
items = client.dataset(run["defaultDatasetId"]).list_items().items
```

### FAQ

**Are results relevant to my keyword?**\
Yes: by default the Ad Library is searched for the **exact phrase** (like quotes in the Ad Library). Turn `exactPhrase` off for a broader search.

**Which ads are covered?**\
All ads in Meta's public Ad Library (Facebook, Instagram, Messenger, Audience Network), active or inactive, for any country.

**Is it legal?**\
It collects only **public** data, without login, and never bypasses blocks. You are responsible for how you use personal data (GDPR) in your country.

**What if a run fails?**\
You are charged only for ads actually delivered. Every Actor of ours is tested daily with real runs and content-quality checks.

**Can you add a feature?**\
Yes — open an issue on this Actor's page.

### Privacy: anonymous performance statistics only

To keep routing you to the Actor that **really works today**, each run sends us a few **anonymous performance
numbers** per underlying Actor tried: date, Actor name, success or failure, items requested and delivered, duration and
estimated cost. **That is all.**

We **never** collect your keywords, locations, pages, results or account identity. This is deliberate: your searches
reveal your business (your prospects, your competitors, your markets) and your results are your work. If we kept them,
you would be the one losing out. The anonymous numbers, on the other hand, benefit every user: an Actor that starts
failing is skipped for everyone the next day.

# Actor input Schema

## `searches` (type: `array`):

Search the Meta Ad Library by keyword, one per line: 'running shoes', 'crm software', 'skincare'.

## `exactPhrase` (type: `boolean`):

On (recommended): only ads containing your search words as an exact phrase, like a quoted search in the Ad Library. Off: ads containing all the words in any order (broader, less relevant).

## `pageUrls` (type: `array`):

Facebook page URLs of advertisers (all their ads), or any Ad Library search URL copied from your browser.

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

Two-letter country code where the ads run (US, FR, DE…) or ALL.

## `activeStatus` (type: `string`):

Active ads only (default), or include ads that stopped running.

## `maxAdsPerSearch` (type: `integer`):

How many ads you want for each keyword or page.

## `strategy` (type: `string`):

Which Actor to try first. Fallback to the others is automatic.

## `maxTotalCostUsd` (type: `string`):

Maximum spend on the underlying Actors for this run. Nothing is started if the quote exceeds it.

## Actor input object example

```json
{
  "searches": [
    "running shoes"
  ],
  "exactPhrase": true,
  "country": "ALL",
  "activeStatus": "active",
  "maxAdsPerSearch": 50,
  "strategy": "cheapest",
  "maxTotalCostUsd": "5"
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `summary` (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 = {
    "searches": [
        "running shoes"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("oddlyclever/facebook-ads-library-cheapest").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 = { "searches": ["running shoes"] }

# Run the Actor and wait for it to finish
run = client.actor("oddlyclever/facebook-ads-library-cheapest").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 '{
  "searches": [
    "running shoes"
  ]
}' |
apify call oddlyclever/facebook-ads-library-cheapest --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,oddlyclever/facebook-ads-library-cheapest"
        }
    }
}
```

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/5hvuKCejpDdAcbuXI/builds/1SzN8Au85XKgyIbZC/openapi.json
