[Integrations](https://spiral.ai/integrations) › [n8n](https://spiral.ai/integrations/n8n) › [Facebook Ad Library ads](https://spiral.ai/integrations/n8n/facebook-ad-library-ads)

# How to Use Facebook Ad Library ads in n8n

Find Meta ads by keyword, with ad copy, images, videos, advertiser details, and active status. Use it to compare offers and creative approaches across advertisers.

|  |  |
| --- | --- |
| Model | Facebook Ad Library ads |
| Available through | ScrapeCreators |
| Category | Social Media |
| Price | $0.0013 per run. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, with a Spiral API key |

## Prompts to try with Facebook Ad Library ads in n8n

- Each morning, use Facebook Ad Library ads to search running shoes among active ads in the United States. Report ad IDs and copy that were absent from the previous run.
- Each week, use Facebook Ad Library ads to search Patagonia in Canada and summarize changes in returned copy and calls to action.
- Every Monday, use Facebook Ad Library ads to search trail running among active English-language ads in the United Kingdom. Group newly observed results by advertiser and creative format.
- Every Monday at 9am: scrape https://example.com/pricing with Facebook Ad Library ads and turn it into a comparison table.
- Crawl the docs at https://docs.example.com with Facebook Ad Library ads and summarize each section.

## How to set up Facebook Ad Library ads in n8n

Pick the way that suits you. Each takes about two minutes.

### Use the Spiral skill

1. **Send n8n this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use Spiral's MCP server

1. **Create a key**: Create a key under API keys in the console.

2. **Add an MCP Client node**: In a workflow, add an MCP Client node (or, under an AI Agent node, an MCP Client Tool) and set:

```text
https://api.spiral.ai/mcp
```

3. **Pick a tool**: The node lists Spiral's tools. In an MCP Client node pick one, such as `run`, and give it its arguments:

```json
{
  "provider": "fal",
  "model": "fal-ai/flux/schnell",
  "input": { "prompt": "a lighthouse at dawn" },
  "wait": true
}
```

4. **Run Facebook Ad Library ads in a workflow step**: Give the step an instruction like the ones below and run it on your trigger or schedule. Spiral finds Facebook Ad Library ads, prices it and runs it each time the step fires.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Facebook Ad Library ads**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "scrapecreators",
    "model": "scrapecreators/facebook-adlibrary-search-ads",
    "input": {
      "query": "<query>"
    }
  }'
```

Then paste one of the prompts above: n8n finds Facebook Ad Library ads on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/n8n

## Facebook Ad Library ads tools and prices

- [Facebook Ad Library · Search](https://spiral.ai/tools/scrapecreators/scrapecreators/facebook-adlibrary-search-ads) (ScrapeCreators): Up to $0.0013 per run.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| trim |  | — | Set to true for a trimmed down version of the response |
| cursor |  | — | Cursor to paginate through results |
| status | ALL, ACTIVE, INACTIVE | — | Status of the ad. Defaults to ACTIVE. |
| ad_type | all, political_and_issue_ads | — | Search for all ads or only political and issue ads |
| country |  | — | This can only be one country. It has to be the 2 letter code for the country. It defaults to ALL. |
| sort_by | total_impressions, relevancy_monthly_grouped | — | Sort by impressions (high to low), or Most Recent (relevancy_monthly_grouped). Defaults to impressions. |

## What can you do with Facebook Ad Library ads in n8n?

Maintain a recurring Meta advertiser research digest for public brands and product categories. A scheduled agent can compare returned Page identities and ad results across runs to surface changes for review.

### Competitor research brief

Identify the Facebook Pages associated with Nike and Adidas, then compare keyword-matched ads by message, offer, format, and call to action.

### Advertiser identity review

Compare advertiser names and Page IDs found in ad results with name-search matches. Flag similarly named Pages for review before attributing a campaign to a brand.

### Agency research handoff

Prepare a client research sheet with advertiser Page IDs and Instagram identities, alongside examples of keyword-matched ad copy and creative formats.

### Brand portfolio review

Find candidate Pages for Nike and Nike Football, then organize matching ad results by returned Page ID so separate brand properties stay separate.

### Creative planning

Search ads mentioning running shoes and group the returned copy, images, videos, and calls to action into themes for a new creative brief.

## Overview

- [ScrapeCreators](https://spiral.ai/providers/scrapecreators)
- [All n8n guides](https://spiral.ai/integrations/n8n)

## Facebook Ad Library ads in other agents

- [Amp](https://spiral.ai/integrations/amp/facebook-ad-library-ads)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/facebook-ad-library-ads)
- [Claude](https://spiral.ai/integrations/claude-desktop/facebook-ad-library-ads)
- [Claude Code](https://spiral.ai/integrations/claude-code/facebook-ad-library-ads)
- [Cline](https://spiral.ai/integrations/cline/facebook-ad-library-ads)
- [Codex](https://spiral.ai/integrations/codex/facebook-ad-library-ads)
- [Cursor](https://spiral.ai/integrations/cursor/facebook-ad-library-ads)
- [Devin](https://spiral.ai/integrations/devin/facebook-ad-library-ads)
- [dots](https://spiral.ai/integrations/dots/facebook-ad-library-ads)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/facebook-ad-library-ads)
- [Gemini](https://spiral.ai/integrations/gemini/facebook-ad-library-ads)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/facebook-ad-library-ads)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/facebook-ad-library-ads)
- [goose](https://spiral.ai/integrations/goose/facebook-ad-library-ads)
- [Grok](https://spiral.ai/integrations/grok/facebook-ad-library-ads)
- [Grok Build](https://spiral.ai/integrations/grok-build/facebook-ad-library-ads)
- [Hermes](https://spiral.ai/integrations/hermes/facebook-ad-library-ads)
- [Instinct](https://spiral.ai/integrations/instinct/facebook-ad-library-ads)
- [Manus](https://spiral.ai/integrations/manus/facebook-ad-library-ads)
- [Muse](https://spiral.ai/integrations/muse/facebook-ad-library-ads)
- [Muse Code](https://spiral.ai/integrations/muse-code/facebook-ad-library-ads)
- [Notion](https://spiral.ai/integrations/notion/facebook-ad-library-ads)
- [OpenClaw](https://spiral.ai/integrations/openclaw/facebook-ad-library-ads)
- [opencode](https://spiral.ai/integrations/opencode/facebook-ad-library-ads)
- [Perplexity](https://spiral.ai/integrations/perplexity/facebook-ad-library-ads)
- [Raycast](https://spiral.ai/integrations/raycast/facebook-ad-library-ads)
- [VS Code](https://spiral.ai/integrations/vscode/facebook-ad-library-ads)
- [Windsurf](https://spiral.ai/integrations/windsurf/facebook-ad-library-ads)
- [Zapier](https://spiral.ai/integrations/zapier/facebook-ad-library-ads)

## More n8n guides

- [Facebook Ad Library ad creative and status](https://spiral.ai/integrations/n8n/facebook-ad-library-ad-creative-and-status)
- [Facebook Ad Library advertisers](https://spiral.ai/integrations/n8n/facebook-ad-library-advertisers)
- [DEV Community article list](https://spiral.ai/integrations/n8n/dev-community-article-list)
- [Facebook Ad Library company ads](https://spiral.ai/integrations/n8n/facebook-ad-library-company-ads)
- [DEV Community article comments](https://spiral.ai/integrations/n8n/dev-community-article-comments)
- [Facebook Ad Library video transcript](https://spiral.ai/integrations/n8n/facebook-ad-library-video-transcript)

## Questions about Facebook Ad Library ads in n8n

**Can n8n use Facebook Ad Library ads?**

Yes. Add Spiral to n8n as an MCP server, and n8n can find and run Facebook Ad Library ads like any built-in tool.

**How much does Facebook Ad Library ads cost in n8n?**

$0.0013 per run. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your n8n plan is separate.

**Do I need a ScrapeCreators account to use Facebook Ad Library ads in n8n?**

You need no ScrapeCreators account. n8n uses one Spiral API key for every tool, and Spiral runs Facebook Ad Library ads on its own ScrapeCreators account.

**How long does it take to set up Facebook Ad Library ads in n8n?**

About two minutes: create a key, then add an MCP Client node, then pick a tool.

**Does n8n wait while Facebook Ad Library ads runs?**

Facebook Ad Library ads runs in the background. n8n starts the run, checks on it and gives you the json when it's ready.

**Which platforms does the Meta Ad Library cover?**

Meta describes the library as covering ads currently running across its technologies. Ad search results identify placements such as Facebook and Instagram.

**How quickly do new ads appear?**

Meta says an ad appears within 24 hours of its first impression. A campaign can therefore start delivering before it becomes visible in the library.

**Can I research older commercial ads?**

Meta retains ads of any type delivered to the UK or EU during the past year. That regional archive extends beyond the library's coverage of currently running ads.

**How long are political and social issue ads retained?**

Meta retains ads about social issues, elections, or politics in its public Ad Library for seven years.

**What advertiser information can I find?**

Advertiser search returns Facebook Page IDs. Its documented response also includes Page names, verification status, Facebook likes, Instagram usernames, and Instagram follower counts.

