# Reddit Trends Scraper (`noteworthy_juke/reddit-trends`) Actor

Scrape trending Reddit posts, discover growing subreddits, and track keyword mentions across any subreddit — all in one run. Built with cookie-warmed sessions and residential proxies to bypass Reddit's anti-bot protection. Outputs structured JSON for dashboards content research, and trend analysis

- **URL**: https://apify.com/noteworthy\_juke/reddit-trends.md
- **Developed by:** [Insane\_erik](https://apify.com/noteworthy_juke) (community)
- **Categories:** Social media, News
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.50 / actor start

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 Trends Scraper

**Extract trending posts, discover growing subreddits, and track keywords — all from one Actor.** Built for content creators, marketers, and data analysts who need structured Reddit data without battling anti-bot protections.

> ✅ Scrapes old.reddit.com with residential proxies\
> ✅ Cookie-warmed sessions — no blocks\
> ✅ 3 pipelines in parallel: Posts · Subreddits · Keywords

***

### What You Get

| Pipeline | What it does |
|---|---|
| **Trending Posts** | Scrapes hot/top/new posts from any subreddits with scores, comments, authors, flairs, and timestamps |
| **Subreddit Discovery** | Finds trending communities via r/trendingsubreddits |
| **Keyword Analysis** | Counts word-boundary-matched mentions across all scraped titles — no false positives |

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `subreddits` | string\[] | `["technology", "Futurology", "artificial"]` | Subreddits to scrape (without `r/`) |
| `keywords` | string\[] | `["AI", "AGI", "breakthrough"]` | Keywords to track (whole-word match) |
| `maxPosts` | number | `50` | Posts per subreddit (max 100) |
| `sortBy` | `hot` · `top` · `new` | `hot` | Sort order |
| `includeTrendingSubs` | boolean | `true` | Also fetch trending subreddits |
| `proxyGroup` | `RESIDENTIAL` · `none` | `RESIDENTIAL` | Proxy type (keep RESIDENTIAL for Reddit) |

### Output

Three result types pushed to the same dataset:

**1. Post**

```json
{
  "subreddit": "technology",
  "title": "OpenAI announces GPT-5",
  "url": "https://reddit.com/r/technology/...",
  "score": 4521,
  "comments_count": 328,
  "author": "techuser123",
  "flair": "AI",
  "timestamp": "2026-07-04T12:30:00+00:00",
  "sort_by": "hot"
}
```

**2. Trending Subreddit**

```json
{ "name": "LocalLLaMA", "description": "Subreddit for running LLMs locally" }
```

**3. Keyword Summary**

```json
{ "keyword": "AI", "mentions": 6, "top_posts": ["Meta contractors...", "AI backlash..."] }
```

### Who This Is For

- **YouTubers / Content Creators** — Find what's blowing up on Reddit *before* it hits mainstream. Fuel your next video script with real trending data.
- **Marketers & PR** — Track brand mentions, competitor launches, and sentiment shifts across niche communities.
- **Startup Founders** — Discover pain points, feature requests, and underserved audiences by monitoring relevant subreddits.
- **Data Analysts** — Export structured JSON for dashboards, sentiment analysis, or trend forecasting.
- **Crypto/NFT Traders** — Gauge community sentiment and spot emerging narratives early.

### Real Output (Live Run, July 2026)

```
r/technology (hot): 10 posts
  → "AI backlash...data center secretly taking our power and water" — 28,843 score
  → "Meta Paid Contractors to Pretend to Be Teenagers" — 2,377 score

r/Futurology (hot): 10 posts
  → "Germany, France, Spain banning Palantir" — 4,826 score
  → "60% of consumers abandon AI tools after a single mistake" — 782 score

Keyword "AI": 6 mentions across 20 posts
Keyword "AGI": 0 mentions
```

### Technical Notes

- **old.reddit.com** — No JavaScript rendering overhead. Fast, lightweight HTML scraping.
- **Session cookies** — Warms up a browser session before scraping to avoid Reddit's anti-bot detection.
- **Apify Residential Proxy** — Requests appear from real US residential IPs. Reddit can't fingerprint them as data-center traffic.
- **No login required** — Only scrapes publicly visible data.
- **Word-boundary matching** — Keyword "AI" catches "AI backlash" but not "MAIL" or "RAIN".
- **Parallel execution** — All subreddits scraped simultaneously.

### Reliability

This Actor has been tested against Reddit's 2026 anti-bot measures and uses a combination of cookie-warming, residential proxies, and conservative rate limiting to deliver consistent results. If Reddit updates its defenses, the Actor will be updated — check the changelog.

### Pricing

Pay per event: **$0.50 per run** + **$0.10 per 1,000 results**. Platform usage costs are passed to the user. You only pay for what you use.

# Actor input Schema

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

Subreddits to scrape (without r/ prefix)

## `keywords` (type: `array`):

Keywords to track across all scraped posts

## `maxPosts` (type: `integer`):

Maximum number of posts per subreddit (max 100)

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

How to sort posts

## `includeTrendingSubs` (type: `boolean`):

Also scrape fast-growing communities

## `proxyGroup` (type: `string`):

Apify Proxy group (RESIDENTIAL recommended for Reddit)

## Actor input object example

```json
{
  "subreddits": [
    "technology",
    "Futurology",
    "artificial"
  ],
  "keywords": [
    "AI",
    "AGI",
    "breakthrough"
  ],
  "maxPosts": 50,
  "sortBy": "hot",
  "includeTrendingSubs": true,
  "proxyGroup": "RESIDENTIAL"
}
```

# 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": [
        "technology",
        "Futurology",
        "artificial"
    ],
    "keywords": [
        "AI",
        "AGI",
        "breakthrough"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("noteworthy_juke/reddit-trends").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": [
        "technology",
        "Futurology",
        "artificial",
    ],
    "keywords": [
        "AI",
        "AGI",
        "breakthrough",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("noteworthy_juke/reddit-trends").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": [
    "technology",
    "Futurology",
    "artificial"
  ],
  "keywords": [
    "AI",
    "AGI",
    "breakthrough"
  ]
}' |
apify call noteworthy_juke/reddit-trends --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,noteworthy_juke/reddit-trends"
        }
    }
}
```

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/tNc2HAwHgEba5cY1x/builds/FdJSxN60jWdw7kSrD/openapi.json
