# Reddit Promoted Posts Scraper (`w3crawler/reddit-ad-library-scraper`) Actor

Collects promoted (sponsored) posts from Reddit feeds — advertiser, title, ad text, destination, CTA, media, and campaign metadata.

- **URL**: https://apify.com/w3crawler/reddit-ad-library-scraper.md
- **Developed by:** [w3crawler](https://apify.com/w3crawler) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 5.6% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 1,000 promoted posts

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## Reddit Promoted Posts Scraper

Collect **promoted posts that Reddit renders in public feeds** and save the advertiser, headline, visible ad text, destination, call to action, media, permalink, campaign identifier, and feed provenance. This Actor does not use a Reddit advertiser-library endpoint or ads API; it reads only the `shreddit-ad-post` cards served to anonymous visitors on the home, popular, and requested subreddit feeds. It does not access private advertising accounts.

### Get started

1. Open the [Actor Store page](https://apify.com/w3crawler/reddit-ad-library-scraper) and select **Try for free**, or open the **Input** tab.
2. Leave `subreddits` empty to scan only `reddit.com/?feed=home` and `reddit.com/r/popular/`, or add up to 20 public subreddit names to widen the feed set.
3. Optionally set `query` to keep only ads whose advertiser, title, or visible text contains a keyword, and set `maxItems` (1–500) to cap saved ads.
4. Start the Actor, open the dataset, and export the rows as JSON, CSV, or Excel. Open **Run summary** (`OUTPUT`) to see which feeds were visited and how many ads were seen, matched, and saved.

### Input

No field is required. `subreddits`, `query`, and `maxItems` have defaults; proxy settings are only used when supplied. Unsupported field names and out-of-range values are rejected before the browser starts.

| Field | Type | Required? | Default | Meaning |
| --- | --- | --- | --- | --- |
| `subreddits` | string array | Optional | `[]` | Extra public subreddit names, with or without the `r/` prefix, up to 20. The root home feed and `r/popular` are always visited first, so listing `popular` does not add a second visit. |
| `query` | string | Optional | `""` | Case-insensitive filter over advertiser name, ad title, and visible ad text; 200 characters or fewer. An empty value keeps every observed ad. |
| `maxItems` | integer | Optional | `50` | Maximum promoted posts saved across all feeds, 1–500. |
| `proxyConfiguration` | object | Optional | Not supplied | Standard Apify Proxy or custom proxy settings. The Console prefills `{"useApifyProxy": true}`; direct access is used when the field is omitted. |

Input used for the saved run:

```json
{
  "subreddits": ["popular", "pics", "gaming", "movies"],
  "query": "",
  "maxItems": 5,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"]
  }
}
```

The Actor reads public Reddit feeds in one Chromium browser worker. A run visits `/?feed=home`, `/r/popular/`, and each valid requested subreddit, scrolls each feed up to six times, stops a feed after two rounds without new ads, and deduplicates ads by post ID across feeds.

### Output

The dataset contains one row per saved promoted post. Optional values that Reddit does not expose are omitted rather than guessed; blocked, empty, or failed feeds are recorded in `OUTPUT` and logs and never written as dataset rows.

| Field | Type | Availability | Meaning |
| --- | --- | --- | --- |
| `recordType` | string enum | Always | Dataset row kind; always `promoted_post`. |
| `recordId` | string | Always | Stable row identity derived from the public Reddit post ID. |
| `position` | integer | Always | One-based save position across the bounded multi-feed run. |
| `advertiserName` | string | Always | Advertiser account name shown with the promoted post. |
| `advertiserProfileUrl` | string | Always | Public advertiser profile URL. |
| `advertiserIconUrl` | string | Always | Advertiser avatar or icon. |
| `adTitle` | string | Always | Promoted post title or creative headline as exposed by the ad card. |
| `adText` | string | Always | Visible body text with the `Advertisement:` prefix Reddit displays. |
| `outboundLinkUrl` | string | Always | Public outbound link exposed by the ad card; may be a Reddit redirect or a relative user-post path. |
| `adType` | string | Always | Ad type exposed by the Reddit ad element, for example `display`. |
| `mediaUrl` | string | Always | Creative image or media URL. |
| `createdAt` | string | Always | Public post creation timestamp as exposed by Reddit. |
| `permalink` | string | Always | Public Reddit permalink for the promoted post. |
| `postId` | string | Always | Reddit post identifier, for example `t3_1x9s3qt`. |
| `campaignId` | string | Always | Campaign identifier embedded in the ad card. |
| `sourceFeedUrl` | string | Always | Public feed URL that rendered the ad. |
| `searchQuery` | string | Always | Keyword filter used for the run, or `*` when no filter was supplied. |
| `scrapedAt` | string | Always | UTC time the row was saved. |
| `destinationDomain` | string | When published | Destination hostname derived from the outbound link; absent when only a relative link is exposed. |
| `ctaText` | string | When published | Call-to-action label such as `View More` or `Learn More`. |
| `subreddit` | string | When published | Subreddit named by the ad element. Declared by the schema, but absent in all three saved rows. |
| `countryCode` | string | When published | Country code embedded by the ad element. Declared by the schema, but absent in all three saved rows. |

#### Full JSON output

This is a real saved row from the 2026-10-25 run. The long `outboundLinkUrl` redirect is shortened with an ellipsis; all other values are complete. The saved run also produced rows for posts `t3_1wuz082` and `t3_1xauwfx`.

```json
{
  "position": 1,
  "advertiserName": "AdobeDocumentCloud",
  "advertiserProfileUrl": "https://www.reddit.com/user/AdobeDocumentCloud/",
  "advertiserIconUrl": "https://styles.redditmedia.com/t5_bm7xq9/styles/profileIcon_wdx1nb9ghg3d1.png?width=48&height=48&frame=1&auto=webp&crop=48%3A48%2Csmart&s=bf4d8e69680399f9ef05cd04a7a252abbfd5f7d3",
  "adTitle": "Organize PDFs, anywhere. Get it now.",
  "adText": "Advertisement: Organize PDFs, anywhere. Get it now.",
  "destinationDomain": "adobe.com",
  "outboundLinkUrl": "https://l.reddit.com/?p=ARL7CgokYmQ4OWQyZGYtOTc4Zi00OWVhLTg4MWYtOTZhZDY1ZDU3NmVkGqUKU0lTAQAPX3X8HRiF2oalGMwNney-psDtjQd-n-5UUjL4aMlNSQbv-sANcg-hwCmWQ81t4Heok8GDrOHuFjAQyvNKZEFuU2kcEdg1YAEfSyoKeDIJ2v6pNwrg36Xu1zeaJaaIagFBZLwmKZeDNHanhbZht7Yjj3maIpH6wa5XECuRPG-_5OltxntkwzWDtbiyIW_JFqPLEon0H15Dzp7Ybv5TBFaRGntCDgk5krXpU7XB8Z3bVNvk9QOBFkf0YpaWRXMg-9gZbWXlFalQ9nbIpR_wYQkeTjcgUO09LLOuR4zMV23-teCCGZaYGNj4…",
  "ctaText": "View More",
  "adType": "display",
  "mediaUrl": "https://cf.preview.redd.it/045ihomv5ewh1.jpeg?width=640&crop=smart&auto=webp&s=c916b88f7a53d15a4b45efd74ff901a5750a5870",
  "createdAt": "2026-10-19T09:18:10.791000+0000",
  "permalink": "https://www.reddit.com/user/AdobeDocumentCloud/comments/1x9s3qt/organize_pdfs_anywhere_get_it_now/",
  "postId": "t3_1x9s3qt",
  "campaignId": "2602444741101849972",
  "recordType": "promoted_post",
  "recordId": "promoted-post:t3_1x9s3qt",
  "sourceFeedUrl": "https://www.reddit.com/r/popular/",
  "searchQuery": "*",
  "scrapedAt": "2026-10-25T20:46:23.533Z"
}
```

### Run summary

**Run summary** is stored separately from the dataset in the run's key-value store under `OUTPUT`. It reports feed coverage and promoted-post counts; per-feed diagnostic details are written only to the actor log.

| Field | Meaning |
| --- | --- |
| `actorName` | Actor name. |
| `actorSlug` | Actor slug. |
| `actorStoreUrl` | Public Actor Store URL. |
| `generatedBy` | Build generator label recorded by the Actor. |
| `fingerprintApplied` | Whether a browser fingerprint was applied; currently always `false`. |
| `recordType` | Summary record type; always `run-summary`. |
| `status` | Actor outcome: `SUCCEEDED` or `FAILED`. |
| `runStatus` | Canonical run status; matches `status`. |
| `dataStatus` | Completeness of saved rows: `COMPLETE`, `PARTIAL`, `NO_RESULTS`, or `FAILED`. |
| `source` | Source base URL recorded for the run. |
| `sourceWebsite` | Source website used for the run. |
| `subreddits` | Requested subreddit names exactly as normalized from the input; the implicit root and popular feeds are not added here. |
| `query` | Keyword filter used for the run. |
| `maxItems` | Configured cap on saved promoted posts. |
| `proxyConfigured` | Whether a proxy configuration was created for the run. |
| `feedsVisited` | Number of distinct feed URLs handled, including the root and popular feeds. |
| `adsSeen` | Unique useful promoted-post cards observed across feeds before keyword filtering. |
| `adsMatched` | Observed ads that passed the keyword filter (all observed ads when no filter is supplied). |
| `adsSaved` | Promoted posts written to the dataset; equals `itemCount`. |
| `outputWriteFailureCount` | Failed summary-write attempts, normally `0`. |
| `diagnosticCount` | Number of diagnostic dataset rows; always `0`, because diagnostics stay in logs. |
| `itemCount` | Dataset rows saved. |
| `feedDataAvailable` | Whether at least one feed reported rendered ad cards or observed ads. |
| `found` | Whether at least one promoted post was saved. |
| `dataAvailable` | Whether source-backed promoted-post data was saved. |
| `scrapeStartedAt` | Time the crawl started, in ISO UTC. |
| `scrapedAt` | Time the summary was written, in ISO UTC. |

| Status | Data status | Meaning |
| --- | --- | --- |
| `SUCCEEDED` | `COMPLETE` | At least one ad was saved and no visited feed produced a request failure. |
| `SUCCEEDED` | `PARTIAL` | At least one ad was saved, but a feed request failed or was blocked. Saved rows remain available. |
| `SUCCEEDED` | `NO_RESULTS` | Feeds completed cleanly but no promoted post matched the run. |
| `FAILED` | `FAILED` | No ad was saved and at least one feed request failed. |

Example `OUTPUT` from the saved run:

```json
{
  "actorName": "Reddit Promoted Posts Scraper",
  "actorSlug": "reddit-ad-library-scraper",
  "actorStoreUrl": "https://apify.com/w3crawler/reddit-ad-library-scraper",
  "generatedBy": "OpenAI Codex with GPT-5.6",
  "fingerprintApplied": false,
  "recordType": "run-summary",
  "status": "SUCCEEDED",
  "runStatus": "SUCCEEDED",
  "dataStatus": "PARTIAL",
  "source": "https://www.reddit.com",
  "sourceWebsite": "https://www.reddit.com/",
  "subreddits": ["popular", "pics", "gaming", "movies"],
  "query": "",
  "maxItems": 5,
  "proxyConfigured": true,
  "feedsVisited": 5,
  "adsSeen": 3,
  "adsMatched": 3,
  "adsSaved": 3,
  "outputWriteFailureCount": 0,
  "diagnosticCount": 0,
  "itemCount": 3,
  "feedDataAvailable": true,
  "found": true,
  "dataAvailable": true,
  "scrapeStartedAt": "2026-10-25T20:43:59.554Z",
  "scrapedAt": "2026-10-25T20:47:17.341Z"
}
```

### Coverage and limitations

This Actor is a **live-feed observer, not Reddit's Ad Library**. It has no advertiser archive to query, so an ad is collectible only if Reddit serves it to an anonymous browser session during the run. Ad rotation, geo-targeting, budget, and feed ranking determine what appears; the same advertiser can reappear with a different post, and ads not rendered in the home, popular, or requested subreddit feeds cannot be recovered.

Only `shreddit-ad-post` cards are read. The Actor scrolls each feed at most six times with two stale rounds as the stop condition, so a very long feed may not be exhausted. `query` filters ads after they are observed; it does not search Reddit for ads. Fields such as `subreddit` and `countryCode` are declared by the dataset schema but were absent in the saved rows, and impression or spend data is never available. Anti-bot challenges, deleted posts, and empty feeds are reported in the run summary and logs, not as fabricated rows. `diagnosticCount` is always zero because diagnostics are kept out of the dataset.

### Usage and support

Cost is driven by Chromium compute time and any proxy traffic. Start with `maxItems` around 5–10 and no extra subreddits, verify that promoted cards appear for your proxy region, then widen the feed set. See the Actor's Pricing tab for current account rates.

Use the [Actor Issues page](https://apify.com/w3crawler/reddit-ad-library-scraper/issues) to report a problem. Include the run ID, the input used, and the `OUTPUT` summary; do not include tokens, cookies, or private data. This Actor is not affiliated with Reddit. Use it only for public data and in accordance with Reddit's terms, robots guidance, and applicable law. Public ads can contain personal information; use the output only for lawful purposes.

# Changelog

This Actor's version history is a separate document: https://apify.com/w3crawler/reddit-ad-library-scraper/changelog.md

# Actor input Schema

## `subreddits` (type: `array`):

Subreddit names to also scrape (the public root and popular feeds are always included first).

## `query` (type: `string`):

Optional filter: only keep ads where advertiser name, title, or text contains this keyword.

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

Max promoted posts to collect.

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

Proxy settings for the crawler. Use Apify Proxy or custom proxies.

## Actor input object example

```json
{
  "subreddits": [],
  "query": "",
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `dataset` (type: `string`):

Source-backed result records from the default dataset.

## `runSummary` (type: `string`):

Feed inputs, promoted-post counts, proxy state, per-feed diagnostics, and completion status.

# 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 = {
    "subreddits": [],
    "query": "",
    "maxItems": 50,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("w3crawler/reddit-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 = {
    "subreddits": [],
    "query": "",
    "maxItems": 50,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("w3crawler/reddit-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 '{
  "subreddits": [],
  "query": "",
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call w3crawler/reddit-ad-library-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,w3crawler/reddit-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/vUAMhSFgKaImwV2H3/builds/G59xR3SEeka0Lepus/openapi.json
