# Facebook Ad Library Scraper (Zero-Auth, Videos, Transcripts) (`signalqub/my-actor-3`) Actor

Instantly scrape the Meta / Facebook Ad Library without logging in. Extract active ad copy, creative videos/images, destination URLs, and generate AI transcripts for competitor research.

- **URL**: https://apify.com/signalqub/my-actor-3.md
- **Developed by:** [OluwaNifemi Jacob](https://apify.com/signalqub) (community)
- **Categories:**
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 results

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

## 🚀 Ultimate Facebook Ad Library Scraper (Zero-Auth)

[![Powered by SignalQub](https://img.shields.io/badge/Powered%20By-SignalQub%20API-blue?style=flat-square)](https://signalqub.com)
[![Status](https://img.shields.io/badge/Status-Active%20%26%20Maintained-green?style=flat-square)](https://signalqub.com)

Scraping the Meta (Facebook/Instagram) Ad Library is difficult due to aggressive rate limits, dynamic React rendering, and CAPTCHAs. **This Actor handles all the heavy lifting.**

Powered by the **[SignalQub Data Engine](https://signalqub.com/endpoints/facebook-ads)**, this scraper provides lightning-fast, zero-authentication extraction. Simply input a Page Name, search keyword, or specific Ad ID to instantly download ad copy, creative assets, and landing page URLs. No proxies needed, no Facebook account required.

***

### 🌟 Key Features

- **Zero Authentication Required:** Keep your personal and Business Manager accounts 100% safe.
- **Bypass Anti-Bot Restrictions:** We manage the proxies, headless browsers, and GraphQL routing under the hood via **[SignalQub](https://signalqub.com)**.
- **AI Video Transcripts:** Uniquely capable of extracting the audio from Facebook video ads and returning a clean text transcript.
- **Unified Output:** All data is perfectly mapped into a 5-column schema, ready for Google Sheets or CRM import.

***

### 🎯 What Can You Scrape?

1. **Single Ad Details (`single_ad`)**: Pass an exact Ad Library URL or Ad ID to pull high-res creative assets, destination links, and CTA text.
2. **AI Video Transcript (`ad_transcript`)**: Pass a video ad URL to generate a full text transcript of the spoken audio.
3. **Global Keyword Search (`search_ads`)**: Search the entire FB ad library by keyword to discover trending offers and copy in your niche.
4. **Company/Page Ads (`company_ads`)**: Input a competitor's Facebook Page Name to scrape their entire active ad catalog.

***

### 🛠️ Input Configuration

| Parameter | Type | Description |
| :--- | :--- | :--- |
| **Extraction Mode** | `Select` | Choose what you want to scrape (Single Ad, Transcript, Keyword Search, Company Search). |
| **Target** | `String` | The Ad ID, URL, keyword, or exact Facebook Page name. |
| **Country** | `String` | *(Optional)* ISO Country code (e.g., `US`, `GB`). Defaults to `ALL`. |
| **Ad Status** | `Select` | Filter by `ACTIVE` ads or `ALL` ads. |
| **Pagination Cursor** | `String` | *(Optional)* Cursor token for deep pagination (provided automatically at the bottom of paginated results). |

***

### 📊 Sample Output (5-Column Normalized Schema)

**Example Output (Company Ads Search):**

````json
[
  {
    "author": "Nike Running",
    "content": "Take your runs to the next level with the new Pegasus 40. \n\nShop the summer collection now.",
    "metrics": "Status: Active | Format: video",
    "url": "[https://www.nike.com/running](https://www.nike.com/running)",
    "media": "[https://scontent-iad3-2.xx.fbcdn.net/v/t39.35426-6/](https://scontent-iad3-2.xx.fbcdn.net/v/t39.35426-6/)..."
  }
]

# Actor input Schema

## `mode` (type: `string`):

Select the Facebook Ad Library endpoint you want to call.
## `target` (type: `string`):

Enter the exact ID, full Ad URL, search keyword, or exact Page Name.
## `country` (type: `string`):

ISO Country code (e.g., US, GB, ALL). Defaults to ALL.
## `status` (type: `string`):

Filter by active or all ads.
## `cursor` (type: `string`):

Cursor token for deep pagination.

## Actor input object example

```json
{
  "mode": "company_ads",
  "target": "shopify",
  "country": "ALL",
  "status": "ALL"
}
````

# Actor output Schema

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

The mapped Facebook Ads data stored in the default dataset.

# 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 = {
    "target": "shopify"
};

// Run the Actor and wait for it to finish
const run = await client.actor("signalqub/my-actor-3").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 = { "target": "shopify" }

# Run the Actor and wait for it to finish
run = client.actor("signalqub/my-actor-3").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 '{
  "target": "shopify"
}' |
apify call signalqub/my-actor-3 --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,signalqub/my-actor-3"
        }
    }
}

```

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/czVX2ltb1qjVCTkMw/builds/l2JTfRne66roV2f4q/openapi.json
