Reddit Promoted Posts Scraper avatar

Reddit Promoted Posts Scraper

Pricing

from $4.99 / 1,000 results

Go to Apify Store
Reddit Promoted Posts Scraper

Reddit Promoted Posts Scraper

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

Pricing

from $4.99 / 1,000 results

Rating

0.0

(0)

Developer

Coding Frontned

Coding Frontned

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

0

Monthly active users

12 days ago

Last modified

Share

Apify actor to scrape promoted ad posts (sponsored content) from the Reddit feed. Uses Reddit's <shreddit-ad-post> custom HTML elements to extract rich ad data including advertiser info, campaign IDs, country codes, and media URLs.

Note: Reddit does not expose a public ad library like Google or Meta. This actor scrapes promoted posts directly from the live Reddit feed (homepage and subreddits). Results depend on which ads Reddit shows to the browser session at scrape time.

Features

  • Extracts promoted posts from the Reddit feed using <shreddit-ad-post> elements
  • Captures advertiser name, ad title, body text, subreddit, and CTA
  • Collects media URLs (images/videos), outbound link URLs, and destination domain
  • Returns campaign IDs, post IDs, and country codes from ad attributes
  • Optional keyword filter to match ads by advertiser or ad text
  • Automatic scrolling to load more promoted posts
  • Proxy support for reliable scraping

Input

FieldTypeDefaultDescription
querystring""Optional keyword to filter ads (matches advertiser name or ad text). Leave empty for all promoted posts.
maxItemsinteger50Maximum number of promoted posts to scrape (1–500)
proxyConfigurationobjectApify ProxyProxy settings for the crawler

Example Input

{
"query": "technology",
"maxItems": 10
}

Output

Each scraped promoted post contains:

FieldTypeDescription
positionintegerResult position index
advertiserNamestringReddit username of the advertiser
advertiserProfileUrlstringURL to the advertiser's Reddit profile
adTitlestringHeadline / title of the promoted post
adTextstringBody copy of the ad
destinationDomainstringDomain of the ad landing page
outboundLinkUrlstringFull click-through URL (may be a tracking URL)
ctaTextstringCall-to-action button text (e.g. "Learn More")
adTypestringAd type attribute (e.g. "display")
mediaUrlstringURL of the ad image or video creative
subredditstringSubreddit where the ad was shown
createdAtstringTimestamp from the ad element
permalinkstringReddit permalink to the promoted post
postIdstringReddit post ID (e.g. "t3_abc123")
campaignIdstringAdvertiser campaign ID
countryCodestringCountry code from the ad attributes
scrapedAtstringISO timestamp of when the data was scraped

Example Output

{
"position": 1,
"advertiserName": "example-brand",
"advertiserProfileUrl": "https://www.reddit.com/user/example-brand/",
"adTitle": "Your creation. Your timestamp. Your proof.",
"adText": "Secure your creative work with blockchain timestamps.",
"destinationDomain": "example.com",
"outboundLinkUrl": "https://alb.reddit.com/cr?creative_id=...",
"ctaText": "Learn More",
"adType": "display",
"mediaUrl": "https://preview.redd.it/example-ad-image.png",
"subreddit": "technology",
"createdAt": "2025-01-15T10:00:00.000Z",
"permalink": "https://www.reddit.com/r/technology/comments/abc123/",
"postId": "t3_abc123",
"campaignId": "2491339872271957999",
"countryCode": "US",
"scrapedAt": "2025-01-15T10:30:00.000Z"
}

Usage

Apify Console

  1. Go to the actor's page on Apify Console
  2. Set the input parameters
  3. Click "Start"

API

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_TOKEN' });
const run = await client.actor('your-username/reddit-ad-library-scraper').call({
query: 'technology',
maxItems: 50,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);

Local Development

npm install
npm start

Project Structure

src/
├── main.js # Actor entry point — reads input, configures crawler
├── constants.js # Shared constants (URLs, selectors, limits)
├── routes.js # Crawler route handlers (SEARCH)
└── utils/
├── extraction.js # Ad data extraction from page DOM
└── scrolling.js # Infinite scroll / load-more helpers