# Reddit Subreddit Tracker (`gochujang/reddit-subreddit-tracker`) Actor

Track Reddit posts from subreddits or search by keyword. Filter by sort (hot/new/top/rising), time period, minimum score, and flair. Returns title, score, upvote ratio, comment count, author, awards, URL, and post content. No API key required.

- **URL**: https://apify.com/gochujang/reddit-subreddit-tracker.md
- **Developed by:** [Hojun Lee](https://apify.com/gochujang) (community)
- **Categories:** News
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 item trackeds

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

## Reddit Subreddit Tracker

**Reddit Subreddit Tracker** collects **posts from any subreddit or global Reddit keyword search** — returning score, upvote ratio, comment count, author, flair, post type, and optionally full body text. Filter by sort order (hot/new/top/rising), time period, and minimum score. No API key or Reddit account required. $0.001/post.

Reddit is one of the richest sources of genuine community discussion — niche subreddits contain highly informed conversations that mainstream media misses. This actor makes those communities systematically queryable for research, monitoring, and content pipelines.

***

### Why use Reddit Subreddit Tracker?

1. **Trending post monitoring** — Pull `sort: "hot"` from niche subreddits daily to catch what the community is engaged with before it breaks into mainstream coverage. Hot posts on r/wallstreetbets or r/CryptoCurrency often precede price action.
2. **Brand and keyword surveillance** — Search for your company name, product, or competitor across all of Reddit. `minScore: 10` filters noise; high-score posts with your brand need attention.
3. **Newsletter and content curation** — Pull `sort: "top"` + `timeFilter: "week"` from targeted subreddits to auto-curate the best content for your audience.
4. **Community research** — Compare post volume and score distributions across related subreddits (e.g. r/learnpython vs r/Python vs r/programming) to understand community health and engagement patterns.
5. **Data pipeline input** — Feed Reddit posts into downstream analysis — sentiment scoring, entity extraction, topic modeling — as a structured starting point.

***

### How to use

1. Open the actor on Apify Store and click **Try for free**.
2. Set `subreddits` to the communities you want to monitor (e.g. `["wallstreetbets", "CryptoCurrency"]`) or set `keyword` for a global search.
3. Set `sort` and `timeFilter` (e.g. `sort: "top"`, `timeFilter: "week"` for weekly best posts).
4. Set `minScore` to filter out low-quality posts.
5. Click **Start**. Returns structured post records from Reddit.

***

### Input

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `subreddits` | string\[] | `[]` | Subreddit names without `r/` prefix (e.g. `["python", "programming"]`) |
| `keyword` | string | `""` | Search term for global Reddit search |
| `sort` | string | `"hot"` | Sort order: `hot`, `new`, `top`, `rising` |
| `timeFilter` | string | `"week"` | Time window for `top` sort: `hour`, `day`, `week`, `month`, `year`, `all` |
| `minScore` | integer | `0` | Skip posts below this score |
| `maxResults` | integer | `100` | Maximum posts to return (1–500) |
| `includeBody` | boolean | `false` | Include full self-post body text |

At least one of `subreddits` or `keyword` must be provided.

***

### Output

```json
{
  "post_id": "abc123",
  "subreddit": "CryptoCurrency",
  "title": "Bitcoin ETF records $1B inflows — where do we stand?",
  "url": "https://i.redd.it/example.jpg",
  "permalink": "https://www.reddit.com/r/CryptoCurrency/comments/abc123/...",
  "score": 4820,
  "upvote_ratio": 0.97,
  "comment_count": 623,
  "author": "u/example_user",
  "flair": "News",
  "awards_count": 12,
  "is_video": false,
  "post_type": "link",
  "created_at": "2026-08-30T14:22:00+00:00",
  "fetched_at": "2026-09-02T08:00:00+00:00"
}
```

#### Post types

| Value | Description |
|-------|-------------|
| `text` | Self post with body text |
| `link` | External link post |
| `image` | Image or gallery post |
| `video` | Video post (Reddit or external) |

***

### Cost estimation

**Pay-Per-Event: $0.005 per actor start + $0.001 per post returned.**

| Use case | Posts | Estimated cost |
|----------|-------|----------------|
| 100 hot posts from 2 subreddits | 100 | ~$0.105/run |
| Daily trending check (50 posts) | 50 | ~$0.055/day |
| Weekly top-500 content curation | 500 | ~$0.505/run |
| 10 keyword search results | 10 | ~$0.015/run |

***

### FAQ

**What's the difference between `subreddits` and `keyword`?**
`subreddits` fetches posts directly from specific communities (r/python, r/wallstreetbets). `keyword` runs a global Reddit search and returns posts from any subreddit that match the search term. You can use both in the same run — results are deduplicated.

**How does `rising` sort work?**
Reddit's rising sort shows posts gaining velocity right now. It returns a small number of posts (typically 25–50) due to Reddit API limitations. Use it for real-time trend detection rather than bulk collection.

**Does it include stickied moderator posts?**
Yes — stickied/pinned posts may appear at the top regardless of score. Filter these out in your code by checking if `flair: "Mod Post"` or similar.

**Can I get deleted posts or comments?**
No — deleted posts/comments show as `[deleted]` or `[removed]`. The actor returns whatever Reddit's public API serves.

***

### Related actors

- [Reddit Thread Analyzer](https://apify.com/gochujang/reddit-thread-analyzer) — Deeper analysis per thread: top 50 comments, sentiment, engagement score, keyword frequency
- [Crypto Social Sentiment Aggregator](https://apify.com/gochujang/social-sentiment-aggregator) — Structured crypto sentiment from Reddit + Fear & Greed + LunarCrush
- [Tech News Aggregator](https://apify.com/gochujang/tech-news-aggregator) — Tech news from HN/TechCrunch alongside Reddit discussion

### Feedback

If this actor is useful, a quick review helps other researchers find it: [Leave a review on Apify Store](https://apify.com/gochujang/reddit-subreddit-tracker#reviews)

# Actor input Schema

## `clientId` (type: `string`):

Your Reddit app client ID. Create one at reddit.com/prefs/apps (select 'script' type).

## `clientSecret` (type: `string`):

Your Reddit app client secret.

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

Subreddit names (without r/) to fetch posts from.

## `keyword` (type: `string`):

Search Reddit for posts matching this keyword. At least one of subreddits or keyword must be provided.

## `sort` (type: `string`):

Sort order for posts: hot, new, top, or rising.

## `timeFilter` (type: `string`):

Time window for 'top' sort: hour, day, week, month, year, or all.

## `minScore` (type: `integer`):

Only return posts with score at or above this value.

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

Maximum number of posts to return across all sources (1–500).

## `includeBody` (type: `boolean`):

Include full post text for text/self posts.

## Actor input object example

```json
{
  "sort": "hot",
  "timeFilter": "week",
  "minScore": 0,
  "maxResults": 100,
  "includeBody": false
}
```

# Actor output Schema

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

No description

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("gochujang/reddit-subreddit-tracker").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("gochujang/reddit-subreddit-tracker").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 '{}' |
apify call gochujang/reddit-subreddit-tracker --silent --output-dataset

```

## MCP server setup

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

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/bjKL3pyyeofJaumao/builds/vW3sw42fQnzKgo6Uq/openapi.json
