# Hacker News Mention Monitor: Brand & Keyword Alerts (`pandadad0214/hacker-news-mention-monitor`) Actor

Use this to get only the new Hacker News stories and comments that mention your brand, product, competitors or website domain, each match verified in the item's own text, with front-page flags and an optional Slack/Discord/webhook digest. Excel and CSV.

- **URL**: https://apify.com/pandadad0214/hacker-news-mention-monitor.md
- **Developed by:** [Panda Federation](https://apify.com/pandadad0214) (community)
- **Categories:** Social media, News, Automation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/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

## Hacker News Mention Monitor: Brand, Competitor & Domain Alerts

**Get only the new Hacker News stories and comments that mention your brand, product, competitors or website, and nothing else.** Every match is checked in the item's own title, link or text, so loose search hits (a story that only *sounds* related) never reach your sheet or your Slack. Each row has the **story or comment, a snippet around the match, author, points and comments, the HN link, and whether the thread is on the front page right now**. **$0.0015 per verified mention.**

- ✅ **Verified matches only**: whole-word and exact-phrase checks on the item's own text. In our test, plain HN search for `posthog` over 7 days returned about 285 loose hits and only 5 actually mentioned PostHog. This Actor returns the real ones
- 🔁 **Only new mentions**: remembers what it already returned (per *state key*), so an hourly or daily schedule returns and charges only fresh mentions
- 🌐 **Domain watch**: stories that link to `yourcompany.com` (and subdomains) and comments that paste a link to it
- 🔥 **Front-page flag and re-alert**: `storyOnFrontPage` and rank from the live HN top stories, plus one extra alert when a story you already saw later reaches the front page
- 🧹 **Hiring-thread noise off by default**: the monthly *Who is hiring?* / *Who wants to be hired?* threads mention every tech name hundreds of times; they are skipped unless you turn `skipHiringThreads` off (then they become hiring leads)
- 🔔 **Optional webhook digest**: Slack, Discord, Zapier/Make/n8n or your own endpoint, posted only when there is something new
- 💸 **$0.0015 per mention**; runs with nothing new are free

### Who it's for

- **Founders and dev-tool marketers:** know within the hour when your product, launch or blog post is discussed, and join the thread while it matters
- **DevRel and support teams:** catch bug reports, comparisons and "has anyone used X?" questions in comments
- **Competitive intelligence:** what HN says about your competitors, with points and comment counts to show what landed
- **Agencies:** one state key per client, one sheet or Slack channel each
- **AI agents and automations:** a clean "new mentions since last time" step before summarising or drafting replies

### How to use it

1. Click **Try for free**.
2. Add **keywords** (brand, product, competitor names, spelling variants) and/or **domains** (`yourcompany.com`).
3. Optional: **exclude keywords**, **ignore HN usernames** (your own team), **minimum story points**, a **state key**, and a **webhook URL**.
4. Click **Start**, then **schedule it** (hourly or daily). Download **HN_MENTIONS_XLSX** or **HN_MENTIONS_CSV** from **Storage → Key-value store**, read the dataset by API, or get the digest in Slack.

#### Input example

```json
{
  "keywords": ["PostHog", "Mixpanel", "Amplitude"],
  "domains": ["posthog.com"],
  "lookbackHours": 72,
  "onlyNew": true,
  "stateKey": "analytics-watch",
  "ignoreAuthors": ["our_founder"],
  "webhookUrl": "https://hooks.slack.com/services/…",
  "webhookFormat": "slack"
}
```

### Task examples

- **Brand alert to Slack, hourly:** `{"keywords": ["YourBrand"], "domains": ["yourbrand.com"], "webhookUrl": "https://hooks.slack.com/services/…"}`
- **Launch day: did our Show HN hit the front page?** `{"domains": ["yourbrand.com"], "itemTypes": ["story"], "lookbackHours": 24}` and read `storyOnFrontPage` / `storyRank`
- **Competitor comparisons in comments:** `{"keywords": ["CompetitorA", "CompetitorB"], "itemTypes": ["comment"], "stateKey": "competitors"}`
- **Only stories that took off:** `{"keywords": ["Rust", "Zig"], "itemTypes": ["story"], "minPoints": 100, "lookbackHours": 168}`
- **Names that are also common words:** `{"keywords": ["Linear"], "caseSensitive": true, "excludeKeywords": ["linear algebra", "linear regression"]}`
- **One-off 30-day report, no memory:** `{"keywords": ["YourBrand"], "lookbackHours": 720, "onlyNew": false}`

### Output example

```json
{
  "mentionType": "story",
  "storyKind": "show_hn",
  "alertReason": "new-mention",
  "matchedTerms": [
    "PostHog"
  ],
  "matchedIn": [
    "text"
  ],
  "title": "Show HN: Pump Up – Build agentic workflows to grow your startup",
  "snippet": "…Up ourselves: https://pumpup.com/marketplace Some of the things we’ve been using Pump Up for: * Metrics: Each week an agent pulls data from PostHog, Stripe, and Granola, and prefills a form based on YC’s start-up school questions to track growth and PMF; we confirm/edit, and then it bui…",
  "hnUrl": "https://news.ycombinator.com/item?id=50733032",
  "linkUrl": "https://pumpup.com",
  "author": "pea",
  "createdAt": "2026-12-02T18:12:40+00:00",
  "ageHours": 21.5,
  "points": 19,
  "numComments": 17,
  "storyOnFrontPage": false,
  "storyRank": 219,
  "mentionKey": "50733032",
  "agentSummary": "HN story \"Show HN: Pump Up – Build agentic workflows to grow your startup\" by pea 21.5h ago, 19 points, 17 comments [top stories #219] matched PostHog: …Up ourselves: https://pumpup.com/marketplace Some of the things we’ve been using Pump Up for: * Metrics: Each week an agent pulls data from PostHog, Stripe, and Granola, and pref… https://news.ycombinator.com/item?id=50733032"
}
```

The row above is real output from a test run on 2026-12-03. Rows also carry `authorUrl`, `storyId`, `storyHnUrl`, `parentHnUrl` (comments) and `checkedAt`.

### For AI agents

Use this Actor to answer "what did Hacker News say about X (or link to example.com) since last time?". Minimal input: `{"keywords": ["YourBrand"]}`. Read `agentSummary` per mention (type, thread title, author, age, points, front-page rank, matched term, snippet, link) or the SUMMARY `takeaway` (counts per term, front-page threads, the biggest story).

- **MCP:** add it to Claude, Cursor, Copilot or any MCP client through the [Apify MCP server](https://mcp.apify.com): `https://mcp.apify.com/?actors=pandadad0214/hacker-news-mention-monitor`, then ask in plain English.
- **API:** `POST https://api.apify.com/v2/acts/pandadad0214~hacker-news-mention-monitor/run-sync-get-dataset-items?token=YOUR_TOKEN` with the input JSON.
- Use one `stateKey` per watch list or client so "only new" memory doesn't mix. Set `onlyNew: false` for a one-off report.
- `alertReason` is `new-mention` or `reached-front-page`; `matchedIn` says whether the term was in the title, the link or the text.

### Pricing

**$0.0015 per verified mention returned** (pay per event) plus Apify's tiny Actor-start fee of $0.00005. 1,000 mentions cost $1.50; a daily brand watch that finds ~10 new mentions costs about $0.015 a day. Runs with nothing new cost nothing per result, loose search hits we drop are never charged, and you can cap any run with **Maximum results** or Apify's *maximum charge per run*.

**Apify paid-plan discounts:** Bronze members pay 10% less, Silver 20% less and Gold 30% less per mention; the discount applies automatically. Apify's free plan includes monthly credit to try it.

### Why this instead of a free alert or a plain HN scraper?

- **Free email alert services** are great for a person reading an inbox. This Actor gives you **structured rows** (CSV, Excel, API, MCP) with points, front-page rank and a match snippet, memory per client or watch list, and a webhook into your own stack.
- **Plain HN search scrapers** return everything the search engine considers similar and charge per row. Here every row is verified in the item's own text, already-seen mentions are skipped, and you only pay for real, new mentions.
- **Paid social-listening suites** cover many networks for a monthly fee. If Hacker News is the channel that matters for you, this costs cents a month.

### FAQ

**Where does the data come from?** The official public Hacker News Search API (Algolia, `hn.algolia.com/api`) and the HN Firebase API for the live top-stories ranking. No login, no scraping of news.ycombinator.com pages.

**How fresh is it?** HN search usually indexes new stories and comments within minutes. An hourly schedule with `lookbackHours` 24–72 and only-new on catches everything once.

**How does "only new" work?** Each returned mention's HN item id is stored in a named key-value store in your own Apify account (`pf-hn-mention-monitor-state`) under your state key. Next run those items are skipped and not charged. Use a new state key, or `onlyNew: false`, to start fresh.

**My brand is a common word.** Turn on `caseSensitive`, add `excludeKeywords` for the common phrases, or watch your **domain** instead, which is precise.

**Is the webhook URL safe?** It is stored as a secret input and only public http(s) addresses are accepted. Nothing is posted on runs without new mentions. Delivery status is saved as `WEBHOOK_STATUS`.

**Does it read whole threads?** No. It returns each matching story or comment with a snippet and links to the thread. That keeps runs fast (seconds) and cheap.

### Part of [Panda Federation](https://pandafederation.com/?utm_source=apify\&utm_medium=listing\&utm_campaign=hacker-news-mention-monitor)

This Actor is part of the [Panda Federation](https://pandafederation.com/?utm_source=apify\&utm_medium=listing\&utm_campaign=hacker-news-mention-monitor) catalog of public-data tools. See the rest of the work on the [official site](https://pandafederation.com/?utm_source=apify\&utm_medium=listing\&utm_campaign=hacker-news-mention-monitor).

### More Panda Federation tools

- [RSS & Atom Feed Monitor](https://apify.com/pandadad0214/rss-feed-monitor?utm_source=apify\&utm_medium=listing\&utm_campaign=hacker-news-mention-monitor): only-new items from blogs, press rooms and news feeds
- [Website Change Monitor](https://apify.com/pandadad0214/website-change-monitor?utm_source=apify\&utm_medium=listing\&utm_campaign=hacker-news-mention-monitor): watch competitor pricing and changelog pages
- [Topic Trends Tracker](https://apify.com/pandadad0214/topic-trends-tracker?utm_source=apify\&utm_medium=listing\&utm_campaign=hacker-news-mention-monitor): is a topic rising across sources?
- [AI Search SEO Audit](https://apify.com/pandadad0214/ai-search-seo-audit?utm_source=apify\&utm_medium=listing\&utm_campaign=hacker-news-mention-monitor): is your site ready for AI search?
- Full catalog and MCP server: [Panda Federation Tools on GitHub](https://github.com/pandadad0214/panda-federation-tools)

*Built by Panda Federation. Questions or a custom version? Open an issue on the Actor's Issues tab.*

### Changelog

- **2026-12-03:** First release (0.1): verified keyword and exact-phrase matching on stories and comments, domain-link watch, only-new memory per state key, front-page flag and one-time front-page re-alert, exclude keywords, ignored authors, minimum points, monthly hiring threads skipped by default, case-sensitive option, time-window paging past the 1,000-hit search limit, Slack/Discord/JSON webhook digest, Excel and CSV (`HN_MENTIONS_XLSX` / `HN_MENTIONS_CSV`, with a By term sheet), `agentSummary` and SUMMARY `takeaway`, pay-per-event pricing with Bronze/Silver/Gold discounts.

# Actor input Schema

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

Brand, product, competitor, founder or topic names. Each one is matched as a whole word or exact phrase (case-insensitive) in the story title, link or text, or in the comment text. Add spelling variants as separate lines. Up to 50 keywords and domains in total.

## `domains` (type: `array`):

Find stories that link to these domains (including subdomains) and comments that contain a link to them, e.g. yourcompany.com or docs.yourcompany.com.

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

How far back to search. With only-new on, a daily schedule can keep 48–72 hours: mentions already returned are skipped and not charged. Maximum 720 (30 days).

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

Default on. Remembers returned mentions (per state key) in a named key-value store in your account, so scheduled runs return and charge only new ones.

## `stateKey` (type: `string`):

Separate memory per watch list or client, e.g. brand, competitors or client-acme. Default: default.

## `frontPageAlerts` (type: `boolean`):

Default on. If a story you were already told about later reaches the Hacker News front page (top 30), it is returned once more with alertReason reached-front-page.

## `itemTypes` (type: `array`):

Default both.

## `minPoints` (type: `integer`):

Skip stories below this score. Comments are not affected. 0 = keep all.

## `skipHiringThreads` (type: `boolean`):

Default on. Skips comments in the monthly 'Ask HN: Who is hiring?', 'Who wants to be hired?' and 'Freelancer? Seeking freelancer?' threads, where tech names appear in hundreds of job posts and résumés. Turn off to use them as hiring leads.

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

Drop mentions whose title, link or text contains any of these words or phrases (e.g. a common word your brand shares).

## `ignoreAuthors` (type: `array`):

Skip mentions written by these Hacker News accounts, e.g. your own team.

## `caseSensitive` (type: `boolean`):

Turn on for names that are also common words (e.g. Linear, Notion, Bun).

## `webhookUrl` (type: `string`):

When there are new mentions, post one digest here: a Slack or Discord incoming webhook, Zapier/Make/n8n catch hook, or your own endpoint. Nothing is posted on empty runs.

## `webhookFormat` (type: `string`):

slack = {text}, discord = {content}, json = {count, text, mentions\[]}.

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

Stop after this many mentions (each is one charged result). Default 200.

## Actor input object example

```json
{
  "keywords": [
    "Apify"
  ],
  "domains": [
    "apify.com"
  ],
  "lookbackHours": 72,
  "onlyNew": true,
  "frontPageAlerts": true,
  "itemTypes": [
    "story",
    "comment"
  ],
  "minPoints": 0,
  "skipHiringThreads": true,
  "caseSensitive": false,
  "webhookFormat": "slack",
  "maxResults": 200
}
```

# Actor output Schema

## `table` (type: `string`):

No description

## `xlsx` (type: `string`):

No description

## `csv` (type: `string`):

No description

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

Agent-friendly keys: `takeaway` (one-line result), mentionsPerTerm, onFrontPage, `nextStep` and `nextSteps`.

# 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 = {
    "keywords": [
        "Apify"
    ],
    "domains": [
        "apify.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("pandadad0214/hacker-news-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 = {
    "keywords": ["Apify"],
    "domains": ["apify.com"],
}

# Run the Actor and wait for it to finish
run = client.actor("pandadad0214/hacker-news-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 '{
  "keywords": [
    "Apify"
  ],
  "domains": [
    "apify.com"
  ]
}' |
apify call pandadad0214/hacker-news-mention-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,pandadad0214/hacker-news-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/w5dBcy6TCsV0FvH4T/builds/HRm8KJ6aqRVETVPpZ/openapi.json
