# Reddit Topic Digest (`harshmaur/reddit-topic-digest`) Actor

Type a topic or pick communities. Get the most upvoted Reddit threads of the last day or week, each with a short AI summary of the post and its top replies. A weekly digest for people and AI agents. Pay per thread.

- **URL**: https://apify.com/harshmaur/reddit-topic-digest.md
- **Developed by:** [Harsh Maur](https://apify.com/harshmaur) (community)
- **Categories:** AI, Social media, Agents
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$20.00 / 1,000 results

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 Topic Digest — The Top Reddit Threads of the Week on Any Topic, Summarized by AI

![Reddit Topic Digest banner: the week's top threads on any topic, each with a short AI summary](https://raw.githubusercontent.com/harshmaur/reddit-readme-assets/main/banners/topic-digest-v2.png)

[![Try on Apify](https://img.shields.io/badge/Apify-Try%20Now-00C7B7?style=for-the-badge\&logo=apify)](https://apify.com/harshmaur/reddit-topic-digest) [![Input Schema](https://img.shields.io/badge/Input-Schema-blue?style=for-the-badge)](https://apify.com/harshmaur/reddit-topic-digest/input-schema) [![API Docs](https://img.shields.io/badge/API-Docs-orange?style=for-the-badge)](https://apify.com/harshmaur/reddit-topic-digest/api)

Following a topic on Reddit takes hours: many communities, hundreds of threads, and long reply chains. Reddit Topic Digest does the reading for you. Type a topic or pick communities, and get the most upvoted threads of the day or the week. Each thread comes with a short summary of what the post says and what the replies think.

Run it every Monday and read one page instead of scrolling Reddit all week.

### What is Reddit Topic Digest?

It is a Reddit summarizer for topics and communities. It finds the threads that people upvoted most in your time window, reads each post and its top replies, and writes 2 or 3 sentences about it.

Use it to:

- **Follow an industry:** "AI coding tools", "electric cars", "home espresso".
- **Watch your own communities:** a weekly recap of r/startups, r/SaaS or any other community.
- **Feed a newsletter or an AI agent:** the Markdown digest is ready to paste or to send on.
- **Spot trends early:** see which threads take off before the news covers them.

### How to get a Reddit digest for a topic

![How Reddit Topic Digest works: a topic or communities in, top posts of the time window, AI keeps the threads about the topic and summarizes each one](https://raw.githubusercontent.com/harshmaur/reddit-readme-assets/main/sections/topic-digest-flow-v1.png)

1. Type a **Topic** in plain words, for example `AI coding tools`.
2. Optional: add **Communities**, for example `r/programming`. Leave the list empty and the AI picks the communities where the topic is discussed most.
3. Choose **Last 7 days** for a weekly digest or **Last 24 hours** for a daily one.
4. Set **Most threads**. The default is 50.
5. Click **Start**, then add a schedule in Apify to get a fresh digest each day or week.

You can also leave the topic empty and give only communities. You then get the top threads of those communities, whatever they talk about.

```text
topic and/or         AI picks communities    top posts of the     AI keeps threads   reads top replies,    digest, most
communities    ─►    (when you name none) ─► time window, by  ─►  about the topic ─► writes 2-3 sentence ─► upvoted first
                                             upvotes                                 summary per thread
```

#### Input fields

| Field | What it does | Default |
| --- | --- | --- |
| `topic` | One line about the subject. Threads that are not about it are left out. | none |
| `communities` | Up to 10 community names or links. Empty: the AI picks them from the topic. | none |
| `lookback` | `24h` for the last day, `7d` for the last week. | `7d` |
| `maxThreads` | The most threads in the digest, from 1 to 200. | `50` |

Fill in the topic, the communities, or both.

### Input example

```json
{
  "topic": "AI coding tools",
  "communities": [],
  "lookback": "7d",
  "maxThreads": 30
}
```

### Output example

![A digest thread next to its dataset row, with rank, summary, score, comments and topReplies](https://raw.githubusercontent.com/harshmaur/reddit-readme-assets/main/sections/topic-digest-output-v1.png)

The dataset has one row for each thread, most upvoted first:

```json
{
  "rank": 4,
  "summary": "The developer says Claude Code helped build a 17 MB self-hosted media app and shares its GitHub stars and Docker pulls after 8 days. Replies praise the speed of the project and ask how it compares with the tools it replaces.",
  "title": "Claude Code is insane. My entire self-hosted Netflix is 17 MB.",
  "subreddit": "ClaudeAI",
  "url": "https://www.reddit.com/r/ClaudeAI/comments/1xzcsdg/claude_code_is_insane_my_entire_selfhosted/",
  "score": 4135,
  "comments": 642,
  "createdAt": "2026-11-18T10:21:00.000Z",
  "text": "I wanted one small app for finding and downloading what I watch...",
  "topReplies": [
    {
      "text": "8 days from idea to Docker image is wild. How much of it did you review by hand?",
      "score": 512,
      "url": "https://www.reddit.com/r/ClaudeAI/comments/1xzcsdg/claude_code_is_insane_my_entire_selfhosted/ny4k2a1/",
      "createdAt": "2026-11-18T11:05:00.000Z"
    }
  ]
}
```

`topReplies` holds up to 5 of the most upvoted replies, so you can read what the community said without opening the thread.

Each run also saves three free records, linked from the Output tab:

- **REPORT:** the digest as a web page, one card per thread with its summary, community, upvotes and date.
- **REPORT.md:** the same digest as Markdown, for Slack, Notion, a newsletter draft or an AI agent.
- **SUMMARY:** the counts of the digest as JSON: posts read, threads and top communities.

### How are the threads picked?

The Actor reads the top posts of the time window in each community, and searches Reddit for the topic. Threads are then sorted by upvotes. When you give a topic, the AI reads each title and leaves out threads that are not about it, so a general community such as r/programming gives only the threads on your subject.

For each thread in the digest, the AI reads the post and up to 15 of its top replies. The summary says what the post is about and where the replies agree or disagree. The AI does not add facts that the thread does not contain.

### How much does Reddit Topic Digest cost?

You pay for each thread in the digest, with its summary. Posts that are left out cost nothing, and the web page, the Markdown digest and the summary are free. The [Pricing tab](https://apify.com/harshmaur/reddit-topic-digest/pricing) shows the price per thread.

**Most threads** sets the size of the digest, so you know the most a run can cost before you start. You can also set **Maximum cost per run**: the digest then stops at the threads the budget pays for, most upvoted first.

### Send the digest to Slack, email or a newsletter tool

Connect the schedule to the app your team reads. Each thread arrives as a row in Slack, Google Sheets, Zapier, Make or n8n. For a newsletter or one email per run, paste the `REPORT.md` record from the run's storage: it is the full digest in Markdown.

### FAQ

#### What is a good topic?

A short subject in plain words: "AI coding tools" works better than a long sentence or a list of keywords. For a narrow subject, also name one or two communities where it is discussed.

#### Why are there fewer threads than I asked for?

The digest has only the threads that are about your topic. A quiet topic in a 24-hour window can have only a few. Use the 7-day lookback, a broader topic or more communities to get more.

#### Are the summaries accurate?

Each summary is written from the post and its top replies only. Read the thread before you quote it or act on it, because the AI can miss sarcasm or details deep in the replies.

#### How long does a run take?

Most runs end within 5 minutes. A 30-thread weekly digest took about 1 minute in our test.

#### Can I call it from my code or an AI agent?

Yes. Start a run with the Apify API, then read the dataset or the `REPORT.md` record. The API tab has ready code for Python, JavaScript and cURL.

Use the `latest` build and leave the build number empty. Old builds are removed after Reddit changes, and a call that pins one fails at start.

#### Do I need a Reddit account?

No. The Actor reads public Reddit threads only. It never signs in and never posts.

### More Reddit tools

| Actor | Use it for |
| --- | --- |
| [Reddit Brand & Sentiment Monitor](https://apify.com/harshmaur/reddit-brand-sentiment-monitor) | Every mention of your brand and competitors, tagged by sentiment, with share of voice. |
| [Reddit Pain Point Finder](https://apify.com/harshmaur/reddit-pain-point-finder) | The problems and wishes of a market, grouped into themes with real quotes. |
| [Reddit Subreddit Scraper](https://apify.com/harshmaur/reddit-subreddit-scraper) | Every post of the communities you choose, as raw data. |
| [Reddit Scraper Pro](https://apify.com/harshmaur/reddit-scraper-pro) | Your own searches with full control over terms, communities and filters. |

# Actor input Schema

## `topic` (type: `string`):

One line in plain words, for example "AI coding tools". Fill this, the communities, or both. With a topic, threads that are not about it are left out.

## `communities` (type: `array`):

Up to 10 community names or links, for example "r/programming". Leave empty and the AI picks the communities from the topic.

## `lookback` (type: `string`):

Use 24 hours with a daily schedule and 7 days with a weekly one.

## `maxThreads` (type: `integer`):

The digest has at most this many threads, most upvoted first. Each thread with its summary is one paid result.

## Actor input object example

```json
{
  "topic": "AI coding tools",
  "communities": [
    "r/programming",
    "r/ChatGPTCoding"
  ],
  "lookback": "7d",
  "maxThreads": 50
}
```

# Actor output Schema

## `report` (type: `string`):

The top threads with their summaries, as a web page.

## `reportMarkdown` (type: `string`):

The same digest as Markdown, for AI agents, Slack, notes apps and email.

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

Each thread with its rank, summary, community, upvotes and link.

## `summary` (type: `string`):

The counts of the digest as JSON, for automations.

# 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 = {
    "topic": "AI coding tools",
    "communities": [
        "r/programming",
        "r/ChatGPTCoding"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("harshmaur/reddit-topic-digest").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 = {
    "topic": "AI coding tools",
    "communities": [
        "r/programming",
        "r/ChatGPTCoding",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("harshmaur/reddit-topic-digest").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 '{
  "topic": "AI coding tools",
  "communities": [
    "r/programming",
    "r/ChatGPTCoding"
  ]
}' |
apify call harshmaur/reddit-topic-digest --silent --output-dataset

```

## MCP server setup

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

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/Bf6cxDqcG37Ro1BCm/builds/jOkvTBLjuY35xsANz/openapi.json
