# Fast Facebook Ads Library Scraper — Competitor Ad Spy (`rbbscrap/fast-facebook-ads-scraper`) Actor

Scrape Meta / Facebook Ad Library without login or browser overhead. Extract competitor ad copy, video & image creatives, target countries, publisher platforms, and CTA destination links on 256MB RAM.

- **URL**: https://apify.com/rbbscrap/fast-facebook-ads-scraper.md
- **Developed by:** [Hector](https://apify.com/rbbscrap) (community)
- **Categories:** Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## 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

## Fast Facebook Ads Scraper - Meta Ad Library & Creatives

[![Apify Actor](https://img.shields.io/badge/Apify-Actor-orange?logo=apify)](https://apify.com/RBBscrap/fast-facebook-ads-scraper)
[![Memory](https://img.shields.io/badge/RAM-256MB-brightgreen)]()
[![Performance](https://img.shields.io/badge/Speed-Sub--Second-blue)]()
[![Maintenance](https://img.shields.io/badge/Status-Active%202026-success)]()

Extract active competitor ads from the Meta / Facebook Ad Library: ad copy, headlines, creative media URLs, target platforms, and active run dates on 256MB RAM.

Unlike conventional scrapers running heavy headless browsers (Puppeteer/Playwright eating 1–2 GB of RAM that frequently crash and time out), **Fast Facebook Ads Scraper** runs on ultra-lightweight **256 MB RAM micro-containers** using direct HTTP/2 requests with TLS session emulation — running **10x faster** at **90% lower compute cost**.

***

### ⚡ Compute Cost & Efficiency (Why Choose This Scraper?)

- **Super Cheap:** Extracts dozens of active ads in seconds using direct GraphQL endpoints with zero browser overhead.
- **Run on Apify Free Tier:** Apify gives you **$5 free credits every month**. Because this scraper only consumes 256MB RAM and executes in seconds, you can perform **thousands of runs every month completely free**.
- **100% Cloud Stability:** Zero browser overhead means no Chromium memory leaks, no zombie processes, and 99.9% run success rates.

***

### 🚀 Key Features

- **Ad Creatives & Copy:** Complete primary ad text, headlines, descriptions, and CTA button labels.
- **Media Assets:** High-resolution ad images and video preview URLs.
- **Target Platforms:** Identifies where the ad runs (Facebook, Instagram, Messenger, Audience Network).
- **Ad Status & Dates:** Active/inactive status, publication start date, and page ID details.

***

### 💡 Use Cases & Applications

- **Competitor Ad Spying:** Reverse-engineer top-performing ad angles, headlines, and offers in your niche.
- **Creative Strategy for Agencies:** Build ad creative moodboards and copy swipe files for clients.
- **Brand Compliance & Partner Audits:** Verify that affiliates and partners are running approved advertising copy.

***

### 🔌 No-Code Integrations (Make.com, Zapier, n8n & Webhooks)

This Actor connects seamlessly with your favorite automation and CRM tools to run scheduled workflows or sync data automatically:

#### 1. Make.com Integration

1. Add an **Apify** module in Make.com and choose **"Run an Actor"**.
2. Select `RBBscrap/fast-facebook-ads-scraper` and pass your desired inputs.
3. Add a **"Watch Dataset Items"** module to receive extracted items.
4. Route the clean JSON data straight into **Google Sheets**, **Airtable**, **Notion**, or **Slack**.

#### 2. n8n Integration

1. Use the **n8n Apify Node** or a generic **HTTP Request Node**.
2. Set execution mode to asynchronous and pass your Apify API Token.
3. Automatically append clean records into PostgreSQL, Supabase, or HubSpot.

#### 3. Webhooks & REST API

Call this scraper via a single HTTP POST request from Python, Node.js, cURL, or PHP:

```bash
curl "https://api.apify.com/v2/acts/rbbscrap~fast-facebook-ads-scraper/runs?token=YOUR_API_TOKEN" \
  -X POST \
  -H "Content-Type: application/json" \
  -d '{"maxItems": 50}'
```

***

### 📊 Sample Output Data

```json
{
  "adId": "8471928471",
  "pageName": "Shopify",
  "headline": "Start your online store today for $1",
  "bodyText": "Everything you need to sell online, in-person, and everywhere in between.",
  "ctaType": "SIGN_UP",
  "platforms": [
    "facebook",
    "instagram"
  ],
  "startDate": "2026-10-12T00:00:00.000Z",
  "adSnapshotUrl": "https://www.facebook.com/ads/library/?id=8471928471"
}
```

***

### 🔍 Search Keywords & Long-Tail Indexing

`facebook ads scraper`, `meta ad library api`, `competitor ad spy tool`, `facebook ad creatives export`, `meta ads to airtable`, `marketing competitive intelligence`, `scrape facebook ads library`

***

### 💬 Support, Custom Scrapers & Feedback

Need a tailored scraper, higher volume capacity, custom proxies, or new data fields?

- **Contact:** <hector.lebrun78@gmail.com>
- **Response Time:** Usually within 24 hours.

*Star / bookmark this Actor if you find it helpful! Positive feedback helps us maintain and update endpoints regularly.*

# Actor input Schema

## `searchTerms` (type: `array`):

Brands, competitors, or niche keywords to search (e.g. 'Nike', 'Gymshark', 'dropshipping', 'shopify').

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

2-letter ISO country code to target in Meta Ad Library.

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

Filter by active or inactive ads.

## `mediaType` (type: `string`):

Filter ads by creative media format.

## `searchType` (type: `string`):

Match keywords loosely (unordered), exact phrase, or match advertiser page names.

## `publisherPlatforms` (type: `array`):

Select Meta ad delivery channels (Facebook, Instagram, Messenger, Audience Network).

## `minDaysActive` (type: `integer`):

Only keep ads that have been running for at least N days (e.g. 14 or 30 days for proven winning campaigns).

## `startDateMin` (type: `string`):

Only keep ads that launched on or after this date (e.g. '2026-01-01').

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

Maximum number of ads to extract per search query.

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

Select Apify Proxy (Residential or Datacenter) to bypass Meta rate limits.

## Actor input object example

```json
{
  "searchTerms": [
    "Nike"
  ],
  "country": "US",
  "activeStatus": "active",
  "mediaType": "all",
  "searchType": "keyword_unordered",
  "publisherPlatforms": [
    "facebook",
    "instagram"
  ],
  "minDaysActive": 0,
  "maxAdsPerQuery": 30,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `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 = {
    "searchTerms": [
        "Nike"
    ],
    "publisherPlatforms": [
        "facebook",
        "instagram"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("rbbscrap/fast-facebook-ads-scraper").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 = {
    "searchTerms": ["Nike"],
    "publisherPlatforms": [
        "facebook",
        "instagram",
    ],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("rbbscrap/fast-facebook-ads-scraper").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 '{
  "searchTerms": [
    "Nike"
  ],
  "publisherPlatforms": [
    "facebook",
    "instagram"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call rbbscrap/fast-facebook-ads-scraper --silent --output-dataset

```

## MCP server setup

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

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/wMl1edJXbfHfNgbrt/builds/LaLS6nMaHdDM7Gefo/openapi.json
