Hacker News Scraper - Posts, Points, Comment Count
Pricing
from $0.55 / 1,000 story or comments
Hacker News Scraper - Posts, Points, Comment Count
Hacker News scraper: search stories and comments by keyword, or read the front page, newest, Ask, Show, jobs and best. Filters by date, points and comments, up to 10,000 per search. Official HN APIs, so it never breaks. $1 per 1,000 stories and comments.
Pricing
from $0.55 / 1,000 story or comments
Rating
0.0
(0)
Developer
Khandji Omar
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
5 days ago
Last modified
Categories
Features
Share
Hacker News Scraper — Posts, Points, Comment Count
Search Hacker News for any keyword: stories and comments with title, URL, author, points, comment count and date. Reads the official Algolia HN API, so it never breaks on layout changes. Export to JSON, CSV or Excel, or call it as an API. For tech research and brand mentions.
Price: $1 per 1,000 stories and comments ($0.001 per story or comment). The first 10 results of every run are free.
100% first-party. Reads the official Hacker News (Algolia) search API directly — no third-party scraper in the middle, nothing that can break on a layout change. $1 per 1,000 results, first 10 of every run free.
In short: what you give, what you get, what it costs
| You give | Keywords, with optional dates and minimum points |
| We do | Search the official Hacker News (Algolia) API |
| You get | One row per story or comment: title, link, author, points, comment count, date, text and the Hacker News link |
| It costs | $1 per 1,000 stories and comments, no start fee. From 16 November 2026: +$0.001 per run. Optional scheduled monitoring: +$0.002 per check (one-off runs never pay it). The first 10 results of every run are free. No supplier fee |
| It does not | Sign in, vote or post |
A real result row is shown further down this page.
Free tier — 10 results free on every run
The first 10 results of every run are free, on every run you ever make — not a one-off trial. Run it on your own subjects and see the real output before you are billed for a single result.
One guard: the free allowance never covers more than half of a run, so a run returning 6 results gets 3 free. That keeps the offer sustainable.
What it does
Run it once and get the full, current data as clean rows you can export to JSON, CSV or Excel, or pull through the API. Need only fresh data? Turn on monitorEnabled and schedule it: every later run returns only what is new or changed since the previous one, so you never re-download or re-pay for the same rows.
Compared with gentle_cloud/hacker-news-scraper
Read on the Store on 2026-10-23 (Hacker News Scraper). Where it does better, this section says so.
- Built on the site's own data, not a resold scraper: no second Actor between you and the source.
- Free results on every run and a hard cost cap (
maxTotalChargeUsd). - Price: $1 per 1,000 here, $0.2 there.
Why this scraper
- Try before you pay. The first 10 results of every run are free, on every run.
- Pay only for data delivered. Failed sources and failed inputs are never billed.
- Hard cost cap. Set
maxTotalChargeUsdand a run can never cost more than you allow. - Only-new mode. With
monitorEnabledon a schedule, you get just the new or changed rows, plus a spike signal when volume suddenly jumps. - Clean, normalized rows with the same field names every run, plus a
RUN_SUMMARY.json— ready for spreadsheets, databases, n8n/Make/Zapier and AI agents (MCP).
Example input
{"keywords": ["your product","competitor name"],"maxTotalChargeUsd": 1.0}
This returns the full current data right away. To receive only what is new on a schedule, add "monitorEnabled": true: the first monitored run stores a free baseline, later runs return only new or changed rows. Pin a monitorId to keep separate targets from sharing state.
All input fields
Beyond keywords, these fields are optional:
| Field | What it does |
|---|---|
sections | Whole sections: front, newest, ask, show, jobs, best. Works with or without keywords. |
maxStories | Results per keyword or section, 1 to 10,000. Default 100. |
contentType | all (default), stories or comments. |
sortBy | date (default) or popularity (at most 1,000 results). |
dateFrom / dateTo | Date range, YYYY-MM-DD. |
minPoints / minComments | Keep only stories above these numbers. |
Every row also has type (story, comment or job), section, domain and rank_in_list.
currentItems(Bring your own items (optional)) — Skip the chained fetch and pass records directly (no upstream call, no fetch fee).
Output
Each row is one Hacker News story or comment. A real row from a run on Apify (long texts are cut here and people's names hidden; your dataset has them in full):
A real row from this Actor's latest run on Apify (2026-10-24; long texts are cut and people's names hidden here, your dataset has them in full):
{"record_id": "50225165","query_id": "your product","title": "Show HN: Claude Code(and others) embedded in your app","url": "https://github.com/gtanczyk/genaicode","text": "I started this project in 2024 when I got fascinated with LLMs, and what I did was a coding agent (CLI -> interactive -> GUI). I al...","author": "(hidden here)","published_at": "2026-10-24T20:54:27Z","score": 1,"points": 1,"num_comments": 0,"story_id": "50225165","hn_url": "https://news.ycombinator.com/item?id=50225165","type": "story","domain": "github.com","created_at_i": 1792875267,"rank_in_list": 25,"extra_num_comments": 0}
| Field | What it holds |
|---|---|
title | story title |
type | story or comment |
points | points |
num_comments | comments |
author | HN username |
published_at | post time |
text | comment or story text |
url | link the story points to |
hn_url | discussion on Hacker News |
Each row also keeps the other fields the source returns, so you get everything above and more. In the Output tab, the Overview table shows these columns, readable without any code; export them as CSV, Excel, JSON or HTML.
How you're charged
- Story or comment — $0.001 per story or comment ($1 per 1,000), billed for each story or comment delivered to your dataset. With scheduled monitoring on, only stories and comments that are new since the last check are delivered and billed.
- Scheduled monitoring check ($0.002) — only when you turn on scheduled monitoring (
monitorEnabled), once per target per run, and only when the source responded. One-off runs never pay it: you pay only per result. - A quiet monitored run bills only the source check ($0.002), never the result price.
Related tools
- Looking for Q&A-style developer discussion instead of link/comment threads? → Stack Overflow Scraper - Questions, Answers, Vote Count
How to use it in 3 steps
- Click Try for free and fill in Search keywords (
keywords). - Optional: adjust the other fields; every one has a description and a sensible default.
- Click Start and download the results as JSON, CSV or Excel, or read them from the API.
Use cases
- Tech research
- Brand mentions
Use it from code (API)
Every Apify Actor is an API. Start a run and read the results with one call.
Python
from apify_client import ApifyClientclient = ApifyClient("<YOUR_APIFY_TOKEN>")run = client.actor("om_kh/hacker-news-scraper").call(run_input={"keywords": ["your product", "competitor name"]})for item in client.dataset(run["defaultDatasetId"]).iterate_items():print(item)
JavaScript
import { ApifyClient } from 'apify-client';const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });const run = await client.actor('om_kh/hacker-news-scraper').call({"keywords": ["your product","competitor name"]});const { items } = await client.dataset(run.defaultDatasetId).listItems();console.log(items);
One HTTP call (cURL) — runs the Actor and returns the dataset in the same response:
curl -X POST "https://api.apify.com/v2/acts/om_kh~hacker-news-scraper/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>" \-H "Content-Type: application/json" \-d '{"keywords": ["your product", "competitor name"]}'
Integrations: n8n, Make, Zapier, Google Sheets
- n8n — the official Apify node, operation Run Actor and get dataset, Actor
om_kh/hacker-news-scraper. - Make — Apify › Run an Actor, then Apify › Get Dataset Items.
- Zapier — Apify › Run Actor; map the dataset items into your next step.
- Google Sheets, webhooks, Slack — add an integration from the Integrations tab of this Actor.
- Schedules — run it every hour or day from Schedules in Apify Console.
Use it from an AI agent (MCP and x402)
Connect Claude Desktop, Cursor, VS Code or any MCP client to Apify's MCP server
at https://mcp.apify.com and add this Actor, om_kh/hacker-news-scraper, as a tool — the
agent passes the same JSON as the run input and gets the dataset back.
AI agents that pay with x402 can run it too, without an Apify account: the Actor charges only per result delivered, so an agent pays exactly for what it gets.
FAQ
Is it legal to scrape Hacker News? This Actor collects only publicly available Hacker News data and never logs in. You are responsible for how you use it; check Hacker News's terms and your local law (GDPR, CCPA) if you store personal data, and ask a lawyer if unsure.
Do I need an account, cookies or an API key? No. You only need an Apify account to run it.
What data do I get? Matching stories and comments with points, comment count, author and date. Download it as JSON, CSV, Excel, HTML or XML, or read it from the API.
Am I charged when something fails? No. An input that fails is listed with its reason in the run summary and is never charged.
Can I run it on a schedule? Yes. Create a schedule in Apify Console (hourly, daily, weekly) and connect webhooks, Google Sheets, Slack, n8n, Make or Zapier.
Can I use it from Python, JavaScript or an AI agent?
Yes: see the code samples above, or connect AI agents through MCP with the hackernews_search tool.
Your feedback
Did this Actor save you time? A short review on the Reviews tab helps other people find it, and every review is read. Something missing or broken? Open an issue on the Issues tab: it is answered and fixed fast.
More Actors from the same author
- Stack Overflow Scraper - Questions, Answers, Vote Count
- Yelp Reviews Scraper - Ratings, Text, Reviewer Name
- App Store & Google Play Reviews Scraper - Ratings
- Quora Scraper - Questions, Answers, Views by Keyword
Support
Found a bug or have a feature request? Use the Issues tab on this Actor's Apify Store page, or message the author (om_kh) directly through Apify — every report gets a reply.