Hacker News Scraper: Stories, Comments & Mentions avatar

Hacker News Scraper: Stories, Comments & Mentions

Pricing

from $0.20 / 1,000 hacker news items

Go to Apify Store
Hacker News Scraper: Stories, Comments & Mentions

Hacker News Scraper: Stories, Comments & Mentions

Search Hacker News stories and comments by keyword, domain or author with the official HN Algolia API. Points, comments, links, clean text, date window, min points, sort before the cap and a new-mentions monitor. One flat row per item.

Pricing

from $0.20 / 1,000 hacker news items

Rating

0.0

(0)

Developer

Hydrocore Data

Hydrocore Data

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

8 days ago

Last modified

Features

Limited permissions

Share

Search Hacker News stories and comments by keyword, site or author, or list the front page, Show HN, Ask HN and jobs. One flat row per item: title, points, comment count, author, date, HN link and outside link, domain, story context for comments, age, front-page flag and text. Sort by newest, points or comments before the limit, filter by date, points and comments, and turn on monitor mode to get only new mentions on a schedule. Uses the official public HN search API by Algolia. No login, no API keys.

✅ What you get

  • Stories, comments or both; Show HN, Ask HN, jobs and the current front page
  • Points, comment count, author, ISO date, age in hours
  • HN link plus the outside link and its domain
  • Story title and ID for comments
  • Filters: days, minimum points and comments, domains, authors
  • Sort by newest, points, comments or relevance
  • Monitor mode for new mentions only

🏆 Why this Actor

  • Real top lists: sorting happens before the limit on up to 1,000 matches per keyword, so "top 25 by points" is really the top 25.
  • Brand monitoring built in: onlyNew remembers delivered items, so a daily schedule returns only new mentions, and already-seen items are free.
  • Comments with context: each comment row carries the story title and ID it belongs to.
  • Search by site: find every story linking to github.com or your own domain, even without keywords.
  • Fair billing: one charge per saved item; duplicates, filtered items and status rows are free.

💡 Use cases

Apify Store use cases: Brand monitoring · Monitor news & content · Market research

  • Brand and competitor monitoring: get every new HN mention of your product in Slack every morning
  • Launch tracking: follow your Show HN post, its points and comment count
  • Developer marketing research: find the most discussed stories about a topic this week
  • Content and trend research: top stories by points for any keyword
  • AI agents: answer "what is Hacker News saying about X?" with sourced rows

🚀 How to use

  1. Enter keywords (one per line) and pick an item type (stories by default).
  2. Optional: limit by days, points, comments, domain or author, and pick a sort order.
  3. Turn on Only new items with a monitor name for scheduled runs, then run and open Overview, Mentions & text or Links & type.

⚙️ Input

FieldWhat it does
queriesKeywords or phrases, one search each (default example: AI agents). Can be empty when you set domains or authors, or pick Front page now.
itemTypestories (default), comments, storiesAndComments, showHn, askHn, frontPage, jobs.
domainsKeep only items linking to these sites.
authorsOnly items by these HN usernames.
postedWithinDaysLast N days, default 7; 0 = any date.
minPoints / minCommentsMinimum points and comments (stories).
sortBynewest (default), points, comments, relevance.
maxResultsMost items to save, default 50.
maxTextCharsCut text after N characters, default 2,000.
onlyNew / monitorKeyMonitor mode: return only items not delivered before under this name.

Example input:

{
"queries": [
"\"your product\"",
"yourcompany.com"
],
"itemType": "storiesAndComments",
"postedWithinDays": 2,
"onlyNew": true,
"monitorKey": "brand-mentions"
}

⬆️ Output

One row per story or comment. Empty results and API errors get a free row with recordType = status and the reason in summaryText. Every row has the same 21 keys in the same order; missing values are null. The example is a real row from a test run of the current build.

Overview fields:

FieldTypeExampleDescription
recordTypestring"story"story or comment; status for a source error or an empty result (free; reason in summaryText).
titlestring"Show HN: atl, a Rust CLI for Jira, Confluence and Bitbucket…Story title. Null for comments (see storyTitle).
pointsinteger1Story points (upvotes). Null for comments, which have no public points.
commentCountinteger0Number of comments on the story. Null for comments.
authorstring"racetozero"HN username of the poster.
createdAtstring"2026-11-15T19:06:04.000Z"When the item was posted (ISO 8601 UTC).
urlstring"https://news.ycombinator.com/item?id=50509662"Discussion page on news.ycombinator.com.
linkDomainstring"github.com"Domain of linkUrl without www.
matchedQuerystring"AI agents"The keyword (or domain) search that found the item.

All 21 fields (in order): recordType, title, points, commentCount, author, createdAt, url, linkUrl, linkDomain, storyType, itemId, storyId, storyTitle, parentId, ageHours, isOnFrontPage, text, textLength, matchedQuery, summaryText, scrapedAt.

Real row from a test run of the current build:

{
"recordType": "story",
"title": "Show HN: atl, a Rust CLI for Jira, Confluence and Bitbucket with ~15ms overhead",
"points": 1,
"commentCount": 0,
"author": "racetozero",
"createdAt": "2026-11-15T19:06:04.000Z",
"url": "https://news.ycombinator.com/item?id=50509662",
"linkUrl": "https://github.com/racetozero/atlassian-toolkit",
"linkDomain": "github.com",
"storyType": "show_hn",
"itemId": "50509662",
"storyId": "50509662",
"storyTitle": "Show HN: atl, a Rust CLI for Jira, Confluence and Bitbucket with ~15ms overhead",
"parentId": null,
"ageHours": 2,
"isOnFrontPage": false,
"text": "Hello HN,\n\nI built `atl`, a Rust CLI for Jira, Confluence, Bitbucket, Jira Service Management, Trello and Atlassian Admin. The same commands work on Cloud and Data Center (on-prem).\n\nIt's built for both people and AI agents: an --agent mode that outputs JSON and never prompts, a built-in MCP server ",
"textLength": 542,
"matchedQuery": "AI agents",
"summaryText": "\"Show HN: atl, a Rust CLI for Jira, Confluence and Bitbucket with ~15ms overhead\" by racetozero: 1 points, 0 comments, 2026-11-15 19:06 UTC, links to github.com.",
"scrapedAt": "2026-11-15T21:07:49.617Z"
}

Views: Overview, Mentions & text, Links & type, Detailed (all fields). Export as JSON, CSV, Excel, XML or HTML from the Storage tab or the API (/datasets/{id}/items?format=csv&view=overview). The run summary (OUTPUT record in the key-value store) counts requests, items read, duplicates, filtered, already-seen (monitor), over the cap and saved, plus the item type, sort and date window.

💰 Pricing

Competitive pricing, pay per result: $0.00026 per item on the Free plan, less on higher plans, plus the $0.0005 Actor start. The default run (50 stories) costs about $0.0135; a daily brand monitor with 5 new mentions costs about $0.054 a month. Duplicates, filtered, already-seen items and status rows are never charged.

EventWhat it isFreeBronzeSilverGold+
Hacker News itemOne Hacker News story or comment saved (title or text, points, comments, author, date, links). Duplicates, filtered, already-seen (monitor) items and status rows are free.$0.00026$0.00024$0.00022$0.0002
Actor startOnce per run (Apify standard start event, per GB of memory; the default 256 MB = one fee)$0.0005$0.0005$0.0005$0.0005

🔁 Integrations

Works with the Apify API, MCP (AI agents), Make, n8n, Zapier, Google Sheets and webhooks. Field names are stable camelCase, so mappings do not break between runs.

❓ FAQ

Where does the data come from?

From the official public Hacker News search API run by Algolia (hn.algolia.com), which indexes every HN story and comment. No login is needed and nothing is scraped from news.ycombinator.com pages.

How fresh is it?

New items usually appear within minutes. Points and comment counts are the values at the time of the run.

Can I search comments?

Yes. Pick comments or storiesAndComments. Comment rows include storyTitle and storyId so you know where the mention was made.

How does monitor mode work?

With Only new items on, the Actor remembers the IDs it delivered under your monitor name and skips them next time, before the limit and without charge. Use a different monitor name for each watch.

Why do comments have no points?

Hacker News does not publish comment scores, so points is null for comments.

Can I find stories that link to my site?

Yes. Put the domain in Domains. With no keywords, the domain itself is searched in story links, then filtered exactly (subdomains count).

What does Front page now return?

The stories on the HN front page at the time of the run, with isOnFrontPage set to true. Keyword, points and comment filters still apply; the date filter is ignored.

How many items can I get?

Each keyword reads up to 1,000 matches. Set maxResults for the total you want saved and charged.

Is it legal to use?

The Actor reads the public HN search API, which is offered for this purpose, and returns public posts. Follow HN guidelines and privacy law when you use usernames or text.

Is it good for AI agents and automations?

Yes. Inputs are small, rows are flat with a summaryText sentence, and monitor mode suits Make, n8n, Zapier and MCP agents on a schedule.

Ready-made examples

🛟 Support

Found a problem or need a field? Open an issue on the Issues tab; we read every issue.

Changelog

  • 1.0 (2026-11-15): first release.