# Snapchat Ad Library Scraper: EU Ads & Impressions (`rastriq/snapchat-ad-library-scraper`) Actor

Extract ads from Snapchat's public EU Ad Library (DSA Art. 39): paying advertiser, brand, creative, targeting and impressions per country. No API key needed.

- **URL**: https://apify.com/rastriq/snapchat-ad-library-scraper.md
- **Developed by:** [Rastriq — Structured data from the world](https://apify.com/rastriq) (community)
- **Categories:** Social media, Marketing
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 83.3% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.90 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## Snapchat Ad Library Scraper

Extracts ads from **Snapchat's public Ad Library** — the DSA Article 39 transparency repository.

Search by advertiser name to get creative details, targeting data, impression counts per country and payer identity. No API key or login needed.

### Features

- **No browser, no API key** — pure HTTP calls to Snapchat's public API
- Search by paying advertiser name (partial match)
- Filter by EU country, date range and delivery status
- Returns impressions per country, age/gender/language/device targeting
- Outputs structured JSON ready for analysis

### Input

| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| `advertiserNames` | string\[] | **Yes** | — | Paying advertiser names to search (e.g. `Nike, Inc.`) |
| `country` | string | No | All EU | ISO country code (`ES`, `DE`, `FR`…) |
| `startDate` | string | No | — | Filter ads from this date (`YYYY-MM-DD`) |
| `endDate` | string | No | — | Filter ads up to this date (`YYYY-MM-DD`) |
| `status` | string | No | Any | `ACTIVE` or `PAUSED` |
| `maxResults` | integer | No | 200 | Max ads per advertiser (1–5 000) |
| `proxyConfiguration` | object | No | None | Optional proxy configuration |

#### Example input

```json
{
  "advertiserNames": ["Nike, Inc.", "adidas AG"],
  "country": "ES",
  "maxResults": 50
}
```

### Output

Each dataset item represents one ad.

#### Common fields (shared across our DSA ad library scrapers)

| Field | Description |
|-------|-------------|
| `adId` | Durable ad identifier |
| `advertiser` | Advertiser / brand |
| `adPayer` | Entity that paid for the ad (`null` if not disclosed) |
| `firstShownDate` / `lastShownDate` | Delivery period |
| `impressions` | Impressions (`null` when the platform only reports reach) |
| `searchCountry` | Country used in the search |
| `sourceUrl` | Library endpoint the record came from |
| `is_natural_person_suspected` | `true` if the advertiser/payer name looks like a private individual (heuristic). Treat flagged records as personal data under GDPR |

The platform-specific fields follow:

| Field | Type | Description |
|-------|------|-------------|
| `adId` | string | Unique Snapchat ad identifier |
| `payingAdvertiserName` | string | Paying entity name |
| `adAccountName` | string | Ad account name |
| `brandName` | string | Brand name |
| `profileName` | string | Snapchat profile name |
| `headline` | string | Ad headline text |
| `callToAction` | string | CTA button label |
| `creativeType` | string | Creative format (e.g. `IMAGE`, `VIDEO`) |
| `adType` | string | Ad type classification |
| `mediaType` | string | Media format |
| `mediaUrl` | string | Creative media URL |
| `destinationUrl` | string | Click-through URL |
| `status` | string | Delivery status (`ACTIVE` / `PAUSED`) |
| `startDate` | string | Delivery start date |
| `endDate` | string | Delivery end date |
| `impressionsTotal` | integer | Total impressions across all countries |
| `impressionsByCountry` | object | Impressions broken down by country code |
| `targetingAge` | object | Age targeting range (min/max) |
| `targetingGender` | string | Gender targeting |
| `targetingLanguages` | string\[] | Language targeting |
| `targetingDevices` | string\[] | Device targeting |
| `regulatedContent` | boolean | Whether flagged as regulated content |
| `profileLogoUrl` | string | Profile logo URL |
| `searchQuery` | string | Advertiser name used in the search |
| `scrapedAt` | string | Extraction timestamp (ISO 8601) |
| `source` | string | Always `snapchat_ad_library` |

#### Example output

```json
{
  "adId": "abc123def456",
  "advertiser": "Nike",
  "adPayer": "Nike, Inc.",
  "firstShownDate": "2026-10-01",
  "lastShownDate": null,
  "impressions": 125000,
  "searchCountry": "ES",
  "sourceUrl": "https://adsapi.snapchat.com/v1/ads_library/ads/search",
  "is_natural_person_suspected": false,
  "payingAdvertiserName": "Nike, Inc.",
  "brandName": "Nike",
  "headline": "Just Do It",
  "creativeType": "VIDEO",
  "status": "ACTIVE",
  "startDate": "2026-10-01",
  "impressionsTotal": 125000,
  "impressionsByCountry": { "ES": "10001-50000", "FR": "50001-100000" },
  "targetingAge": { "min": 18, "max": 34 },
  "targetingGender": "ALL",
  "scrapedAt": "2026-11-12T10:30:00Z",
  "source": "snapchat_ad_library"
}
```

### How it works

The scraper calls Snapchat's **public Ad Library search API** (`POST /v1/ads_library/ads/search`). No authentication is required. The API returns paginated results with up to 50 ads per page; the scraper follows cursor-based pagination automatically.

### Notes

- The Snapchat API requires an **advertiser name** — it does not support free-text keyword search.
- Impression counts are returned as ranges, not exact numbers. The scraper sums the midpoints.
- Country codes follow ISO 3166-1 alpha-2 (e.g. `ES` for Spain, `DE` for Germany).
- The API covers all EU/EEA countries plus Turkey.

### 💰 How much does it cost to use Snapchat Ad Library Scraper?

Snapchat Ad Library Scraper uses **pay-per-event** pricing, so you only pay for the ads you get:

| Event | Price |
|-------|-------|
| Actor start (per GB of memory) | $0.0005 |
| Each ad record in the dataset | $0.0009 |

That works out to roughly **$0.90 per 1,000 ads**, platform compute included. A 10-ad test run costs about one cent. Use **Max ads** to cap what a run can cost.

### Related scrapers

- [Pinterest Ad Library Scraper](https://apify.com/rastriq/pinterest-ad-library-scraper)
- [AliExpress Ad Repository Scraper](https://apify.com/rastriq/aliexpress-ad-repository-scraper)
- [Zalando Ads Repository Scraper](https://apify.com/rastriq/zalando-ads-repository-scraper)
- [Temu Ad Library Scraper](https://apify.com/rastriq/temu-ad-library-scraper)
- [TikTok Ad Library Scraper](https://apify.com/rastriq/tiktok-ad-library-scraper)
- [Facebook Ad Library Scraper](https://apify.com/rastriq/fb-adlibrary-scraper)
- [Google Ads Transparency Center Scraper](https://apify.com/rastriq/google-ads-scraper)

# Actor input Schema

## `advertiserNames` (type: `array`):

One or more paying advertiser names to search. The Snapchat Ad Library requires an advertiser name — it does not support keyword search.<br><br>Examples: <code>Nike, Inc.</code>, <code>adidas AG</code>, <code>Zalando SE</code>

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

Only return ads delivered in this country (EU member states plus Türkiye, as covered by Snapchat's library). Leave on <b>All countries</b> for the broadest results.

## `startDate` (type: `string`):

Only return ads that started on or after this date. Leave empty for no lower bound.

## `endDate` (type: `string`):

Only return ads that started on or before this date. Leave empty for no upper bound.

## `status` (type: `string`):

Filter by ad delivery status.

## `maxResults` (type: `integer`):

Maximum number of ads to extract <b>per advertiser name</b>. Use it to cap the cost of a run.

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

Optional proxy. The Snapchat API is open and rarely blocks, but a proxy can help under heavy load.

## Actor input object example

```json
{
  "advertiserNames": [
    "Nike, Inc."
  ],
  "country": "",
  "status": "",
  "maxResults": 50,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `results` (type: `string`):

Dataset containing all scraped ads.

# 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 = {
    "advertiserNames": [
        "Nike, Inc."
    ],
    "maxResults": 50,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("rastriq/snapchat-ad-library-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 = {
    "advertiserNames": ["Nike, Inc."],
    "maxResults": 50,
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("rastriq/snapchat-ad-library-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 '{
  "advertiserNames": [
    "Nike, Inc."
  ],
  "maxResults": 50,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call rastriq/snapchat-ad-library-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,rastriq/snapchat-ad-library-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/LZU5OmZ9b1CDNcizf/builds/5SY9vXxKKMkDjJvGh/openapi.json
