Hacker News Keyword Monitor — Deduplicated Stories & Comments avatar

Hacker News Keyword Monitor — Deduplicated Stories & Comments

Pricing

$3.00 / 1,000 matched hacker news discussions

Go to Apify Store
Hacker News Keyword Monitor — Deduplicated Stories & Comments

Hacker News Keyword Monitor — Deduplicated Stories & Comments

Batch-monitor Hacker News stories and comments across multiple keyword queries in one call, deduplicating overlapping hits. Returns itemId, itemType, title, text, discussionUrl, points, commentCount, changeStatus, and matchEvidence. Pay-Per-Event $0.003/item ($3.00/1k), zero cookies.

Pricing

$3.00 / 1,000 matched hacker news discussions

Rating

0.0

(0)

Developer

Nathaniel Standridge

Nathaniel Standridge

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

3 days ago

Last modified

Features

Limited permissions

Share

Hacker News Keyword Monitor

Search a batch of keywords across recent Hacker News stories and comments. Each delivered discussion includes itemId, itemType, title, text, discussionUrl, matchEvidence and costs $0.003. Pass the last snapshot to receive only new or edited discussions.

The free HN Search API is useful for individual searches. This Actor adds a repeatable monitoring workflow: overlapping query deduplication, literal match evidence, normalized text, fixed time windows, explicit coverage diagnostics and a caller-owned checkpoint that does not advance past undelivered results.

Start with a useful sample

{
"keywords": ["postgresql", "sqlite"],
"itemType": "both",
"lookbackDays": 7,
"maxResults": 15,
"maxPagesPerQuery": 2,
"maxRequests": 15
}
  1. Run the sample and open the dataset. Each row is one matching discussion, even when multiple keywords matched it.
  2. Read matchedQueries, matchEvidence, text and storyTitle; use discussionUrl to review the original conversation.
  3. Open the OUTPUT record for coverage, errors and nextSnapshot. A result cap is reported as partial rather than presented as complete coverage.
  4. For the next daily run, copy OUTPUT.nextSnapshot into previousItems and set changesOnly to true. An explicit empty array starts a new baseline.
  5. Use itemId as the upsert key in your spreadsheet or database. Pass the next snapshot forward only after handling the delivered rows.

The Actor itself creates no schedule or messages. Configure an Apify schedule, task or integration separately when you want recurring runs.

What you receive

FieldMeaning
itemIdStable Hacker News story or comment ID, represented as a string.
itemTypestory or comment.
title, textPlain text. Story titles may be present without a body; comments use text.
matchedQueries, matchEvidenceInput keywords and the delivered fields containing their literal case-insensitive match.
discussionUrlOriginal Hacker News discussion or comment permalink.
storyId, storyTitle, storyUrlParent story context when available. storyUrl is the HN thread, not an external page.
sourceUrlExternal article link supplied by the source, if available. Links are never crawled.
points, commentCountStory engagement values from the index; null for comments.
createdAt, observedAtOriginal creation date and the fixed UTC observation timestamp.
contentHash, changeStatusContent fingerprint and new, updated or unchanged compared with your baseline.
observationIdDeterministic item/content key used to reconcile delivery within a run.
textTruncatedWhether the body exceeded the 12,000-character output limit.

Example from a public source check on November 5, 2026 (fields shortened here; the full schema is available in the Actor):

{
"itemId": "50382763",
"itemType": "story",
"title": "Burnt TOAST: performance considerations for large values in PostgreSQL",
"matchedQueries": ["postgresql"],
"matchEvidence": [{"query": "postgresql", "fields": ["title"]}],
"changeStatus": "new",
"discussionUrl": "https://news.ycombinator.com/item?id=50382763"
}

Pricing

$3.00 per 1,000 delivered discussions ($0.003 each). The 15-result sample costs up to $0.045 in Actor events. The default maximum charge is $0.05. Empty results and duplicate matches incur no event charge.

One native dataset event is charged for each delivered row. Overlapping query matches are charged once. Empty searches, failed source requests, rejected hits, diagnostics and unchanged rows skipped with changesOnly: true have no result charge. When changesOnly is false, delivered unchanged rows are charged like other delivered rows.

Matching and change detection

  • Results come from Algolia's Hacker News search index, ordered newest first. Up to ten case-insensitively distinct keywords are supported; exact repeated keywords are merged.
  • Retrieved hits must also contain a literal case-insensitive match in their normalized title or delivered text. Stories can additionally match their own external URL. Comment matches do not come only from a parent's title, URL or author's username. The source search is an upstream retrieval filter, so this is not an exhaustive substring scan of all Hacker News content.
  • minPoints filters stories only. Comment scores are unavailable and remain null.
  • The content fingerprint covers normalized title/body, story title and external link. Engagement counts and observation time do not trigger updated. A body can be truncated for delivery while its complete normalized source content contributes to the fingerprint.
  • previousItems contains only itemId and contentHash. There is no hidden baseline shared between customers or runs. nextSnapshot advances only delivered rows and already-unchanged rows; undelivered older keys remain intact.
  • Missing items never mean deleted. The snapshot retains prior keys outside the current window. Its maximum size is 10,000 entries; at capacity new keys are deferred without a charge. Prune older keys deliberately or start a new baseline when needed.

Coverage and limits

The creation-date window is [windowStart, windowEndExclusive). lookbackDays defaults to seven, up to 365; an explicit ISO timestamp in since overrides it. Edits to older discussions are detected only when those discussions still appear in the selected creation-date window and source results.

Each page contains up to 100 source hits. The Actor fetches at most ten pages and 1,000 accessible hits per keyword. It does not bypass the search service's retrieval cap. Queries run round-robin so the first keyword cannot consume every page before the others start.

Defaults are three pages per keyword, 100 delivered rows and 35 total GET attempts including robots and retries. Maximums are 1,000 delivered rows and 120 GET attempts. A 120-second work deadline reserves 25 seconds for delivery. The persisted result plan is bounded to 8 MB; oversized text-heavy batches report plan_size_limit.

OUTPUT.complete is true only when all reported source pages were fetched, distinct source IDs agree with exact hit counts, no input/source records were invalid, and every planned result was delivered without a limit. Repeated or overlapping source pages within one keyword stop that query and report incomplete coverage; overlap between different keyword searches is normal deduplication. It does not prove the index contains every HN item. Source indexing delay, deleted/dead items, ranking changes and pagination movement can affect results. Invalid or deleted/dead hits are not billed. queryStats, filteredHits, invalidHits, errors and stopReason explain the observed coverage.

Reliability and privacy

Only the fixed public hn.algolia.com search API and its robots file are requested. DNS must resolve exclusively to public addresses; requests pin a validated address and reject redirects. No supplied URL or result link is fetched. Safe GET retries share the request budget and respect Retry-After; source rate limiting stops collection.

Results are frozen before billable delivery. Ambiguous dataset appends are not automatically repeated; a resumed run reconciles stored rows and native charge counts. If a prior append cannot be confirmed, the run fails with an explicit incomplete-delivery diagnostic rather than risking a duplicate charge.

No login, browser, proxy subscription, AI service or external API key is required. No author profile or contact enrichment is performed. Public discussion text can itself contain personal information; collect and retain only what your workflow needs.

Sources

The source repository is archived. This Actor depends on the public search service remaining available; it does not guarantee index freshness or uninterrupted access.

Quick Integration (Apify MCP, n8n, Make & Python SDK)

1. Apify MCP (https://mcp.apify.com) — Claude, Cursor, OpenAI Agents & ADK

Connect your AI agent directly to https://mcp.apify.com/?actors=natstandridge/hacker-news-discussion-monitor (synchronous <25s default prefill, LIMITED_PERMISSIONS, $0.003/event Pay-Per-Event):

{
"mcpServers": {
"apify-hacker-news-discussion-monitor": {
"url": "https://mcp.apify.com/?actors=natstandridge/hacker-news-discussion-monitor",
"headers": { "Authorization": "Bearer <APIFY_TOKEN>" }
}
}
}

2. n8n Workflow (Apify / HTTP Request Node)

  • Method / URL: POST https://api.apify.com/v2/acts/natstandridge~hacker-news-discussion-monitor/run-sync-get-dataset-items
  • Header: Authorization: Bearer {{ $env.APIFY_TOKEN }}
  • JSON Body:
{
"keywords": [
"mcp",
"apify"
],
"maxResults": 15
}

3. Make.com & Python SDK (apify-client)

In Make.com, select the Apify -> Run an Actor module for natstandridge/hacker-news-discussion-monitor (enable Run synchronously) followed by Apify -> Get Dataset Items. Or in Python:

from apify_client import ApifyClient
client = ApifyClient("<APIFY_TOKEN>")
run = client.actor("natstandridge/hacker-news-discussion-monitor").call(run_input={"keywords": ["mcp", "apify"], "maxResults": 15})
items = list(client.dataset(run.default_dataset_id).iterate_items())