# Meta Ads Library Scraper Task

**Use case:** 

Access detailed insights into Nike's active advertising campaigns on Meta. This task retrieves up to 50 of Nike's latest ads in the US, including creative content, delivery status, and more. Discover how Nike crafts its messaging across platforms with structured ad data.

## Input

```json
{
  "searchQuery": "nike",
  "countries": [
    "US"
  ],
  "activeStatus": "all",
  "adType": "all",
  "mediaType": "all",
  "maxAds": 50,
  "includeDetails": false,
  "downloadMedia": false,
  "onlyNewOrChanged": false,
  "maxConcurrency": 1,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

## Output

```json
{
  "adArchiveId": {
    "label": "Ad Library ID",
    "format": "string"
  },
  "advertiserName": {
    "label": "Advertiser",
    "format": "string"
  },
  "advertiserPageId": {
    "label": "Advertiser Page ID",
    "format": "string"
  },
  "activeStatus": {
    "label": "Status",
    "format": "string"
  },
  "startedAt": {
    "label": "Started",
    "format": "string"
  },
  "endedAt": {
    "label": "Ended",
    "format": "string"
  },
  "platforms": {
    "label": "Platforms",
    "format": "array"
  },
  "body": {
    "label": "Primary text",
    "format": "string"
  },
  "headline": {
    "label": "Headline",
    "format": "string"
  },
  "cta": {
    "label": "Call to action",
    "format": "string"
  },
  "destinationUrl": {
    "label": "Destination url",
    "format": "string"
  },
  "imageUrls": {
    "label": "Image urls",
    "format": "array"
  },
  "videoUrls": {
    "label": "Video urls",
    "format": "array"
  },
  "variantCount": {
    "label": "Variant count",
    "format": "integer"
  },
  "transparencyByLocation": {
    "label": "Transparency by location",
    "format": "object"
  },
  "aboutAdvertiser": {
    "label": "About advertiser",
    "format": "string"
  },
  "aboutAdvertiserStatus": {
    "label": "About advertiser status",
    "format": "string"
  },
  "advertiserAndPayer": {
    "label": "Advertiser and payer",
    "format": "object"
  },
  "firstSeenAt": {
    "label": "First seen at",
    "format": "string"
  },
  "lastSeenAt": {
    "label": "Last seen at",
    "format": "string"
  },
  "sourceUrl": {
    "label": "Ad URL",
    "format": "string"
  }
}
```

## About this Actor

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