# Download Facebook video ads for creative research

**Use case:** 

Collect video ads from the Meta Ad Library for one keyword and country, with direct video links, video length, ad copy, call to action and landing page, one row per creative. Use it to build a swipe file, study hooks and formats, or brief your creative team. This example collects active meal kit video ads in the United States.

## Input

```json
{
  "searchTerms": [
    "meal kit"
  ],
  "countries": [
    "US"
  ],
  "activeStatus": "active",
  "adType": "all",
  "mediaType": "video",
  "searchMode": "keyword_unordered",
  "sortBy": "relevance",
  "skipDuplicateVersions": true,
  "oneAdPerAdvertiser": false,
  "maxAdsPerSource": 50,
  "includeAdDetails": false,
  "countOnly": false,
  "includeMarkdown": false,
  "includeRawData": false,
  "onlyNewAds": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  },
  "maxConcurrency": 4,
  "maxRetries": 6
}
```

## Output

```json
{
  "pageName": {
    "label": "Advertiser",
    "format": "string"
  },
  "displayFormat": {
    "label": "Display format",
    "format": "string"
  },
  "imageUrls": {
    "label": "Images",
    "format": "array"
  },
  "videoUrls": {
    "label": "Video URLs",
    "format": "array"
  },
  "videoDurationSeconds": {
    "label": "Video length (s)",
    "format": "integer"
  },
  "cardsCount": {
    "label": "Cards",
    "format": "integer"
  },
  "textVariations": {
    "label": "Text variations",
    "format": "array"
  },
  "linkUrl": {
    "label": "Landing page",
    "format": "string"
  },
  "mediaUrlsExpireAt": {
    "label": "Media links expire",
    "format": "string"
  }
}
```

## How it works

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

The Facebook Ads Library Scraper & Ad Monitor Actor is ready to run with the inputs already set for "Download Facebook video ads for creative research". [Sign up or log in](https://console.apify.com/create-task-from-example/AZAhKfZu6xxh5WAY6) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Download Facebook video ads for creative research" task

The Facebook Ads Library Scraper & Ad Monitor Actor will start running based on the input automatically. You can also change all the input fields, like search terms (keywords or brand names), countries, and more, to match your specific use case.

### 3. Receive the "Download Facebook video ads for creative research" 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 advertiser, display format, images, 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 "Download Facebook video ads for creative research" task via API](https://apify.com/panix/facebook-ads-library-scraper.md).

## FAQ

### What does the Facebook video ads task return?

The Facebook video ads task returns one row per video creative with direct video links, the video length in seconds, ad text variations, call to action and landing page, plus the advertiser and start date.

### How long do the video links work?

Meta's media links expire after a few days, and each row shows when in mediaUrlsExpireAt. Download the videos you want to keep soon after the run, or run the Facebook video ads task again for fresh links.

### Can I get image ads instead?

Set Media type to image, meme or none (text only). The Facebook video ads task uses the same filters as the Meta Ad Library, so you can also combine it with countries, platforms and languages.

### How much does the Facebook video ads task cost?

The Facebook video ads task costs $0.60 per 1,000 ads on the Apify Free plan and $0.50 on Starter, less on bigger plans, plus $0.003 per run. Only the video links are collected, not the video files.

## About this Actor

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