# Extract Facebook ad copy, images and videos by Library ID

**Use case:** 

Turn one saved Facebook or Instagram Ad Library ID or URL into ad copy, creative media links, advertiser details, CTA, landing page and explicit activity status. Start with a carousel ad example, replace it with your own ad, and export JSON or CSV for competitor creative research. No Facebook login is required.

## Input

```json
{
  "adId": "1075137158633135",
  "country": "US"
}
```

## Output

```json
{
  "lookupStatus": {
    "label": "Lookup outcome",
    "format": "string"
  },
  "status": {
    "label": "Ad activity status",
    "format": "string"
  },
  "adLibraryUrl": {
    "label": "Ad Library URL",
    "format": "string"
  },
  "adId": {
    "label": "Ad ID",
    "format": "string"
  },
  "brand": {
    "label": "Advertiser",
    "format": "string"
  },
  "body": {
    "label": "Ad copy",
    "format": "string"
  },
  "linkTitle": {
    "label": "Headline",
    "format": "string"
  },
  "images": {
    "label": "Images",
    "format": "array"
  },
  "videos": {
    "label": "Videos",
    "format": "array"
  },
  "linkUrl": {
    "label": "Landing page URL",
    "format": "string"
  },
  "ctaText": {
    "label": "CTA",
    "format": "string"
  },
  "ctaUrl": {
    "label": "CTA URL",
    "format": "string"
  },
  "platforms": {
    "label": "Platforms",
    "format": "array"
  },
  "startDate": {
    "label": "Start Date",
    "format": "string"
  },
  "endDate": {
    "label": "End Date",
    "format": "string"
  },
  "active": {
    "label": "Active flag (check errors)",
    "format": "boolean"
  },
  "error": {
    "label": "Lookup error",
    "format": "string"
  },
  "libraryID": {
    "label": "Library ID",
    "format": "string"
  },
  "format": {
    "label": "Format",
    "format": "string"
  },
  "scrapedAt": {
    "label": "Scraped At",
    "format": "string"
  },
  "country": {
    "label": "Country",
    "format": "string"
  },
  "extractionMethod": {
    "label": "Extraction method",
    "format": "string"
  }
}
```

## How it works

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

The Facebook Ad Library Scraper – Single Ad Lookup Actor is ready to run with the inputs already set for "Extract Facebook ad copy, images and videos by Library ID". [Sign up or log in](https://console.apify.com/create-task-from-example/Ek62jBF4PueX3Urfd) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Extract Facebook ad copy, images and videos by Library ID" task

The Facebook Ad Library Scraper – Single Ad Lookup Actor will start running based on the input automatically. You can also change all the input fields, like ad library id or url and country, to match your specific use case.

### 3. Receive the "Extract Facebook ad copy, images and videos by Library ID" 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 lookup outcome, ad activity status, ad library url, 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 "Extract Facebook ad copy, images and videos by Library ID" task via API](https://apify.com/whoareyouanas/meta-ad-library-single-ad-lookup.md).

## FAQ

### What does the Facebook ad creative lookup return?

The Facebook ad creative lookup returns available ad copy, headline, image and video URLs, advertiser, CTA, landing page, dates, platforms and activity status. Field coverage varies by ad.

### Can I use my own Facebook or Instagram ad?

The Facebook ad creative lookup accepts one numeric Meta Ad Library ID as a string or an HTTPS Facebook Ad Library link containing ?id=. Replace the example ID and select the lookup country.

### Can an AI assistant run this lookup through MCP?

The Facebook ad creative lookup Actor is available through Apify MCP. Connect mcp.apify.com, select whoareyouanas/meta-ad-library-single-ad-lookup, and supply adId and country. Read the completed run dataset.

### Does unknown status mean the ad is inactive?

The Facebook ad creative lookup returns active, inactive or unknown status. Unknown activity or a lookup error does not prove an ad stopped running. Check lookupStatus and error before using the result.

### How much does this lookup cost?

The Facebook ad creative lookup uses the Actor pricing: a $0.006 base charge per dataset result plus an Actor Start event from $0.00005, with quantity based on memory. Error records are also charged. See the Actor Pricing tab for current rates.

### Does this task download video files or measure ad performance?

The Facebook ad creative lookup returns available media URLs, which may expire. It does not download or archive media, search for new ads, or return spend, conversions, ROAS or winning-ad scores.

## About this Actor

This example demonstrates how to use [Facebook Ad Library Scraper – Single Ad Lookup](https://apify.com/whoareyouanas/meta-ad-library-single-ad-lookup.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/whoareyouanas/meta-ad-library-single-ad-lookup.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/whoareyouanas/meta-ad-library-single-ad-lookup.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`).
