# Export Competitor Facebook and Instagram Ads to CSV

**Use case:** 

Export ad copy, creative links, CTAs and dates from one competitor’s Meta Ad Library Page. Per 1,000 ads, pay $0.50 on Gold and higher, $0.60 on Silver or $0.70 on Bronze and Free, plus the batch start fee.

## Input

```json
{
  "searchQuery": "nike",
  "country": "ALL",
  "maxItems": 10,
  "facebookPageId": "15087023444",
  "adStatus": "active",
  "adType": "all",
  "mediaType": "all",
  "targetedCountryOnly": false,
  "contentLanguages": [],
  "sortBy": "total_impressions",
  "sortDirection": "desc",
  "maxConcurrency": 1,
  "pageTimeoutSecs": 900,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

## Output

```json
{
  "brandLogo": {
    "label": "Brand logo URL",
    "format": "string"
  },
  "brand": {
    "label": "Advertiser brand",
    "format": "string"
  },
  "libraryID": {
    "label": "Meta Ads Library ID",
    "format": "string"
  },
  "active": {
    "label": "Active ad",
    "format": "boolean"
  },
  "platforms": {
    "label": "Meta platforms",
    "format": "array"
  },
  "body": {
    "label": "Ad copy",
    "format": "string"
  },
  "ctaText": {
    "label": "CTA text",
    "format": "string"
  },
  "linkUrl": {
    "label": "Landing page URL",
    "format": "string"
  },
  "images": {
    "label": "Image creatives",
    "format": "array"
  },
  "videos": {
    "label": "Video creatives",
    "format": "array"
  },
  "startDate": {
    "label": "Start date",
    "format": "string"
  },
  "endDate": {
    "label": "End date",
    "format": "string"
  },
  "format": {
    "label": "Creative format",
    "format": "string"
  },
  "sourceUrl": {
    "label": "Source Ads Library URL",
    "format": "string"
  }
}
```

## How it works

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

The Facebook Ad Library Scraper – From $0.50/1K Ads Actor is ready to run with the inputs already set for "Export Competitor Facebook and Instagram Ads to CSV". [Sign up or log in](https://console.apify.com/create-task-from-example/XnKXOmusfa5Ug3rEZ) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Export Competitor Facebook and Instagram Ads to CSV" task

The Facebook Ad Library Scraper – From $0.50/1K Ads Actor will start running based on the input automatically. You can also change all the input fields, like search query, country, and more, to match your specific use case.

### 3. Receive the "Export Competitor Facebook and Instagram Ads to CSV" 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 brand logo url, advertiser brand, meta ads 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 "Export Competitor Facebook and Instagram Ads to CSV" task via API](https://apify.com/lofomachines/facebook-ads-library-scraper.md).

## FAQ

### How do I export a competitor’s Facebook ads to CSV?

Copy their numeric Page ID from the Meta Ad Library, enter it here, select a country and start. Open Dataset and export to CSV or Excel.

### How much does the example cost?

For 10 ads at default memory, the total is $0.00505 on Gold, Platinum and Diamond, $0.00605 on Silver or $0.00705 on Bronze and Free. These totals include the batch start fee.

### Does the export include Instagram ads?

Yes. When Meta reports Instagram among the placements, it appears in the platforms column. The same ad is counted once across platforms.

## About this Actor

This example demonstrates how to use [Facebook Ad Library Scraper – From $0.50/1K Ads](https://apify.com/lofomachines/facebook-ads-library-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/lofomachines/facebook-ads-library-scraper.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/lofomachines/facebook-ads-library-scraper.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`).
