# Quickstart: Meta & Facebook Ad Library Scraper: Ads, Hooks, Lan

**Use case:** 

Facebook and Meta Ad Library scraper for competitor ad research: give page URLs, page IDs or keywords and get every ad, creative image and video URLs, hook analysis of the ad copy, landing domain profiles, an advertiser summary and competitor comparisons. Batch input, pay per result.

## Input

```json
{
  "pageUrls": [
    "https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=ALL&view_all_page_id=15087023444&search_type=page&media_type=all",
    "https://www.facebook.com/NordstromRack/",
    "running shoes"
  ],
  "countries": [
    "ALL"
  ],
  "adStatus": "active",
  "maxAdsPerPage": 50,
  "captureCreativeAssets": true,
  "classifyHooks": true,
  "profileLandingDomains": true,
  "compareAdvertisers": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

## Output

```json
{
  "rowType": {
    "label": "Row type",
    "format": "text"
  },
  "target": {
    "label": "Input",
    "format": "text"
  },
  "pageId": {
    "label": "Page ID",
    "format": "text"
  },
  "pageName": {
    "label": "Advertiser",
    "format": "text"
  },
  "activeAdCount": {
    "label": "Matching ads",
    "format": "number"
  },
  "adArchiveId": {
    "label": "Ad ID",
    "format": "text"
  },
  "startDate": {
    "label": "Started",
    "format": "text"
  },
  "runDays": {
    "label": "Run days",
    "format": "number"
  },
  "isActive": {
    "label": "Active",
    "format": "boolean"
  },
  "publisherPlatforms": {
    "label": "Platforms",
    "format": "array"
  },
  "displayFormat": {
    "label": "Format",
    "format": "text"
  },
  "adText": {
    "label": "Ad text",
    "format": "text"
  },
  "headline": {
    "label": "Headline",
    "format": "text"
  },
  "ctaText": {
    "label": "CTA",
    "format": "text"
  },
  "ctaType": {
    "label": "CTA type",
    "format": "text"
  },
  "landingUrl": {
    "label": "Landing URL",
    "format": "link"
  },
  "landingDomain": {
    "label": "Landing domain",
    "format": "text"
  },
  "assetType": {
    "label": "Asset type",
    "format": "text"
  },
  "assetUrl": {
    "label": "Asset URL",
    "format": "link"
  },
  "hookText": {
    "label": "Hook",
    "format": "text"
  },
  "hookTypes": {
    "label": "Hook types",
    "format": "array"
  },
  "hookScore": {
    "label": "Hook score",
    "format": "number"
  },
  "registeredAt": {
    "label": "Domain registered",
    "format": "text"
  },
  "domainAgeDays": {
    "label": "Domain age (days)",
    "format": "number"
  },
  "registrar": {
    "label": "Registrar",
    "format": "text"
  },
  "mailProvider": {
    "label": "Mail provider",
    "format": "text"
  },
  "pageTitle": {
    "label": "Homepage title",
    "format": "text"
  },
  "techHints": {
    "label": "Tech",
    "format": "array"
  },
  "adsStartedLast30Days": {
    "label": "New ads (30 days)",
    "format": "number"
  },
  "averageRunDays": {
    "label": "Avg run days",
    "format": "number"
  },
  "longestRunningAdDays": {
    "label": "Longest run (days)",
    "format": "number"
  },
  "topCtas": {
    "label": "Top CTAs",
    "format": "array"
  },
  "topHookTypes": {
    "label": "Top hooks",
    "format": "array"
  },
  "topLandingDomains": {
    "label": "Top landing domains",
    "format": "array"
  },
  "pageNameA": {
    "label": "Advertiser A",
    "format": "text"
  },
  "pageNameB": {
    "label": "Advertiser B",
    "format": "text"
  },
  "activeAdCountDiff": {
    "label": "Ad count A-B",
    "format": "number"
  },
  "sharedHookTypes": {
    "label": "Shared hooks",
    "format": "array"
  },
  "ctaOverlap": {
    "label": "CTA overlap",
    "format": "number"
  },
  "adLibraryUrl": {
    "label": "Ad Library link",
    "format": "link"
  },
  "noticeCode": {
    "label": "Notice",
    "format": "text"
  },
  "message": {
    "label": "Message",
    "format": "text"
  },
  "checkedAt": {
    "label": "Checked at",
    "format": "date"
  },
  "responsibility": {
    "label": "Responsibility",
    "format": "text"
  }
}
```

## About this Actor

This example demonstrates how to use [Meta & Facebook Ad Library Scraper: Ads, Hooks, Landing Intel](https://apify.com/ntriqpro/meta-ad-library-intel.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/ntriqpro/meta-ad-library-intel.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/ntriqpro/meta-ad-library-intel.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`).
