# Find Long-Running (Winning) Facebook Ads by Keyword

**Use case:** 

Search the Meta Ad Library by keyword and keep only ads that have been running for 60 days or more: the ads advertisers keep paying for, usually because they work. Get the ad text, headline, button, landing page, images and videos, start date and days running. Change the minimum days to widen or narrow the list. Filtered-out ads are free. No Facebook login. $0.3 per 1,000 ads.

## Input

```json
{
  "searchTerms": [
    "protein powder",
    "skincare"
  ],
  "country": "US",
  "activeStatus": "active",
  "mediaType": "all",
  "exactPhrase": false,
  "maxAdsPerSource": 100,
  "minDaysRunning": 60,
  "onlyNewAds": false,
  "monitorName": "default",
  "maxConcurrency": 3,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

## Output

```json
{
  "status": {
    "label": "Status"
  },
  "pageName": {
    "label": "Advertiser"
  },
  "body": {
    "label": "Ad text"
  },
  "ctaText": {
    "label": "Button"
  },
  "linkUrl": {
    "label": "Landing page",
    "format": "link"
  },
  "displayFormat": {
    "label": "Format"
  },
  "startDate": {
    "label": "Started"
  },
  "daysRunning": {
    "label": "Days running",
    "format": "number"
  },
  "isActive": {
    "label": "Active",
    "format": "boolean"
  },
  "platforms": {
    "label": "Platforms",
    "format": "array"
  },
  "adLibraryUrl": {
    "label": "Ad Library",
    "format": "link"
  },
  "isNew": {
    "label": "New (monitor)",
    "format": "boolean"
  },
  "reason": {
    "label": "Why not returned"
  }
}
```

## How it works

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

The Facebook Ads Library Scraper 💰 $0.3/1K · Ad Alerts · No Login Actor is ready to run with the inputs already set for "Find Long-Running (Winning) Facebook Ads by Keyword". [Sign up or log in](https://console.apify.com/create-task-from-example/IrL78fMCvPByKlyZx) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Find Long-Running (Winning) Facebook Ads by Keyword" task

The Facebook Ads Library Scraper 💰 $0.3/1K · Ad Alerts · No Login Actor will start running based on the input automatically. You can also change all the input fields, like keywords, country for keyword search, and more, to match your specific use case.

### 3. Receive the "Find Long-Running (Winning) Facebook Ads by Keyword" 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, advertiser, ad text, 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 "Find Long-Running (Winning) Facebook Ads by Keyword" task via API](https://apify.com/first-penguin/facebook-ads-library-scraper-monitor.md).

## FAQ

### Why ads running 60+ days?

Advertisers rarely keep paying for ads that do not work, so long-running ads are a common shortcut to finding winners. Change minDaysRunning to 30 or 90 to widen or narrow the list.

### Are filtered-out ads charged?

No. Ads shorter than your minimum are dropped before output and are not charged.

### Why are spend and impressions empty?

Meta publishes them only for political and social-issue ads, and reach only for ads shown in the EU.

## About this Actor

This example demonstrates how to use [Facebook Ads Library Scraper 💰 $0.3/1K · Ad Alerts · No Login](https://apify.com/first-penguin/facebook-ads-library-scraper-monitor.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/first-penguin/facebook-ads-library-scraper-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/first-penguin/facebook-ads-library-scraper-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`).
