# Meta & Facebook Ad Library Scraper: Copy, EU Reach & Scores (`jvon/facebook-ads-scraper`) Actor

Extract active and historical Meta Ad Library ads across Facebook, Instagram, Messenger, Threads, and Audience Network — including creatives, copy hooks, EU reach/spend, advertiser transparency, landing tech stack, and Winner Score at $0.80/1k ads with $0 start fee.

- **URL**: https://apify.com/jvon/facebook-ads-scraper.md
- **Developed by:** [Jvon Dev](https://apify.com/jvon) (community)
- **Categories:** Social media, E-commerce, AI
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.75 / 1,000 ads scraped (proxies & analytics included)

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

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 examples already wired to this Actor's own input schema, see the [API](#api) section below.

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`).

# README

### What does Meta & Facebook Ad Library Scraper do?

**Meta & Facebook Ad Library Scraper** is a high-throughput, zero-browser **Meta Ad Library API alternative** that extracts active and historical ads across **Facebook, Instagram, Messenger, Threads, and Audience Network** — complete with ad copy hooks, creatives, EU reach & spend transparency, advertiser page insights, landing storefront tech stacks, and an empirical **Winner Score (0–100)** — for **$1.20 per 1,000 ads (proxies included, $0 start fee)**.

![Apify Actor](https://img.shields.io/badge/Apify-Actor-blue?style=flat-square)
![Pay Per Event](https://img.shields.io/badge/Pricing-%241.20%2F1k%20Ads-green?style=flat-square)
![MCP Ready](https://img.shields.io/badge/AI%20Agent-MCP%20Compatible-indigo?style=flat-square)

<table>
<tr>
<th>What you can extract</th>
<th>Features &amp; integrations</th>
</tr>
<tr>
<td valign="top">

- **Complete creative & copy payloads:** Headlines, primary text, captions, CTAs, images, HD/SD videos & carousel cards
- **Advertiser & page transparency:** Page ID, category, likes, Instagram handle/followers, creation date & admin countries
- **EU DSA reach & spend bands:** Total EU reach, country splits, age/gender breakdowns, payer & beneficiary disclosures
- **Landing storefront intelligence:** Destination CMS (Shopify, WooCommerce, etc.), pixels/apps, UTM parameters & funnel type

</td>
<td valign="top">

- **Sub-second lightweight runtime (0% browser bloat)** — zero Playwright timeouts or Chromium memory crashes
- **Strict `maxAds` budget shield** with variant deduplication so collated creatives never trigger surprise over-billing
- **Empirical Winner Score (0–100)** + zero-LLM Creative DNA (`SUMMARY.md` & `INTELLIGENCE.json`) included at **$0 extra fee**
- **Lifecycle Delta Watch (`watchLabel`)** detects `NEW_LAUNCH`, `SCALING`, and `NEWLY_PAUSED` ads across scheduled runs
- **AI Agent & MCP ready**, REST API, webhooks, Node.js & Python SDKs, n8n, Make & Zapier

</td>
</tr>
</table>

***

### Why Meta & Facebook Ad Library Scraper outperforms alternatives

Legacy Ad Library scrapers launch heavy headless browsers that time out on large brands, charge `$1.50–$5.80/1k` plus hidden add-on fees for EU reach or storefront enrichment, and dump nested raw JSON without highlighting which creatives are actually scaling. This Actor solves all four:

| Capability | This Actor (`jvon/facebook-ads-scraper`) | Legacy Ad Library Scrapers |
| :--- | :---: | :---: |
| **Zero-browser protocol engine** | ✓ Sub-second streaming at 512MB RAM | ✗ Heavy headless browsers & frequent timeouts |
| **All-inclusive enrichment ($0 extra)** | ✓ EU reach, page info & landing CMS/pixels included | ✗ `$0.75–$5.70/1k` extra per enrichment add-on |
| **Strict `maxAds` budget shield** | ✓ Hard cap before delivery + collated master mode | ✗ Unbounded variant expansion & surprise bills |
| **Winner Score & Creative DNA** | ✓ `0–100` scale score, hooks, offers & `SUMMARY.md` | ✗ Unsummarized raw JSON dumps |
| **Lifecycle Watch (`watchLabel`)** | ✓ Flags `NEW_LAUNCH`, `SCALING` & `NEWLY_PAUSED` ads | ✗ Re-scrapes and re-bills identical ads weekly |
| **Transparent pricing** | ✓ **$1.20 / 1,000 ads** (proxies included + **$0 start fee**) | ✗ `$1.50–$5.80/1k` + start fees + detail surcharges |

***

### What data can you extract from Meta Ad Library?

| Field Group | Key Fields Included | Type |
| :--- | :--- | :--- |
| **Identifiers & Status** | `adArchiveId`, `collationId`, `collationCount`, `isActive`, `daysActive`, `startDateIso`, `endDateIso` | String / Integer / Boolean |
| **Winner & Creative DNA** | `winnerScore`, `winnerTier`, `hookLine`, `offers[]`, `creativeDna` (`copyFramework`, `funnelType`, UTMs) | Integer / Array / Object |
| **Ad Copy & Media** | `headline`, `bodyText`, `caption`, `ctaText`, `ctaType`, `primaryImageUrl`, `primaryVideoUrl`, `cards[]`, `archivedMediaUrls[]` | String / Array |
| **EU Reach & Spend** | `euTotalReach`, `spendRange`, `impressionsRange`, `euTransparency` (`payerName`, `beneficiaryName`, `reachByCountry[]`, `ageGenderBreakdown[]`) | Number / String / Object |
| **Page & Storefront Stack** | `pageId`, `pageName`, `pageInfo` (`igUsername`, `igFollowers`, `adminCountries[]`), `landingDomain`, `landingPlatform`, `landingTechStack` | String / Object |

> **Need the live product catalogs and customer reviews behind those winning ads?** Pair this Actor with our sibling e-commerce intelligence scrapers:
>
> - **[Shopify Product & App Scraper](https://apify.com/jvon/shopify-scraper):** Extract complete Shopify product catalogs, SKU inventory, discount math, and 30+ installed apps.
> - **[Shopify Reviews Scraper](https://apify.com/jvon/shopify-reviews-scraper):** Mine Voice-of-Customer pain drivers and winning 5-star ad hooks across Judge.me, Loox, Yotpo, Okendo, and Stamped.io.
> - **[WooCommerce Product Scraper](https://apify.com/jvon/woocommerce-scraper):** Extract WordPress storefront catalogs, SKU variants, and pricing matrices.
> - **[Universal E-Commerce Scraper](https://apify.com/jvon/ecommerce-universal-scraper):** Auto-detect any CMS storefront into one normalized product feed.

***

### How much does scraping Meta Ad Library cost?

This Actor uses all-inclusive **Pay-Per-Event (PPE)** billing — you pay one flat rate per normalized ad delivered (`apify-default-dataset-item`), with **residential proxies included**, **$0 Actor start fee**, **$0 detail/enrichment surcharges**, and **$0 charge on failed or zero-result runs**:

- **Free Plan:** Your `$5.00` monthly Apify credit covers up to **4,166 ads** at **$1.20 / 1,000 ads** (`$0.00120` per ad) — proxies included.
- **Paid Apify Tiers:** Automatic volume discounts bring the all-inclusive rate down to **$0.75 / 1,000 ads** on Gold, Platinum, and Diamond plans.

| Apify Plan Tier | Price / 1,000 Ads | Cost per Ad | Usage Example |
| :--- | :---: | :---: | :--- |
| **Free** | **$1.20 / 1k** | `$0.00120` | Free `$5` credit = up to 4,166 ads |
| **Bronze** | **$1.00 / 1k** | `$0.00100` | Weekly brand & creative swipe files |
| **Silver** | **$0.85 / 1k** | `$0.00085` | Multi-competitor agency tracking |
| **Gold / Platinum / Diamond** | **$0.75 / 1k** | `$0.00075` | High-volume ad intelligence pipelines |

Residential proxies, EU DSA reach & demographic breakdowns, advertiser page transparency, destination storefront CMS/pixel detection, `SUMMARY.md`, `INTELLIGENCE.json`, and `DIFF_REPORT.json` are all included at **$0 extra proxy or detail fees**.

***

### How to scrape Meta Ad Library

1. Create a free [Apify account](https://console.apify.com/sign-up).
2. Open **Meta & Facebook Ad Library Scraper** in Apify Console.
3. Paste one or more **Search Targets** — Ad Library URLs, Facebook Page URLs, brand domains (e.g. `beardbrand.com`), numeric Page IDs, single ad share links (`?id=...`), or keywords.
4. Set **Max Ads Limit** (`100` by default) and optional filters (`country`, `activeStatus`, `mediaType`, `watchLabel`).
5. Click **Start**, then export your dataset in **JSON, CSV, Excel, XML, or HTML** from the **Storage** tab.

***

### Input

See the **Input tab** for interactive controls. Core parameters:

| Field | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `targets` | `array` | Ad Library URL | Keywords, domains, Facebook Page URLs, numeric Page IDs, search URLs, or single ad `?id=` links |
| `country` | `string` | `"US"` | Two-letter ISO country code (`US`, `GB`, `DE`) or `"ALL"` |
| `activeStatus` | `string` | `"active"` | `"active"`, `"inactive"`, or `"all"` |
| `adType` | `string` | `"all"` | `"all"`, `"political_and_issue_ads"`, `"housing"`, `"employment"`, or `"credit"` |
| `mediaType` | `string` | `"all"` | `"all"`, `"image"`, `"video"`, `"meme"`, or `"none"` |
| `publisherPlatforms` | `array` | `[]` | Restrict to `facebook`, `instagram`, `messenger`, `audience_network`, `threads` |
| `languages` | `array` | `[]` | Optional ISO language codes (e.g. `["en"]`) |
| `startDateMin` / `startDateMax` | `string` | `""` | Optional `YYYY-MM-DD` launch window bounds |
| `sortBy` | `string` | `"relevance"` | `"relevance"`, `"impressions_desc"`, or `"newest"` |
| `maxAds` | `integer` | `100` | Strict maximum ads to deliver and bill (`1–50000`) |
| `collationMode` | `string` | `"deduplicate_master"` | `"deduplicate_master"` (1 row per ad group) or `"expand_variants"` |
| `includeDetails` | `boolean` | `true` | Fetch EU reach/demographics, payer/beneficiary & advertiser page stats |
| `enrichLandingPages` | `boolean` | `true` | Probe unique destination domains once for CMS & marketing tech stack |
| `archiveMediaToKv` | `boolean` | `false` | Persist primary images/videos in Key-Value Store for permanent URLs |
| `watchLabel` | `string` | `""` | Reusable KVS label to classify `NEW_LAUNCH`, `SCALING`, and `NEWLY_PAUSED` ads |
| `onlyNewOrChanged` | `boolean` | `false` | Emit only `NEW_LAUNCH` and `SCALING` ads when `watchLabel` is set |
| `maxConcurrency` | `integer` | `3` | Parallel isolated session workers (`1–8`) |
| `proxyTier` | `string` | `"auto"` | `"auto"`, `"datacenter"`, `"residential"`, or `"custom"` |

**JSON input example (API / MCP / CLI):**

```json
{
  "targets": [
    "beardbrand.com",
    "https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=US&q=skincare&search_type=keyword_unordered"
  ],
  "country": "US",
  "activeStatus": "active",
  "maxAds": 250,
  "collationMode": "deduplicate_master",
  "includeDetails": true,
  "enrichLandingPages": true,
  "watchLabel": "weekly-competitor-ads"
}
```

***

### Output

Download your dataset in **JSON, CSV, Excel, HTML, or XML**, or consume it via API / MCP.

#### Standard JSON record

```json
{
  "adArchiveId": "3675117995977459",
  "collationId": "5544332211",
  "collationCount": 4,
  "pageId": "108293847562100",
  "pageName": "Example Brand Official",
  "isActive": true,
  "daysActive": 47,
  "winnerScore": 71,
  "winnerTier": "SCALING",
  "displayFormat": "VIDEO",
  "publisherPlatforms": ["facebook", "instagram"],
  "hookLine": "Stop paying $60 for refills that leak after two weeks.",
  "headline": "Upgrade Your Morning Routine — 20% OFF Today",
  "bodyText": "Stop paying $60 for refills that leak after two weeks. Trusted by 25,000+ verified customers with a 30-day money-back guarantee.",
  "ctaText": "Shop Now",
  "ctaType": "SHOP_NOW",
  "offers": ["% OFF", "Money-Back Guarantee"],
  "landingUrl": "https://examplebrand.com/products/starter-kit?utm_source=meta",
  "landingDomain": "examplebrand.com",
  "landingPlatform": "shopify",
  "primaryImageUrl": "https://cdn.example.com/ad-thumb.jpg",
  "primaryVideoUrl": "https://cdn.example.com/ad-video.mp4",
  "euTotalReach": 45200,
  "spendRange": null,
  "impressionsRange": null,
  "watchStatus": "NEW_LAUNCH",
  "startDateIso": "2026-10-15T00:00:00.000Z",
  "adLibraryUrl": "https://www.facebook.com/ads/library/?id=3675117995977459",
  "extractedAt": "2026-12-01T18:00:00.000Z"
}
```

#### Executive reports (`SUMMARY.md`, `INTELLIGENCE.json` & `DIFF_REPORT.json`)

Every run saves `SUMMARY.md` (top scaling ads table, winning hooks, offer frequency, and creative format split) and `INTELLIGENCE.json` to Key-Value Store at **$0 extra cost**. When `watchLabel` is provided, `DIFF_REPORT.json` summarizes newly launched, scaling, and newly paused creatives.

***

### Edge cases & error handling

| Scenario | Behavior | Recommended Handling |
| :--- | :--- | :--- |
| Brand has 5,000+ ads in a wide range | Automatically shards into parallel time-window workers | Keep `maxConcurrency` at `3–5` for fast parallel retrieval |
| Target returns 0 matching ads | Logs diagnostic notice and exits cleanly with `$0` billed | Widen `country: "ALL"` or `activeStatus: "all"` |
| Spending limit reached mid-run | Persists `CHECKPOINT` state and stops cleanly | Download partial dataset; no unbilled overage |
| Edge challenge on datacenter IPs | Surfaces clear remediation message without fake rows | Use `proxyTier: "residential"` or `customProxyUrl` |

***

### AI Agents (MCP), API & integrations

#### Claude Desktop & Cursor (MCP)

```json
{
  "mcpServers": {
    "apify": {
      "command": "npx",
      "args": ["-y", "@apify/actors-mcp-server"],
      "env": {
        "APIFY_TOKEN": "YOUR_APIFY_API_TOKEN"
      }
    }
  }
}
```

#### Node.js & Python SDKs (`apify-client`)

```typescript
import { ApifyClient } from "apify-client";

const client = new ApifyClient({ token: "YOUR_APIFY_API_TOKEN" });
const run = await client.actor("jvon/facebook-ads-scraper").call({
  targets: ["beardbrand.com"],
  country: "US",
  maxAds: 200,
  watchLabel: "beardbrand-weekly",
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_API_TOKEN")
run = client.actor("jvon/facebook-ads-scraper").call(run_input={
    "targets": ["beardbrand.com"],
    "country": "US",
    "maxAds": 200,
    "watchLabel": "beardbrand-weekly",
})
items = list(client.dataset(run["defaultDatasetId"]).iterate_items())
```

Connect runs directly to **n8n, Make, Zapier, Google Sheets, Airtable, PostgreSQL, Slack**, or custom **webhooks** via the **Integrations tab**.

***

### Related e-commerce scrapers

<table>
  <tr>
    <td><b><a href="https://apify.com/jvon/shopify-scraper">Shopify Product &amp; App Scraper</a></b><br/>Complete Shopify catalogs, SKU inventory &amp; 30+ apps</td>
    <td><b><a href="https://apify.com/jvon/shopify-reviews-scraper">Shopify Reviews Scraper</a></b><br/>Reviews, UGC photos &amp; VOC ad hooks across 5 apps</td>
  </tr>
  <tr>
    <td><b><a href="https://apify.com/jvon/woocommerce-scraper">WooCommerce Product Scraper</a></b><br/>WordPress store catalogs, SKUs &amp; pricing matrices</td>
    <td><b><a href="https://apify.com/jvon/bigcommerce-scraper">BigCommerce Product Scraper</a></b><br/>Full storefront extraction, options &amp; availability</td>
  </tr>
  <tr>
    <td><b><a href="https://apify.com/jvon/magento-scraper">Magento / Adobe Commerce Scraper</a></b><br/>Enterprise product trees, configurable SKUs &amp; stock</td>
    <td><b><a href="https://apify.com/jvon/ecommerce-universal-scraper">Universal E-Commerce Scraper</a></b><br/>Auto-detects any CMS + Schema.org stores into one feed</td>
  </tr>
</table>

***

### Frequently asked questions

#### How does Winner Score work when Meta hides ad spend outside the EU?

Meta restricts exact spend and reach bands to EU/UK DSA disclosures and regulated political ads. For commercial campaigns globally, `winnerScore` (`0–100`) combines ad longevity (`daysActive`), creative replication density (`collationCount`), active flight status, and EU reach velocity when available so you can immediately separate 3-day tests from proven scaling winners.

#### Do I need residential proxies?

On `"auto"` (default), the Actor automatically uses country-matched Apify Residential proxies when available on your Apify plan, falling back cleanly if unavailable. You can also supply your own residential or ISP proxies via `customProxyUrl` with `proxyTier: "custom"`.

#### How do I prevent expired creative links in spreadsheets?

Enable `archiveMediaToKv: true` to persist primary images and video creatives into your Apify Key-Value Store (`archivedMediaUrls[]`), or re-run individual ad share links (`https://www.facebook.com/ads/library/?id=<adArchiveId>`) anytime to refresh media URLs.

#### Is it legal to scrape public Meta Ad Library data?

This Actor accesses only publicly visible Meta Ad Library transparency disclosures and public storefront landing pages, without accessing private accounts or gated user data. Always ensure your downstream usage complies with applicable terms and data regulations such as GDPR.

#### Need support or a feature request?

Open a ticket on the **Issues tab** with your Run ID and sample input targets.

# Actor input Schema

## `targets` (type: `array`):

Ad Library URLs, Facebook Page URLs, brand domains, page IDs, ad share links, or keywords

## `country` (type: `string`):

Two-letter ISO country code (e.g. US, GB, DE) or ALL

## `activeStatus` (type: `string`):

Filter by active, inactive, or all ads

## `adType` (type: `string`):

Meta Ad Library category scope

## `mediaType` (type: `string`):

Filter by ad creative format

## `publisherPlatforms` (type: `array`):

Optional platforms filter: facebook, instagram, messenger, audience_network, threads

## `languages` (type: `array`):

Optional two-letter ISO language filters (e.g. en, es, de)

## `startDateMin` (type: `string`):

Optional earliest start date (YYYY-MM-DD)

## `startDateMax` (type: `string`):

Optional latest start date (YYYY-MM-DD)

## `sortBy` (type: `string`):

Result ordering

## `maxAds` (type: `integer`):

Strict maximum ads to deliver and bill

## `collationMode` (type: `string`):

How collated ad variants are emitted

## `includeDetails` (type: `boolean`):

Include EU DSA reach/demographics, payer/beneficiary, and advertiser page transparency

## `enrichLandingPages` (type: `boolean`):

Detect destination storefront CMS, pixels, and marketing apps once per domain

## `archiveMediaToKv` (type: `boolean`):

Persist primary creative images/videos in Key-Value Store so links never expire

## `watchLabel` (type: `string`):

Optional Key-Value Store label to track NEW_LAUNCH, SCALING, and NEWLY_PAUSED ads

## `onlyNewOrChanged` (type: `boolean`):

When watchLabel is active, emit only NEW_LAUNCH and SCALING ads

## `outputFormat` (type: `string`):

Output preference alongside SUMMARY.md & INTELLIGENCE.json

## `maxConcurrency` (type: `integer`):

Parallel time-window shard workers

## `proxyTier` (type: `string`):

Proxy routing mode (auto uses country-matched residential when available on Apify, or direct/custom locally)

## `customProxyUrl` (type: `string`):

Optional custom residential/ISP proxy URL (encrypted)

## `metaAccessToken` (type: `string`):

Optional official Meta Ad Library API token for regulated archive fallback

## Actor input object example

```json
{
  "targets": [
    "https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=US&q=nike&search_type=keyword_unordered"
  ],
  "country": "US",
  "activeStatus": "active",
  "adType": "all",
  "mediaType": "all",
  "publisherPlatforms": [],
  "languages": [],
  "startDateMin": "",
  "startDateMax": "",
  "sortBy": "relevance",
  "maxAds": 100,
  "collationMode": "deduplicate_master",
  "includeDetails": true,
  "enrichLandingPages": true,
  "archiveMediaToKv": false,
  "watchLabel": "",
  "onlyNewOrChanged": false,
  "outputFormat": "json",
  "maxConcurrency": 3,
  "proxyTier": "auto"
}
```

# Actor output Schema

## `resultsDataset` (type: `string`):

Dataset containing deduplicated ads, copy hooks, media URLs, EU reach/spend, landing storefront intelligence, and Winner Scores.

## `summaryReport` (type: `string`):

Token-efficient Markdown creative brief, top winning hooks, offer breakdown, and scaling ads saved in Key-Value Store (SUMMARY.md).

## `intelligenceReport` (type: `string`):

Structured hook leaderboard, offer frequency, CTA matrix, and storefront tech-stack distribution (INTELLIGENCE.json).

## `diffReport` (type: `string`):

Newly launched, scaling, and newly paused ads compared against the previous watchKey run (DIFF_REPORT.json).

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("jvon/facebook-ads-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("jvon/facebook-ads-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call jvon/facebook-ads-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,jvon/facebook-ads-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/bF2EDzJOKY42xpmXd/builds/R1myoUVD9af9OFAOO/openapi.json
