# Monitor competitor Facebook ad campaigns

**Use case:** 

Track competitor Facebook and Instagram ads by keyword. Export creatives, spend ranges, regions, and ad library links.

## Input

```json
{
  "startUrls": [
    {
      "url": "https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=US&is_targeted_country=false&media_type=all&q=shopify&search_type=keyword_unordered&sort_data[mode]=total_impressions&sort_data[direction]=desc"
    }
  ],
  "maxItems": 10,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

## Output

```json
{
  "adArchiveId": {
    "label": "Ad archive id"
  },
  "pageName": {
    "label": "Page name"
  },
  "pageId": {
    "label": "Page id"
  },
  "isActive": {
    "label": "Is active"
  },
  "startDate": {
    "label": "Start date"
  },
  "endDate": {
    "label": "End date"
  },
  "publisherPlatform": {
    "label": "Publisher platform"
  },
  "categories": {
    "label": "Categories"
  },
  "title": {
    "label": "Title"
  },
  "body": {
    "label": "Body"
  },
  "caption": {
    "label": "Caption"
  },
  "linkUrl": {
    "label": "Link url"
  },
  "displayFormat": {
    "label": "Display format"
  },
  "ctaText": {
    "label": "Cta text"
  },
  "currency": {
    "label": "Currency"
  },
  "spend": {
    "label": "Spend"
  },
  "impressions": {
    "label": "Impressions"
  },
  "reachEstimate": {
    "label": "Reach estimate"
  },
  "images": {
    "label": "Images"
  },
  "videos": {
    "label": "Videos"
  },
  "originalUrl": {
    "label": "Original url"
  }
}
```

## About this Actor

This example demonstrates how to use [Facebook Ads Library Scraper](https://apify.com/lexis-solutions/facebook-ads-library-scraper) with a specific input configuration. Visit the [Actor detail page](https://apify.com/lexis-solutions/facebook-ads-library-scraper) to learn more, explore other use cases, and run it yourself.