# Meta Ad Reach & Political Ad Spend ($0.50/1k) (`unitbytes/facebook-ad-reach-spend-scraper`) Actor

⚡ Fast & Cheap ($0.50/1k): Scrape Facebook & Meta EU DSA ad reach, UK reach, age & gender data & political ad spend. Payer, beneficiary & impression ranges.

- **URL**: https://apify.com/unitbytes/facebook-ad-reach-spend-scraper.md
- **Developed by:** [UnitBytes | Enterprise Web Data](https://apify.com/unitbytes) (community)
- **Categories:** Marketing, Social media, AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.50 / 1,000 ad scrapeds

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

Learn more: https://docs.apify.com/actors/running/actors-in-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

## Meta Ad Reach, Political Spend & EU DSA Transparency Scraper

Extract **EU Digital Services Act (DSA) reach metrics**, **per-country age & gender audience breakdowns**, **declared payer & beneficiary entities**, and **Political / Social Issue ad spend & impression ranges** from the Meta Ad Library—with **no login credentials required**.

***

### Regulatory, Media Buying & Research Capabilities

- **EU Digital Services Act (DSA) Commercial Ad Reach (`DE`, `FR`, `NL`, `ES`, `IT`, `AT`, `PL`, `SE`, `IE`, etc.)**:
  - **`euTotalReach`**: Exact unique accounts reached across EU member states for commercial and regulated ads.
  - **`euAgeGenderBreakdown`**: Country-by-country reach counts across `18-24`, `25-34`, `35-44`, `45-54`, `55-64`, and `65+` cohorts (`male`, `female`, `unknown`, `total`).
  - **Targeting Parameters**: Declared **`euAgeMin`**, **`euAgeMax`**, **`euGenderAudience`**, and included **`euTargetLocations`**.
  - **Financial Entity Disclosures**: Declared **`payer`** and **`beneficiary`** legal entities.
- **Political, Election & Social Issue Spend (`adType: "political_and_issue_ads"`)**:
  - **`spendText`**, **`spendLower`**, **`spendUpper`**, and ISO **`currency`**.
  - **`impressionsText`**, **`impressionsLower`**, **`impressionsUpper`**, and **`byline`** (`"Paid for by"` disclaimers).
  - **`pageLifetimePoliticalSpend`** and **`isPoliticalPage`** advertiser indicators.
- **Complete Creative & Advertiser Context Included**:
  - Every record also includes **`adArchiveId`**, **`pageId`**, **`pageName`**, **`igUsername`**, **`igFollowers`**, **`activeDays`**, **`title`**, **`bodyText`**, **`linkUrl`**, **`primaryImageUrl`**, and **`primaryVideoHdUrl`**.

> **Upstream Coverage Note:** Meta publishes `euTotalReach` and age/gender/location targeting on ads delivered to **EU / EEA** and **UK (`GB`)** audiences (`country: "DE"`, `"FR"`, `"NL"`, `"GB"`, etc.), plus per-country `euAgeGenderBreakdown` and `payer`/`beneficiary` legal-entity disclosures under the **EU Digital Services Act (DSA)**. Meta publishes `spendText` / `impressionsText` ranges and `byline` disclaimers on **Issues, Elections or Politics** ads (`adType: "political_and_issue_ads"`). Commercial non-political ads outside EU/UK jurisdictions include creative, placement, active duration, and advertiser profile fields, while reach/spend fields cleanly evaluate to `null`.

***

### Pay-Per-Event Pricing

| Apify Plan Tier | Price per Ad | Price per 1,000 Ads |
| :--- | :--- | :--- |
| **Free** | `$0.00075` | **`$0.75 / 1K`** |
| **Bronze** | `$0.00065` | **`$0.65 / 1K`** |
| **Silver** | `$0.00055` | **`$0.55 / 1K`** |
| **Gold / Platinum / Diamond** | `$0.00050` | **`$0.50 / 1K`** |

*(Includes a one-time `$0.0005` Actor start event per run.)*

***

### Quick Start Examples

#### 1. Estimate Competitor Reach & Demographics in Europe (EU DSA)

```json
{
  "queries": ["Zalando"],
  "country": "DE",
  "activeStatus": "active",
  "sortBy": "impressions",
  "scrapeAdDetails": true,
  "maxItems": 30
}
```

#### 2. Audit US Political & Issue Ad Spend Ranges

```json
{
  "queries": ["healthcare"],
  "country": "US",
  "adType": "political_and_issue_ads",
  "activeStatus": "all",
  "sortBy": "impressions",
  "startDateMin": "2026-01-01",
  "maxItems": 50
}
```

***

### Flat Output Sample

```json
{
  "adArchiveId": "770123987654321",
  "adUrl": "https://www.facebook.com/ads/library/?id=770123987654321",
  "isActive": true,
  "startDate": "2026-03-01T09:00:00+00:00",
  "activeDays": 29.1,
  "pageId": "200300400500",
  "pageName": "Nordic Commerce SE",
  "payer": "Nordic Commerce SE",
  "beneficiary": "Nordic Commerce SE",
  "isAaaEligible": true,
  "euTargetsEu": true,
  "euTotalReach": 412890,
  "euGenderAudience": "All",
  "euAgeMin": 18,
  "euAgeMax": 65,
  "euTargetLocations": ["Germany", "Austria", "Netherlands"],
  "euLocationCountriesText": "Germany, Austria, Netherlands",
  "euAgeGenderBreakdown": [
    {
      "country": "DE",
      "ageRange": "25-34",
      "male": 62400,
      "female": 88100,
      "unknown": 540,
      "total": 151040
    },
    {
      "country": "AT",
      "ageRange": "25-34",
      "male": 11200,
      "female": 15900,
      "unknown": 95,
      "total": 27195
    }
  ],
  "publisherPlatforms": ["FACEBOOK", "INSTAGRAM"],
  "publisherPlatformsText": "FACEBOOK, INSTAGRAM",
  "displayFormat": "IMAGE",
  "title": "Spring Season Essentials",
  "linkUrl": "https://store.example.eu/spring",
  "linkDomain": "store.example.eu",
  "countryFilter": "DE",
  "searchQuery": "Nordic Commerce",
  "inputSource": "keyword",
  "detailLevel": "full",
  "scrapedAt": "2026-03-30T12:00:00+00:00"
}
```

***

### Support

Questions or custom transparency compliance needs? Open a ticket in the **Issues** tab on this Actor page in Apify Console.

# Actor input Schema

## `queries` (type: `array`):

Search commercial brands in EU/UK markets (e.g. `Zalando`, `Shopify`) for EU DSA / UK reach & demographics, or civic/election topics (`senate`, `climate`) for political spend & impressions (up to 50 queries per run).

## `urls` (type: `array`):

Paste Facebook Page URLs (`https://www.facebook.com/nike`), Instagram URLs, or Meta Ad Library URLs (`facebook.com/ads/library/?...`), up to 25 URLs per run.

## `adIds` (type: `array`):

Specific Meta Ad Archive IDs to inspect reach, payer/beneficiary, or spend disclosures (up to 50 queries/IDs per run).

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

Use EU member-state ISO codes (`DE`, `FR`, `NL`, `ES`, `IT`, `AT`, `PL`, `SE`, `IE`) or `GB` (`UK`) for total reach & age/gender breakdowns, or `US` / `GB` / `BR` with `adType: political_and_issue_ads` for political spend.

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

Select 'All Ads' in EU countries for DSA commercial reach disclosures, or 'Issues, Elections or Politics' for spend & impression ranges.

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

Include active ads, historical ended ads, or both.

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

Sort by highest impressions/reach first or default order.

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

Matches Meta Ad Library's native date filter (`start_date[min]`): returns ads active on or after this date (e.g. `2026-01-01`).

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

Matches Meta Ad Library's native date filter (`start_date[max]`): returns ads started on or before this date (e.g. `2026-12-31`).

## `scrapeAdDetails` (type: `boolean`):

Fetches full EU DSA reach totals, per-country age & gender reach breakdowns, payer/beneficiary entities, and advertiser page spend.

## `maxItems` (type: `integer`):

Maximum total ads to return.

## `resumptionToken` (type: `string`):

Paste `resumptionToken` from `RESUMPTION_TOKEN` in Key-Value Store to continue multi-batch archival runs without duplicates.

## `proxyConfiguration` (type: `object`):

Apify Residential Proxy is automatically configured on cloud runs.

## Actor input object example

```json
{
  "queries": [
    "Zalando"
  ],
  "country": "DE",
  "adType": "all",
  "activeStatus": "active",
  "sortBy": "impressions",
  "scrapeAdDetails": true,
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

# 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 = {
    "queries": [
        "Zalando"
    ],
    "country": "DE",
    "adType": "all",
    "activeStatus": "active",
    "sortBy": "impressions",
    "scrapeAdDetails": true,
    "maxItems": 20,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("unitbytes/facebook-ad-reach-spend-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 = {
    "queries": ["Zalando"],
    "country": "DE",
    "adType": "all",
    "activeStatus": "active",
    "sortBy": "impressions",
    "scrapeAdDetails": True,
    "maxItems": 20,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("unitbytes/facebook-ad-reach-spend-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 '{
  "queries": [
    "Zalando"
  ],
  "country": "DE",
  "adType": "all",
  "activeStatus": "active",
  "sortBy": "impressions",
  "scrapeAdDetails": true,
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call unitbytes/facebook-ad-reach-spend-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,unitbytes/facebook-ad-reach-spend-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/KRbbwQ546DiK6Yzh3/builds/JHcXimtieTcUgY2Of/openapi.json
