# Facebook Ad Library scraper: one brand's active US ads

**Use case:** 

Pulls the active Facebook and Instagram ads of one exact Page from the Meta Ad Library, delivered in the United States: ad copy, links, media, platforms and start dates. Replace the Page ID with any brand or competitor; schedule it to get new and stopped ads on later runs.

## Input

```json
{
  "pageIds": [
    "15087023444"
  ],
  "keywordSearchType": "keyword_unordered",
  "country": "US",
  "monitorName": "task-brand-ads-us",
  "mode": "AUTO",
  "maxAdsPerPage": 50,
  "outputMode": "ALL_CHECKED",
  "includeBaseline": false,
  "includeTentative": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  },
  "failOnAllTargetsFailed": true
}
```

## Output

```json
{
  "status": {
    "label": "Status",
    "format": "string"
  },
  "advertiserName": {
    "label": "Page",
    "format": "string"
  },
  "creativeId": {
    "label": "Ad Library ID",
    "format": "string"
  },
  "format": {
    "label": "Format",
    "format": "string"
  },
  "platforms": {
    "label": "Platforms",
    "format": "array"
  },
  "firstShown": {
    "label": "Started",
    "format": "string"
  },
  "lastShown": {
    "label": "Last seen",
    "format": "string"
  },
  "headline": {
    "label": "Headline",
    "format": "string"
  },
  "body": {
    "label": "Primary text",
    "format": "string"
  },
  "destinationUrl": {
    "label": "Destination URL",
    "format": "string"
  },
  "primaryAssetUrl": {
    "label": "Primary creative asset",
    "format": "string"
  },
  "sourceUrl": {
    "label": "Ad Library source",
    "format": "string"
  },
  "detectedAt": {
    "label": "Detected at",
    "format": "string"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Facebook Ad Library Scraper - Meta Ads Monitor & New Ads Alert Actor is ready to run with the inputs already set for "Facebook Ad Library scraper: one brand's active US ads". [Sign up or log in](https://console.apify.com/create-task-from-example/KxD2LlIwds4vEUzii) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Facebook Ad Library scraper: one brand's active US ads" task

The Facebook Ad Library Scraper - Meta Ads Monitor & New Ads Alert Actor will start running based on the input automatically. You can also change all the input fields, like facebook page ids, page urls, or ad library urls (optional when keywords are set), keyword match, and more, to match your specific use case.

### 3. Receive the "Facebook Ad Library scraper: one brand's active US ads" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as status, page, ad library id, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Facebook Ad Library scraper: one brand's active US ads" task via API](https://apify.com/kamerozkan/facebook-ad-library-change-monitor.md).

## About this Actor

This example demonstrates how to use [Facebook Ad Library Scraper - Meta Ads Monitor & New Ads Alert](https://apify.com/kamerozkan/facebook-ad-library-change-monitor.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/kamerozkan/facebook-ad-library-change-monitor.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/kamerozkan/facebook-ad-library-change-monitor.md

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`).
