# Snapchat Political Ads Archive: Spend, Targeting & Media (`xyrelith-data/snapchat-political-ads-scraper`) Actor

Export Snap's official political and advocacy ad archive with exact spend, impressions, full audience targeting, parsed landing and app destinations, and direct image or video file links. No login required.

- **URL**: https://apify.com/xyrelith-data/snapchat-political-ads-scraper.md
- **Developed by:** [Xyrelith Data](https://apify.com/xyrelith-data) (community)
- **Categories:** Social media, Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.49 / 1,000 results

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/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 Political Ads Archive Explorer

Snap publishes a public archive of every political, issue and advocacy ad that has run on its advertising platform, one snapshot per calendar year from 2018 onward. This actor turns those yearly archives into a searchable dataset: exact spend, impressions, run dates, the organization and paying advertiser behind each ad, the full audience targeting specification, the creative viewer page, a direct image or video file link, and the landing page or app destination embedded in the ad.

No login, Snapchat account, cookie, developer key or proxy is required.

### What it does

- Reads any combination of the 2018–2026 yearly archives, or every published year at once
- Filters by advertiser, candidate or ballot text, broad keyword, target region, country, currency, delivery status, spend, impressions and date window
- Filters for ads that use a specific kind of audience targeting, such as regions, postal codes, electoral districts, interests, segments, radius, metros or languages
- Looks up exact ads by 64-character ad ID, creative asset hash or creative viewer URL
- Returns the direct media file hosted on Snap's creative archive alongside the public viewer page
- Parses `web_view_url`, App Store, Google Play and deep-link destinations out of the creative properties
- Normalizes country names to ISO codes, splits billing addresses, structures radius targets and calculates CPM
- Sorts by newest or oldest start date, highest or lowest spend, or most or fewest impressions, then applies your result cap

### Output

One row per ad (`recordType: "politicalAd"`).

#### Identity and creative

| Field | Description |
|---|---|
| `adId` | Snap's 64-character ad identifier |
| `viewerUrl` | Public Snap creative viewer page for the ad |
| `mediaUrl` | Direct image or video file on Snap's public creative storage |
| `mediaType` | `video` or `image` |
| `mediaExtension` | File extension: `mp4`, `mov`, `png`, `jpg` or `jpeg` |
| `assetHash` | Creative asset hash used in the viewer and media URLs |
| `landingUrl` | Web-view URL attached to the ad |
| `iosAppUrl`, `androidAppUrl` | App Store or Google Play destination when published |
| `deepLinkUri`, `deepLinkIosAppUrl`, `deepLinkAndroidAppUrl` | Deep-link destinations when published |

#### Delivery and money

| Field | Description |
|---|---|
| `currency` | Billing currency code |
| `spend` | Spend reported by Snap in that currency |
| `impressions` | Published impression count |
| `cpm` | Spend per 1,000 impressions, calculated from the two fields above |
| `startDate`, `endDate` | ISO 8601 UTC timestamps; `endDate` is omitted when no end is published |
| `status` | `active`, `ended` or `scheduled`, derived from the published dates |

#### Advertiser and disclosure

| Field | Description |
|---|---|
| `organizationName` | Organization that created the ad |
| `payingAdvertiserName` | Entity that paid for the ad |
| `candidateBallotInformation` | Candidate or ballot information when disclosed |
| `committeeName` | Committee name when disclosed |
| `committeeIdentificationNumber` | Committee identification number |
| `committeeDisclosureName` | Disclosure name of the committee |
| `advertisingJurisdiction` | Advertising jurisdiction when disclosed |
| `billingAddress` | Full billing address from the archive |
| `billingStreet`, `billingCity`, `billingPostalCode`, `billingCountryCode` | Parsed address parts |

#### Audience targeting

| Field | Description |
|---|---|
| `country`, `countryCode` | Target country name and ISO two-letter code |
| `gender`, `ageBracket` | Gender and published age bracket |
| `ageMin`, `ageMax` | Numeric age bounds when the bracket is unambiguous |
| `regionsIncluded`, `regionsExcluded` | Included or excluded states, provinces and regions |
| `electoralDistrictsIncluded`, `electoralDistrictsExcluded` | Included or excluded electoral districts |
| `radiusTargetingIncluded`, `radiusTargetingExcluded` | Point-radius circles as objects with latitude, longitude and radius |
| `metrosIncluded`, `metrosExcluded` | Included or excluded metros |
| `postalCodesIncluded`, `postalCodesExcluded` | Included or excluded postal codes |
| `locationCategoriesIncluded`, `locationCategoriesExcluded` | Included or excluded place categories |
| `interests` | Interest audiences |
| `osType` | Operating system |
| `segments` | Advertiser-specific segments |
| `languages` | Language codes |
| `advancedDemographics` | Third-party demographic segments |
| `connectionTypes` | Wi-Fi or cellular targeting |
| `carrierTargeting` | Mobile carrier targeting |

#### Provenance

| Field | Description |
|---|---|
| `sourceYear` | Archive year the ad was read from |
| `sourceFileUrl` | Download URL of that year's ZIP archive |
| `sourcePageUrl` | Snap's public political ads library page |
| `sourceFileName` | CSV file name inside the archive |
| `sourceLastModified` | Last modification time reported for the archive file |
| `scrapedAt` | UTC timestamp when the row was exported |
| `recordType` | Always `politicalAd` |

Empty values are omitted rather than written as `null`, so every field that appears has real published data behind it.

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `mode` | select | `search` | `search` filters the archive; `adIds` performs exact lookups |
| `years` | multi-select | `["2026"]` | 2018 through 2026; leave empty for every published year |
| `adIds` | list | `[]` | Ad IDs, creative asset hashes or creative viewer URLs for `adIds` mode |
| `advertiserNameContains` | text | – | Substring of the organization or paying advertiser name |
| `candidateBallotContains` | text | – | Substring of the candidate or ballot information |
| `keywordContains` | text | – | Broad substring across names, committee, ballot, jurisdiction, landing URL, regions, interests and segments |
| `regionContains` | text | – | Substring of regions, metros, electoral districts or postal codes |
| `dateField` | select | `startDate` | Apply the date window to the start date, end date or active window |
| `dateFrom` | date | – | Inclusive lower bound in `YYYY-MM-DD` format |
| `dateTo` | date | – | Inclusive upper bound in `YYYY-MM-DD` format |
| `status` | select | `any` | `any`, `active`, `ended` or `scheduled` |
| `minSpend` | number | – | Minimum spend in the ad's own currency |
| `maxSpend` | number | – | Maximum spend in the ad's own currency |
| `minImpressions` | integer | – | Minimum impression count |
| `maxImpressions` | integer | – | Maximum impression count |
| `currencies` | multi-select | `[]` | AED, AUD, CAD, DKK, EUR, GBP, INR, NOK, NZD, SEK, USD |
| `countries` | multi-select | `[]` | ISO two-letter target country codes |
| `targetingTypes` | multi-select | `[]` | Keep ads using at least one selected targeting type |
| `creativeTypes` | multi-select | `[]` | `video` or `image` |
| `sortBy` | select | `startDateNewest` | Date, spend or impression ordering |
| `maxItems` | integer | `100` | Result cap applied after sorting (1–100,000) |

All filters are optional and combine with AND. An empty list means "no restriction" for that filter.

### Examples

#### Recent ads from one year

```json
{
  "mode": "search",
  "years": ["2026"],
  "maxItems": 100,
  "sortBy": "startDateNewest"
}
```

#### One advertiser's US ads with at least $1,000 spend

```json
{
  "mode": "search",
  "years": ["2024", "2025", "2026"],
  "advertiserNameContains": "human appeal",
  "countries": ["US", "GB"],
  "minSpend": 1000,
  "sortBy": "spendHigh",
  "maxItems": 50
}
```

#### Ads that used postal-code or electoral-district targeting during a window

```json
{
  "mode": "search",
  "years": ["2026"],
  "targetingTypes": ["postalCodes", "electoralDistricts"],
  "dateField": "activeWindow",
  "dateFrom": "2026-09-01",
  "dateTo": "2026-11-15",
  "maxItems": 250
}
```

#### Exact lookup by creative URL

```json
{
  "mode": "adIds",
  "years": ["2026"],
  "adIds": ["https://www.snap.com/political-ads/asset/92a98075b2ec36ac171efab0b32cfc8fe9fb3e53f80bfc90d249147f9bdab91e?mediaType=png"]
}
```

### Use cases

- Track a candidate, PAC, party or advocacy group's spend and impressions across election cycles
- Download the actual creative image or video for a story, audit or archive
- Compare who paid for an ad with the organization that ran it
- Study how campaigns combine regions, postal codes, electoral districts, interests and demographics
- Build dashboards of political ad activity by country, currency or time window
- Verify a specific ad from its ID or creative URL

### Data source and freshness

Snap's political and advocacy ads library is published as yearly ZIP files linked from its public transparency page. Each ZIP contains a `PoliticalAds.csv` file with the same 38 columns from 2018 through 2026. Snap refreshes the current year's file regularly, so start dates, spend, impressions and end dates for live ads can change between runs.

The archive uses Snap's own field formats. Countries are spelled out in lowercase, dates use `YYYY/MM/DD HH:MM:SSZ`, targeting values are packed into comma-separated cells, and creative properties are a comma-separated key-value string. This actor normalizes those formats without inventing data.

### Limitations

- The archive covers political, issue and advocacy ads only. Commercial Snap ads are not part of this source.
- Spend and impressions are the values Snap publishes at the time of the run. Live campaigns keep accumulating spend and impressions.
- `endDate` is absent for ads that are still running or were set without an end date.
- Some optional disclosure fields (committee details, advertising jurisdiction, candidate or ballot information) are only published for a minority of ads. When they are absent, the field is omitted.
- `ageMin` and `ageMax` are emitted only for unambiguous brackets such as `18+`, `35++` or `18-24`; open-ended trailing-dash brackets are left as the original `ageBracket` text.
- A small number of archived ads have no creative URL at all, so `viewerUrl`, `mediaUrl` and the media fields are absent for those rows.
- Creative files are served from Snap's public storage. This actor links to them; it does not rehost them.
- The archive is historical. An ad that was removed from the current year's file is no longer returned by that file, although earlier yearly files remain unchanged.

### FAQ

**Do I need a Snapchat account or cookie?**
No. The archive is public and static, and the actor works without any credentials, browser session or proxy.

**Does this return the actual image or video file?**
Yes. When Snap publishes a creative, the record includes a direct `mediaUrl` for the MP4, MOV, PNG, JPG or JPEG file, plus the public `viewerUrl` page.

**Can I get every ad ever published?**
Select every year or leave `years` empty. As of November 2026 the combined archive holds more than 84,000 ads across 2018–2026.

**Why is a targeting field missing on some rows?**
Snap only publishes targeting criteria that were actually used. If an ad targeted all ages, all genders or a whole country, the corresponding field may be empty in the source and is omitted here.

**Are spend values comparable across countries?**
No. Spend is reported in the ad's own `currency`; filter to one currency before comparing amounts.

**Can I look up an ad by its creative URL?**
Yes. Use `mode: "adIds"` and pass the creative viewer URL, the asset hash or the 64-character ad ID.

**What happens if I select a year Snap has not published yet?**
The actor skips that year, reports it in the run status, and continues with the years that are available.

**Is the archive deduplicated across years?**
Yes. Each ad ID is emitted once, even if the same ad appears in more than one selected archive.

# Actor input Schema

## `mode` (type: `string`):

`search` applies the filters below across the selected yearly archives. `adIds` looks up exact ads by their 64-character ad ID, creative asset hash or Snap creative viewer URL; the other filters still apply.

## `years` (type: `array`):

One or more yearly Snap political ads archives (2018 to the current year). Leave the list empty to read every published year. Each ZIP is one yearly snapshot; an ad in a file can have a start date outside that file’s year.

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

Ad IDs, creative asset hashes or Snap creative viewer URLs. Exact matching; use the search mode for text filters.

## `advertiserNameContains` (type: `string`):

Case-insensitive text that must appear in the organization name or the paying advertiser name.

## `candidateBallotContains` (type: `string`):

Case-insensitive text matched against the candidate or ballot information column.

## `keywordContains` (type: `string`):

Case-insensitive text searched across advertiser names, committee, candidate or ballot information, jurisdiction, landing URL, regions, interests and segments.

## `regionContains` (type: `string`):

Case-insensitive text matched against included or excluded regions, metros, electoral districts and postal codes.

## `dateField` (type: `string`):

Whether the date window applies to the ad start date, the ad end date, or any ad that overlaps the window. Ads without the selected date are excluded when a window is set.

## `dateFrom` (type: `string`):

Inclusive lower bound in `YYYY-MM-DD` format. Leave empty for no lower bound.

## `dateTo` (type: `string`):

Inclusive upper bound in `YYYY-MM-DD` format. Leave empty for no upper bound.

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

Keep ads by current delivery status, derived from the published start and end dates.

## `minSpend` (type: `number`):

Keep ads whose reported spend is at least this amount. Spend is in the ad's own currency, so compare within one currency.

## `maxSpend` (type: `number`):

Keep ads whose reported spend is at most this amount. Spend is in the ad's own currency.

## `minImpressions` (type: `integer`):

Keep ads with at least this many published impressions.

## `maxImpressions` (type: `integer`):

Keep ads with at most this many published impressions.

## `currencies` (type: `array`):

Keep ads billed in one of these currencies. Leave empty for all currencies.

## `countries` (type: `array`):

Keep ads targeted to one of these countries, as ISO two-letter codes. Leave empty for every country.

## `targetingTypes` (type: `array`):

Keep ads that use at least one of the selected targeting types. Leave empty for all ads.

## `creativeTypes` (type: `array`):

Keep video or image creatives. Leave empty for both.

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

Order of the returned rows before the result cap is applied.

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

Stop after this many matching ads. The cap is applied after sorting.

## Actor input object example

```json
{
  "mode": "search",
  "years": [
    "2026"
  ],
  "adIds": [],
  "dateField": "startDate",
  "status": "any",
  "currencies": [],
  "countries": [],
  "targetingTypes": [],
  "creativeTypes": [],
  "sortBy": "startDateNewest",
  "maxItems": 3
}
```

# Actor output Schema

## `ads` (type: `string`):

Dataset containing one cleaned record per Snap political or advocacy ad.

# 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 = {
    "mode": "search",
    "years": [
        "2026"
    ],
    "adIds": [],
    "dateField": "startDate",
    "status": "any",
    "currencies": [],
    "countries": [],
    "targetingTypes": [],
    "creativeTypes": [],
    "sortBy": "startDateNewest",
    "maxItems": 3
};

// Run the Actor and wait for it to finish
const run = await client.actor("xyrelith-data/snapchat-political-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 = {
    "mode": "search",
    "years": ["2026"],
    "adIds": [],
    "dateField": "startDate",
    "status": "any",
    "currencies": [],
    "countries": [],
    "targetingTypes": [],
    "creativeTypes": [],
    "sortBy": "startDateNewest",
    "maxItems": 3,
}

# Run the Actor and wait for it to finish
run = client.actor("xyrelith-data/snapchat-political-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 '{
  "mode": "search",
  "years": [
    "2026"
  ],
  "adIds": [],
  "dateField": "startDate",
  "status": "any",
  "currencies": [],
  "countries": [],
  "targetingTypes": [],
  "creativeTypes": [],
  "sortBy": "startDateNewest",
  "maxItems": 3
}' |
apify call xyrelith-data/snapchat-political-ads-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,xyrelith-data/snapchat-political-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/fSpOHMdX6rCdKI0x1/builds/oz1pKeSn62hKEaXcp/openapi.json
