# Reddit Mention Monitor: Subreddit Keyword Alerts (`shelfdata/reddit-mention-monitor`) Actor

Watch subreddits for your keywords in posts and comments, including mentions that appear only in a comment. Each scheduled run returns only new matches. Reads the Arctic Shift Reddit archive; no Reddit login or API key.

- **URL**: https://apify.com/shelfdata/reddit-mention-monitor.md
- **Developed by:** [ShelfData](https://apify.com/shelfdata) (community)
- **Categories:** Social media, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 81.8% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 matches

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 Mention Monitor: Subreddit Keyword Alerts

Watch **subreddits for your keywords in posts and comments**. Name the subreddits where your customers talk, list your
brand, products and competitors, and schedule it: every run returns only the matches it has not returned before, one row
per post or comment, with a link, the author and the post it belongs to.

It reads **every** new post and comment of each subreddit and matches them itself, so it also catches a brand that is
named only deep in a comment thread, which keyword search on posts misses. No Reddit login, cookies or API key.

Built for brand and community managers, agencies and founders tracking mentions, complaints, competitor talk and
product feedback. Unofficial; not affiliated with Reddit.

### How to use

1. **Subreddits**: names (`Supplements`, `r/Supplements`) or subreddit URLs, up to 50.
2. **Keywords**: brand names, products, competitors or topics. Optionally **Exclude if the text contains** for words
   that mark a false match (a product that shares your brand's name).
3. Run it once: the first run reads the last **Look back** hours (default 24). Then schedule it, e.g. daily.

| Input | Meaning |
|---|---|
| `subreddits` | Subreddit names or URLs (required) |
| `keywords` | Words or phrases to find, whole words, case-insensitive (required) |
| `excludeKeywords` | Drop a match whose post or comment also contains one of these |
| `searchPosts` / `searchComments` | What to match, default both |
| `includePostContext` | Add the post title to comment matches (default on) |
| `lookbackHours` | How far back the first run reads, default 24, up to 2160 (90 days) |
| `onlyNew` | Default on: return only matches not returned before. The Console form starts with it off (a one-off run over the last 6 hours, at most 10 pages): tick it for a scheduled monitor; API calls and schedules that omit it keep it on |
| `recheckHours` | Read every item again this many hours after posting to catch late comments, default 48 (see below) |
| `monitorName` | Separate memory per monitor (e.g. one per client) |
| `maxPagesPerRun` | Pages of 100 posts or comments read per run, default 200 |
| `maxItems` | Stop after this many matches, default 1000 |

#### How keywords match

Whole words, case-insensitive: `creatine` matches "Creatine" but not "creatinine". A link counts by its domain:
`https://brand.com/shop` names `brand.com` (and `brand`), but an image path or video id that happens to contain your
keyword does not. Text inside code blocks is ignored.

### Output example

```json
{
  "type": "comment",
  "id": "t1_19sk4xvncj3s4",
  "subreddit": "Supplements",
  "author": "Techd-it",
  "title": null,
  "text": "Creatine is bitter.  ",
  "url": "https://www.reddit.com/r/Supplements/comments/1xuqzfc/comment/19sk4xvncj3s4/",
  "createdAt": "2026-11-13T05:18:08Z",
  "score": 1,
  "numComments": null,
  "flair": null,
  "nsfw": null,
  "postId": "t3_1xuqzfc",
  "postTitle": "Is this still fine to take?",
  "postUrl": "https://www.reddit.com/r/Supplements/comments/1xuqzfc/",
  "parentId": "t3_1xuqzfc",
  "matchedKeywords": ["creatine"]
}
```

Post rows carry `title`, `text`, `numComments`, `flair` and `nsfw`. The run's `OUTPUT` record summarises `success`,
`total`, posts and comments scanned, pages read and any problem.

### Where the data comes from, and what that means

Reddit stopped serving logged-out visitors and scripts in October 2026. The actor reads the
[Arctic Shift](https://github.com/ArthurHeitmann/arctic_shift) archive, a free public archive of Reddit posts and
comments, within its rate limits. That shapes what you get:

- **Posts arrive within minutes. Comments arrive late**: since Reddit changed its comment ids in October 2026, the
  archive picks comments up hours after they are posted (measured 2026-11-14: half within 1.5 to 6 hours, nine in ten
  within 3 to 23 hours, the slowest about 40 hours). So every post and comment is read when it is new, again about 6
  hours later and again `recheckHours` (default 48) after it was posted; matches already returned are not returned
  again. A late comment therefore reaches you up to two days after it was written.
- **Completeness**: the archive's maintainer expects 90-95% of comments to be captured.
- **Scores** are the values when the archive read the item, often 1 for a new post or comment; the archive re-reads
  items about 36 hours after posting.
- **Removed content**: text removed after the archive captured it can still appear.
- **Only the subreddits you list** are watched: there is no search across all of Reddit.
- The archive is a free service without an uptime guarantee. When it does not answer, the run fails with that message
  and the next run picks up where the last successful one stopped.

### How much does it cost?

Pay per event: **$0.005 per run**, **$0.001 per page read** (one page = up to 100 posts or comments of one
subreddit) and **$0.002 per match**. The Apify platform usage is included. Examples:

- 2 busy subreddits, run daily, about 20 matches a day: about 60 pages a day (each item is read up to three times),
  **about $3.20 a month**
- the same, run hourly: a few short pages per run on top, **about $13 a month**
- a one-off look back of 7 days over 1 busy subreddit (`onlyNew` off): about 80 pages, **about $0.09** plus $0.002 per
  match

Each item is read at most three times however often the actor runs, so daily or twice-daily schedules are the
cheapest. Set `recheckHours` to 0 to read each item once (cheaper, but late comments are missed), or cap a run with
`maxPagesPerRun`.

### Run it from your code, a schedule or another tool

- **API**: start a run and get the matches in one call:

  ```bash
  curl -X POST "https://api.apify.com/v2/acts/shelfdata~reddit-mention-monitor/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
    -H "Content-Type: application/json" \
    -d '{"subreddits": ["Supplements", "Biohackers"], "keywords": ["creatine", "AG1"], "lookbackHours": 24}'
  ```

  The same works from the Apify Python and JavaScript clients.
- **Schedules**: run it daily from Apify Console > Schedules; `onlyNew` returns only what is new.
- **Integrations**: send matches to Google Sheets, Slack, email, Make, Zapier, n8n or a webhook from the Integrations tab.
- **AI agents**: the actor is available as a tool through the Apify MCP server.

### FAQ

**What happens on the first run?**
It reads the last **Look back** hours of every subreddit. Later runs continue from there and re-check recent comments.

**Can several clients or projects share the actor?**
Yes: give each monitoring task its own **Monitor name**; each keeps its own memory of what it already returned.

**Why did a run say "not caught up"?**
It hit **Maximum pages per run**. The next run continues where it stopped; raise the limit to catch up in one run.

**Is it legal to scrape this data?**
The actor reads publicly posted Reddit content from a public archive, no data behind a login. Rows include Reddit
usernames and post texts; if you store them, handle them under the privacy rules that apply to you (such as the GDPR),
and check Reddit's terms for how you use the content.

**Something is missing or broken?**
Open an issue on the actor's Issues tab: requests and bug reports are answered there.

# Actor input Schema

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

Subreddit names (`Supplements`, `r/Supplements`) or subreddit URLs. Every new post and comment of each subreddit is read and matched. Up to 50.

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

Brand names, products, competitors or topics. Matched as whole words, case-insensitive (`creatine` does not match `creatinine`); a link counts by its domain (`brand.com/...`).

## `excludeKeywords` (type: `array`):

Drop a match when its post or comment also contains one of these words or phrases, e.g. a product that shares your brand's name.

## `searchPosts` (type: `boolean`):

Match post titles and text.

## `searchComments` (type: `boolean`):

Match comments, including mentions in threads whose post never names the keyword.

## `includePostContext` (type: `boolean`):

Looks up the title of the post each matching comment belongs to (one extra request per page with matches).

## `lookbackHours` (type: `integer`):

How far back the first run reads (and every run, with 'Only new matches' off). At most 90 days.

## `onlyNew` (type: `boolean`):

Remembers per subreddit how far it has read and which matches it returned (in a key-value store named `reddit-mention-monitor-state` in your account), so each scheduled run returns only matches it has not returned before. A pause longer than the look-back window resumes at the start of the window. The form starts with it off (a one-off run); tick it for scheduled monitoring. API calls and schedules that omit this field keep it on.

## `recheckHours` (type: `integer`):

Comments reach the archive late, often hours and up to about 40 hours after they are posted. With 'Only new matches' on, every post and comment is read again about 6 hours and this many hours after it was posted, so late comments are still found; matches already returned are never returned again. Each item is read at most three times however often the actor runs. 0 turns re-checks off (cheaper, but misses late comments).

## `monitorName` (type: `string`):

Keeps separate memories for different monitors (e.g. one per client) that watch the same subreddits.

## `maxPagesPerRun` (type: `integer`):

One page is up to 100 posts or comments of one subreddit (a few seconds each; each page read is charged). A busy subreddit such as r/Supplements has about 10 comment pages a day, read up to three times with the re-checks. A run that does not catch up continues where it stopped next time.

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

Stop after this many matches; the next run continues after the last one returned.

## Actor input object example

```json
{
  "subreddits": [
    "Supplements"
  ],
  "keywords": [
    "creatine"
  ],
  "searchPosts": true,
  "searchComments": true,
  "includePostContext": true,
  "lookbackHours": 6,
  "onlyNew": false,
  "recheckHours": 48,
  "monitorName": "default",
  "maxPagesPerRun": 10,
  "maxItems": 1000
}
```

# Actor output Schema

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

Dataset rows: one per matching post or comment, oldest first.

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

OUTPUT record: success, total matches, posts and comments scanned, catch-up state and problems.

# 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": [
        "Supplements"
    ],
    "keywords": [
        "creatine"
    ],
    "lookbackHours": 6,
    "onlyNew": false,
    "maxPagesPerRun": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("shelfdata/reddit-mention-monitor").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": ["Supplements"],
    "keywords": ["creatine"],
    "lookbackHours": 6,
    "onlyNew": False,
    "maxPagesPerRun": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("shelfdata/reddit-mention-monitor").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": [
    "Supplements"
  ],
  "keywords": [
    "creatine"
  ],
  "lookbackHours": 6,
  "onlyNew": false,
  "maxPagesPerRun": 10
}' |
apify call shelfdata/reddit-mention-monitor --silent --output-dataset

```

## MCP server setup

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

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/AOB2x0T2aYGdbQAye/builds/3oY8s42k2JeWywnC0/openapi.json
