# n8n-nodes-facebook-ad-library

An [n8n](https://n8n.io/) community node that runs the **[Apify Facebook Ad Library Scraper](https://apify.com/renzomacar/facebook-ads-library-scraper)** Actor directly from your workflows.

**Spy on competitor Facebook and Instagram ads with no login** — pull every active ad creative, copy, run dates and landing page from the Meta Ad Library. No account, no API key. Built for media buyers, marketers and competitive research.

[n8n](https://n8n.io/) is a [fair-code licensed](https://docs.n8n.io/reference/license/) workflow automation platform.

[Installation](#installation) · [Operations](#operations) · [Credentials](#credentials) · [Usage](#usage) · [Resources](#resources)

## Installation

Follow the [community nodes installation guide](https://docs.n8n.io/integrations/community-nodes/installation/) in the n8n docs.

In n8n: **Settings → Community Nodes → Install** and enter:

```
n8n-nodes-facebook-ad-library
```

## Operations

- **Run Scraper** — runs the Facebook Ad Library Scraper Actor and returns one item per ad, including creative, copy, run dates and landing page.

## Credentials

This node runs the Actor on **Apify infrastructure billed to your own Apify account**, so you need an Apify API token.

1. Create a free account at [apify.com](https://apify.com/).
2. Copy your API token from **Settings → Integrations** (or use OAuth2).
3. In n8n, create an **Apify API** credential and paste your token.

You only pay Apify's standard **pay-per-result** price for the runs you trigger — there is no extra charge for using this node.

## Usage

1. Add the **Apify Facebook Ad Library Scraper** node to your workflow.
2. Select your Apify credential.
3. Enter a brand/page name or Ad Library search term, the country and the max number of ads.
4. Execute. Each result is returned as a separate item — pipe it straight into Google Sheets, a CRM, a database, or an AI agent.

This node is also **usable as a tool** by n8n AI Agents, so an agent can fetch a competitor's live ads on demand.

## Compatibility

- Requires n8n with community node support (self-hosted, or n8n Cloud where verified community nodes are enabled).
- Node.js >= 18.10.

## Resources

- [Actor on Apify Store](https://apify.com/renzomacar/facebook-ads-library-scraper)
- [Apify + n8n integration docs](https://docs.apify.com/platform/integrations/n8n)
- [n8n community nodes documentation](https://docs.n8n.io/integrations/community-nodes/)

## License

[MIT](LICENSE.md)
