# HackerNews Monitor + Auto-Tagger | Free Preview (`w4rd0g/hackernews-monitor`) Actor

Search and monitor HackerNews stories, Show HN, Ask HN, polls, jobs by keyword and date range. Auto-tag every post with your custom keyword list. For trend detection, market intel, AI launch monitoring. FREE during launch preview.

- **URL**: https://apify.com/w4rd0g/hackernews-monitor.md
- **Developed by:** [Polara Data](https://apify.com/w4rd0g) (community)
- **Categories:** Social media, AI, 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 hn posts

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## HackerNews Monitor + Auto-Tagger

Search and monitor HackerNews stories, Show HN, Ask HN, polls, jobs, comments by keyword and date range. Auto-tag every post with your custom keyword list. Built on the official Algolia public API — no auth, no rate-limit headaches, full historical archive.

### What it does

- Multi-query search (run several keywords in one execution, results grouped by query)
- Filter by post type: story, comment, Show HN, Ask HN, poll, job, front\_page
- Date range filter (any time window since HN inception)
- Sort by popularity (best matches) or date (newest)
- Min points / min comments thresholds
- **Auto-tag every post** with a keyword list — perfect for trend monitoring across multiple themes

### Use cases

**Tech market intelligence** — Track every Show HN launch in your category to spot competitors and adjacent products.

**AI trend detection** — Monitor "RAG", "agent", "fine-tuning" to catch emerging topics before they go mainstream.

**Founder lead-gen** — Find Ask HN posts asking for tools in your space, reach out before they buy elsewhere.

**LLM training data** — Curate high-quality HN discussions as a corpus for fine-tuning domain-specific models.

**Content marketing** — Find high-engagement HN stories (>100 points, >50 comments) for blog post inspiration.

### Input

```json
{
  "queries": ["RAG", "LLM agents", "AI infrastructure"],
  "postType": "story",
  "sortBy": "popularity",
  "dateFrom": "2026-04-01",
  "dateTo": "2026-04-29",
  "minPoints": 5,
  "minComments": 0,
  "maxResultsPerQuery": 50,
  "tagKeywords": ["RAG", "Llama", "fine-tuning", "agent", "embedding", "vector-db", "evaluation"]
}
```

| Field | Type | Default | Description |
|---|---|---|---|
| `queries` | array | required | Search keywords (one per query) |
| `postType` | enum | `story` | story / comment / show\_hn / ask\_hn / poll / job / front\_page / all |
| `sortBy` | enum | `popularity` | popularity (best matches first) or date (newest first) |
| `dateFrom` | YYYY-MM-DD | (none) | Lower date bound (inclusive) |
| `dateTo` | YYYY-MM-DD | (none) | Upper date bound (inclusive) |
| `minPoints` | int | 5 | Skip posts below this karma |
| `minComments` | int | 0 | Skip posts below this comment count |
| `maxResultsPerQuery` | int (1-1000) | 50 | Cap per query |
| `tagKeywords` | array | \[] | Keywords auto-tagged on title |

### Output

One dataset item per matching post:

```json
{
  "query": "RAG",
  "objectID": "47955083",
  "type": "story",
  "title": "Production RAG: what I learned from processing 5M+ documents",
  "url": "https://example.com/blog/rag-lessons",
  "hnUrl": "https://news.ycombinator.com/item?id=47955083",
  "author": "user1",
  "points": 551,
  "numComments": 114,
  "createdAt": "2026-04-15T13:42:00.000Z",
  "createdAtEpoch": 1745000000,
  "storyId": null,
  "tags": ["RAG", "evaluation"]
}
```

### Pricing

**Currently FREE** during the launch preview — no per-result charges, no monthly cap.

When paid pricing rolls out (notice will be posted at least 14 days in advance):

| Event | Price |
|---|---|
| Actor start | $0.01 (one-time per run) |
| Result item | $0.001 (per post) |

**Cost examples (post-launch)**:

- 100 posts: ~$0.11
- 1.000 posts: ~$1.01
- 10.000 posts: ~$10.01

### Limits

- Source: HackerNews Algolia public search API (no auth required)
- Coverage: full HN archive (2007 onwards)
- Rate limit: ~10 req/sec (politely paced internally with 0.3s sleep)
- Max results per query: 1.000 per run
- Comment text not included by default (use HN item URL for full thread)

### Source attribution

Data comes from the [HackerNews Algolia public API](https://hn.algolia.com/api), maintained by Algolia in partnership with Y Combinator. Subject to YC's terms.

### Author

**Polara Data** — niche scrapers for Italy, EU & global markets.

# Actor input Schema

## `queries` (type: `array`):

List of search queries. Each query gets executed independently. Example: \['RAG', 'LLM agents', 'Show HN open source'].

## `postType` (type: `string`):

Limit to specific post type.

## `sortBy` (type: `string`):

popularity = best matches first. date = newest first.

## `dateFrom` (type: `string`):

Filter posts created on/after this date. Empty = no lower bound.

## `dateTo` (type: `string`):

Filter posts created on/before this date. Empty = no upper bound.

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

Skip posts below this karma threshold. 0 = no filter.

## `minComments` (type: `integer`):

Skip posts below this comment count. 0 = no filter.

## `maxResultsPerQuery` (type: `integer`):

Cap on results returned per query. Higher = slower.

## `tagKeywords` (type: `array`):

Each post is tagged with keywords from this list whose terms appear in the title (case-insensitive).

## Actor input object example

```json
{
  "queries": [
    "RAG",
    "LLM agents",
    "AI infrastructure"
  ],
  "postType": "story",
  "sortBy": "popularity",
  "minPoints": 5,
  "minComments": 0,
  "maxResultsPerQuery": 50,
  "tagKeywords": [
    "RAG",
    "Llama",
    "fine-tuning",
    "agent",
    "embedding",
    "vector-db",
    "evaluation"
  ]
}
```

# 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 = {
    "queries": [
        "RAG",
        "LLM agents",
        "AI infrastructure"
    ],
    "tagKeywords": [
        "RAG",
        "Llama",
        "fine-tuning",
        "agent",
        "embedding",
        "vector-db",
        "evaluation"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("w4rd0g/hackernews-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 = {
    "queries": [
        "RAG",
        "LLM agents",
        "AI infrastructure",
    ],
    "tagKeywords": [
        "RAG",
        "Llama",
        "fine-tuning",
        "agent",
        "embedding",
        "vector-db",
        "evaluation",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("w4rd0g/hackernews-monitor").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "queries": [
    "RAG",
    "LLM agents",
    "AI infrastructure"
  ],
  "tagKeywords": [
    "RAG",
    "Llama",
    "fine-tuning",
    "agent",
    "embedding",
    "vector-db",
    "evaluation"
  ]
}' |
apify call w4rd0g/hackernews-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=w4rd0g/hackernews-monitor",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/thccoMOmQw2ZTHX0r/builds/C2nZsQIrR6XN0RDLE/openapi.json
