# Brand Monitor: Mentions on Hacker News, Bluesky, Mastodon & RSS (`pikoulas/brand-monitor`) Actor

Find every mention of your brand, product or name on Hacker News, Bluesky, Mastodon, Lemmy and the news sites, blogs and newsletters you follow, in one table: text, author, likes, link and date. Only new mentions on a schedule, for alerts. No login.

- **URL**: https://apify.com/pikoulas/brand-monitor.md
- **Developed by:** [Spyridon Pikoulas](https://apify.com/pikoulas) (community)
- **Categories:** Social media, Marketing, News
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 mentions

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/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

## Brand Monitor: Mentions on Hacker News, Bluesky, Mastodon & RSS

Give it your brand, product or name and get every mention of it on Hacker News, Bluesky, Mastodon,
Lemmy and the news sites, blogs and newsletters you follow, in one table with one set of columns,
without an account or a browser:

- **Five sources at once:** Hacker News stories and comments, Bluesky posts, Mastodon posts by
  hashtag, Lemmy posts and comments, and the items of any RSS, Atom or JSON feed you give it (trade
  press, news sections, competitors' blogs, Substack newsletters).
- **One shape:** the same fields for every mention, whichever source it's from: the text, the
  author and their profile, likes, reposts, replies and score, the link it shares, when it was
  posted, where, and which of your keywords it has.
- **Keywords that mean what you typed:** whole words in any case, so `acme` doesn't match
  `acmeville`; `#tag` for a hashtag; a domain (`acme.dev`) also matches links to it. Exclude words
  such as `hiring` or `giveaway` to keep the noise out.
- **Alerts:** with **Only new mentions** on, a scheduled run gives, and charges for, only what no
  earlier run gave: every new mention each hour or morning, to a sheet, Slack or email through
  Make, Zapier or n8n.

### What people use it for

- **Brand monitoring and social listening:** what developers, customers and the press say about
  your product, the day they say it.
- **Competitor tracking:** launches, complaints and praise of the tools you compete with.
- **PR and media monitoring:** coverage in the outlets and newsletters you follow, next to the
  conversation around it.
- **Community and developer relations:** threads to answer, bug reports and feature requests
  before they grow.
- **Market research and AI agents:** a stream of real opinions on a topic, as data for analysis,
  sentiment or an LLM's context.

### How to monitor brand mentions

1. Click **Try for free**; Apify's free plan covers a first run.
2. Enter your **Keywords**, and add **RSS feeds** if you want news sites or newsletters watched too.
3. Click **Start**, then download the mentions as JSON, CSV, Excel or HTML, or read them through
   the API.

For alerts, turn on **Only new mentions**, give it a **Memory name**, and schedule the run
(Apify's **Schedules**, hourly or daily). The first run gives what the lookback holds; the next
ones only what's new since, and a run with nothing new costs only the hours of Bluesky and feeds
it read.

```json
{
  "keywords": ["acme", "acme.dev", "Acme Cloud"],
  "excludeKeywords": ["hiring"],
  "sources": ["hackerNews", "bluesky", "mastodon", "lemmy", "feeds"],
  "feeds": ["https://techcrunch.com/feed/", "https://www.theverge.com/rss/index.xml"],
  "lookbackHours": 24,
  "blueskyHours": 1,
  "includeComments": true,
  "maxMentionsPerKeyword": 100,
  "onlyNew": false
}
```

How each source is searched:

- **Hacker News:** HN Search, every story and comment posted in the lookback, up to 30 days.
- **Bluesky:** its public stream, every post made in the hours you choose (up to 24), as Bluesky's
  own search isn't open to apps without a login. Each hour searched is charged once, whatever it
  finds.
- **Mastodon:** a keyword is read as a hashtag (`Claude Code` as #ClaudeCode), as Mastodon
  searches posts by hashtag only: posts on mastodon.social and those it knows from other servers.
  A domain can't be a hashtag and is skipped there.
- **Lemmy:** lemmy.world's search of posts and comments, across the communities it knows. It asks
  for a minute between requests, so its part takes about a minute a keyword.
- **Feeds:** each feed you give, or the one a site's page names; items with a keyword are mentions.

`maxMentionsPerKeyword` caps each keyword on each source, the newest first.

### Output

```json
{
  "source": "bluesky",
  "id": "at://did:plc:x6ux2kntuoni6pgdilmyhmci/app.bsky.feed.post/3n2t743j4bk2f",
  "url": "https://bsky.app/profile/spiantado.bsky.social/post/3n2t743j4bk2f",
  "type": "post",
  "title": null,
  "text": "Remarkable that the fastest way to solve the most important problem in pure mathematics was ...",
  "link": "https://www.scientificamerican.com/article/anthropic-mathematician-claims-to-prove-riemann-hypothesis-most-famous-problem-in-all-of-math/",
  "author": "spiantado.bsky.social",
  "authorName": "steven t. piantadosi",
  "authorUrl": "https://bsky.app/profile/spiantado.bsky.social",
  "authorFollowers": null,
  "publishedAt": "2026-11-21T13:23:27.347Z",
  "likes": 22,
  "reposts": 8,
  "replies": 3,
  "score": null,
  "site": "bsky.app",
  "community": null,
  "language": "en",
  "hashtags": [],
  "keyword": "anthropic",
  "matchedKeywords": ["anthropic"],
  "sourceFields": {"quoteCount": 0, "externalLink": {"url": "https://www.scientificamerican.com/...", "title": "Anthropic mathematician claims to prove Riemann hypothesis..."}}
}
```

- `source` is `hackerNews`, `bluesky`, `mastodon`, `lemmy` or `feed`; `type` is `story`, `comment`,
  `post`, `reply` or `article`.
- `keyword` is the keyword it was found for, `matchedKeywords` every one it has.
- `title` is a Hacker News story's or a Lemmy post's, or the story a comment is under; a feed
  item's headline. `link` is the page a post shares.
- `likes` and `reposts` are Bluesky's and Mastodon's, `score` Hacker News' points and Lemmy's
  votes, `replies` the comments or replies. `authorFollowers` is Mastodon's.
- `site` is the server or feed it came through, `community` a Lemmy post's.
- `sourceFields` holds what only one source has: Bluesky's quotes, images and thread, Mastodon's
  content warning and media, Lemmy's up and down votes, a feed's URL, categories and image.

### Use it as an API

Apify's API starts a run and returns its dataset as JSON; its Python and JavaScript clients, and its
Make, Zapier and n8n integrations, work the same way.

```bash
curl -X POST "https://api.apify.com/v2/acts/pikoulas~brand-monitor/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"keywords": ["openai"], "maxMentionsPerKeyword": 20}'
```

For an AI agent, Apify's MCP server gives it the Actor as a tool:
`https://mcp.apify.com?tools=pikoulas/brand-monitor`.

### How much does it cost to monitor brand mentions?

You pay **$0.001 per mention**, which is $1 per 1,000, on Apify's paid plans ($1.50 on the free
plan), plus **$0.02 for each hour of Bluesky searched** and **$0.0001 for each feed read**. A daily
run for three keywords, with an hour of Bluesky and 10 feeds, that finds 150 mentions costs $0.17.
There are no monthly fees; a mention found for two keywords is charged once, and one an earlier
run gave is neither given nor charged again. Set a spending limit on a run and it stops there with
what it has.

### Good to know

- **Each source is read as a guest:** under this Actor's own name, keeping to each site's
  `robots.txt` and the pace it asks for. If a source refuses or shows a verification page, its
  part of the run stops there with what it has and the others carry on; it never tries to get
  past one.
- **Bluesky's stream** covers about the last 37 hours, so a run reaches 24 hours back at most;
  with **Only new mentions**, a run after the first goes on from where the last one stopped.
- **Only new mentions** remembers the last 50,000 mentions each memory name gave, in a key-value
  store in your account named `brand-monitor-memory`; delete its record to start over. A run after
  the first looks back to where the last one ended, two hours before it to catch late arrivals.
- **Personal data:** emails and phone numbers in Hacker News, Mastodon and Lemmy texts are
  replaced, Mastodon accounts that asked not to be indexed and Bluesky accounts that asked not to
  be shown to logged-out readers are left out, and Bluesky posts deleted before the run ends
  aren't given.

### FAQ

#### Is it legal to monitor mentions this way?

It reads only what each source shows anyone, without logging in, keeps to each site's
`robots.txt`, and gives no one's contact details. Hacker News is read through Algolia's HN Search
API; [Y Combinator's terms](https://www.ycombinator.com/legal#tou) prohibit scraping Hacker News's
own site, and your use of what this Actor gives is your own responsibility. Bluesky's
[Developer Guidelines](https://docs.bsky.app/docs/support/developer-guidelines) ask services to
delete what a user deletes: if you keep posts, remove those their authors delete later.
mastodon.social's and lemmy.world's terms don't prohibit reading them this way, and each server
sets its own rules; mastodon.social asks that its content not be used for LLM training. Feeds are
published for programs to read, but what you may do with their items is up to each publisher.
Posts are their authors' work and personal data under laws such as the GDPR, so republishing or
profiling may need permission. If you're unsure, ask a lawyer; Apify's
[Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/) is a good start.

Not affiliated with or endorsed by Y Combinator, Algolia, Bluesky, Mastodon gGmbH, Lemmy or any
server or publisher; their names are trademarks of their owners.

#### Something missing or not working?

Open an issue on the **Issues** tab with the input you used, or ask there for a source you need.

If it does what you need, a review on the **Reviews** tab helps others find it.

#### Just one source?

Each has an Actor of its own, with more for it: [Hacker News](https://apify.com/pikoulas/hacker-news),
[Bluesky](https://apify.com/pikoulas/bluesky), [Mastodon & Lemmy](https://apify.com/pikoulas/mastodon-lemmy)
and [RSS Feed Reader](https://apify.com/pikoulas/feed-reader).

# Actor input Schema

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

What to look for: your brand, product, competitors, a name, a domain (example.com, also found in links) or a #hashtag. Each matches whole words in any case: openai doesn't match openaiwatch. On Mastodon each keyword is read as a hashtag (Claude Code as #ClaudeCode), since Mastodon searches posts only by hashtag.

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

Mentions with any of these are left out, uncharged: jobs, hiring, giveaway.

## `sources` (type: `array`):

Where to look. Feeds are read only when you give some below.

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

Mentions posted in the last this many hours, up to 720 (30 days), on Hacker News, Mastodon, Lemmy and feeds. With Only new mentions, a run after the first goes back to where the last one ended (a little before), within this.

## `blueskyHours` (type: `integer`):

Bluesky's posts are searched as they stream, an hour of every post on Bluesky at a time, charged per hour searched (see Pricing): up to 24 hours back. With Only new mentions, a run after the first searches from where the last one stopped, up to 24 hours.

## `feeds` (type: `array`):

RSS, Atom or JSON feeds, or the sites that have one: news sites, trade press, blogs, newsletters (a Substack's is its address and /feed), press release pages. Their items with a keyword are mentions.

## `includeComments` (type: `boolean`):

Comments on Hacker News and Lemmy too, not only posts and stories: where most brand talk is.

## `maxMentionsPerKeyword` (type: `integer`):

Up to this many for each keyword from each source, the newest first. 0 for all in the lookback.

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

Give, and charge for, only the mentions no earlier run with the same memory gave. Schedule it hourly or daily for alerts.

## `memory` (type: `string`):

One per alert, so two schedules don't share a memory. Kept in your account's key-value store brand-monitor-memory: the last 50,000 mentions given, and where Bluesky's stream was left.

## `mastodonServer` (type: `string`):

The server whose hashtag timelines are read: its own posts and those it knows from across the fediverse.

## `lemmyServer` (type: `string`):

The server whose search is read, across the communities it knows. lemmy.world asks a minute between requests, so its part takes a minute a keyword.

## Actor input object example

```json
{
  "keywords": [
    "openai"
  ],
  "sources": [
    "hackerNews",
    "bluesky",
    "mastodon",
    "lemmy",
    "feeds"
  ],
  "lookbackHours": 24,
  "blueskyHours": 1,
  "includeComments": true,
  "maxMentionsPerKeyword": 20,
  "onlyNew": false,
  "memory": "default",
  "mastodonServer": "mastodon.social",
  "lemmyServer": "lemmy.world"
}
```

# Actor output Schema

## `overview` (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 = {
    "keywords": [
        "openai"
    ],
    "blueskyHours": 1,
    "maxMentionsPerKeyword": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("pikoulas/brand-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": ["openai"],
    "blueskyHours": 1,
    "maxMentionsPerKeyword": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("pikoulas/brand-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": [
    "openai"
  ],
  "blueskyHours": 1,
  "maxMentionsPerKeyword": 20
}' |
apify call pikoulas/brand-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,pikoulas/brand-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/49hkcMaNJai11FGL3/builds/Q3dYgqmzCUxUKGkj3/openapi.json
