# Facebook Ads Library Scraper Fast 📢 — $0.90/1K 💰 (`viralanalyzer/facebook-ads-library-pro`) Actor

Fast Meta and Facebook Ad Library scraper without login or cookies. Extract active ads, creatives, landing pages, and CTAs in bulk.

- **URL**: https://apify.com/viralanalyzer/facebook-ads-library-pro.md
- **Developed by:** [viralanalyzer](https://apify.com/viralanalyzer) (community)
- **Categories:** Lead generation, Social media, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.60 / 1,000 ad scrapeds

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Facebook Ads Library Pro 📢

> 🔗 [View on Apify Store](https://apify.com/viralanalyzer/facebook-ads-library-pro) | 🇺🇸 English | [🇧🇷 Português](#português)

***

### 🇺🇸 English

#### Overview

Extract active Meta/Facebook Ads creatives, ad copy, image/video URLs, advertiser page names, and campaign runtime from the official Meta Ad Library.

#### Features

- **Ad Copy & Creative Spy**: Search by competitor brand name or page ID to see all running ads
- **Media Asset Links**: Direct links to image and video creative assets
- **Active Campaign Duration**: Identify winning ads running for weeks or months

#### Input Example

```json
{
  "advertisers": [
    "Monday.com",
    "Shopify"
  ],
  "countryCode": "US",
  "maxAds": 30
}
```

#### Output Example

```json
{
  "adId": "meta_ad_891240",
  "pageName": "Shopify",
  "pageId": "12345678",
  "adCopy": "Start your online business today with $1/month plan...",
  "adFormat": "VIDEO",
  "adUrl": "https://www.facebook.com/ads/library/?id=891240",
  "firstSeenDate": "2026-07-01",
  "isActive": true,
  "scrapedAt": "2026-08-20T21:00:00.000Z"
}
```

#### Input Parameters

| Parameter | Type | Description |
|-----------|------|-------------|
| `advertisers` | string\[] | Brand names or page IDs |
| `countryCode` | string | Two-letter country code (default: US) |
| `maxAds` | number | Max ads to scrape (default: 30) |

#### Tips

- Filter by specific countries to see localized advertising angles

#### Use Cases

- **Ad Copywriting Inspiration** — Study high-converting angles from top DTC brands

### ✅ Capabilities & Limits

Stated up front, so you do not pay a run to find out. Derived from this Actor's own input schema.

| Input / feature | Supported | Notes |
|---|---|---|
| `searchQueries` | ✅ | List of brand names, keywords, or Meta Page IDs (e.g. \['Nike', 'Shopify', 'HubSpot']). |
| `country` | ✅ | 2-letter ISO country code (e.g. 'US', 'BR', 'GB', 'ALL'). |
| Result volume (`maxAds`) | ⚠️ | Maximum number of ads to collect across queries. |
| Proxy | ⚠️ | Apify Proxy configuration (Residential recommended for high-volume Meta queries). |

#### FAQ

**Q: Does it include Instagram ads?**
A: Yes! Meta Ad Library covers Facebook, Instagram, Messenger, and Audience Network.

***

### 🇧🇷 Português

#### Visão Geral

Extraia anúncios ativos do Meta/Facebook Ads, textos persuasivos, imagens/vídeos, nomes de páginas anunciantes e tempo de veiculação da Meta Ad Library oficial.

#### Funcionalidades

- **Espionagem de Criativos**: Busque por nome de marca ou ID de página para ver anúncios ativos
- **Links de Imagens e Vídeos**: URLs diretas dos criativos de alta resolução
- **Duração da Campanha**: Identifique criativos vencedores rodando há meses

#### Exemplo de Entrada

```json
{
  "advertisers": [
    "Monday.com",
    "Shopify"
  ],
  "countryCode": "US",
  "maxAds": 30
}
```

#### Exemplo de Saída

```json
{
  "adId": "meta_ad_891240",
  "pageName": "Shopify",
  "pageId": "12345678",
  "adCopy": "Start your online business today with $1/month plan...",
  "adFormat": "VIDEO",
  "adUrl": "https://www.facebook.com/ads/library/?id=891240",
  "firstSeenDate": "2026-07-01",
  "isActive": true,
  "scrapedAt": "2026-08-20T21:00:00.000Z"
}
```

#### Parâmetros de Entrada

| Parâmetro | Tipo | Descrição |
|-----------|------|-----------|
| `advertisers` | string\[] | Nomes de marcas ou IDs de página |
| `countryCode` | string | Código do país (padrão: US) |
| `maxAds` | number | Máximo de anúncios a extrair (padrão: 30) |

#### Dicas

- Filtre por países específicos para ver abordagens e ofertas regionalizadas

#### Casos de Uso

- **Inspiração de Copywriting** — Estude ganchos e ofertas das maiores marcas do mundo

#### Perguntas Frequentes

**P: Inclui anúncios do Instagram?**
R: Sim! A Meta Ad Library cobre Facebook, Instagram e Messenger.

***

### 💰 Pricing

This actor uses **Pay Per Event (PPE)** pricing — you pay only per **item scraped** (`ad-scraped`). Platform usage is included. See the current price on the **Pricing** panel of this actor's Apify Store page.

***

### 🔗 Related Actors

- [Reclame Aqui Scraper](https://apify.com/viralanalyzer/reclameaqui-scraper)
- [iFood Restaurant Intelligence](https://apify.com/viralanalyzer/ifood-restaurant-intelligence)
- [Instagram Reels Scraper](https://apify.com/viralanalyzer/instagram-reels-scraper)
- [TikTok Viral Scanner](https://apify.com/viralanalyzer/tiktok-viral-scanner)
- [Google Maps BR Scraper](https://apify.com/viralanalyzer/google-maps-br-scraper)
- [Mercado Livre Scraper](https://apify.com/viralanalyzer/mercadolivre-scraper)

***

### 📝 Changelog

- **v1.0.0** (2026-08-20) — Initial release: full extraction, Pay-Per-Event pricing, and automated proxy support

***

### License

ISC © 2026 Viral Analyzer Platform

***

💡 **Need AI analysis on top of this data — sentiment, trend detection and a dashboard, with no API keys to manage?**\
[ViralAnalyzer](https://viralanalyzer.com.br) runs this actor + 42 more data sources with built-in AI. JSON + insights in one call.

# Actor input Schema

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

List of brand names, keywords, or Meta Page IDs (e.g. \['Nike', 'Shopify', 'HubSpot']).

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

2-letter ISO country code (e.g. 'US', 'BR', 'GB', 'ALL').

## `maxAds` (type: `integer`):

Maximum number of ads to collect across queries.

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

Apify Proxy configuration (Residential recommended for high-volume Meta queries).

## Actor input object example

```json
{
  "searchQueries": [
    "Nike"
  ],
  "country": "ALL",
  "maxAds": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

Dataset output for Facebook Ads Library Pro Output

# 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": [
        "Nike"
    ],
    "country": "ALL"
};

// Run the Actor and wait for it to finish
const run = await client.actor("viralanalyzer/facebook-ads-library-pro").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": ["Nike"],
    "country": "ALL",
}

# Run the Actor and wait for it to finish
run = client.actor("viralanalyzer/facebook-ads-library-pro").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": [
    "Nike"
  ],
  "country": "ALL"
}' |
apify call viralanalyzer/facebook-ads-library-pro --silent --output-dataset

```

## MCP server setup

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

```

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/w9ANIk5CeXFcJN16c/builds/1tXIF9CwYjJ1uyv2H/openapi.json
