Hacker News Scraper — Stories, Comments, Ask/Show HN
Pricing
from $0.004 / item scraped
Hacker News Scraper — Stories, Comments, Ask/Show HN
Scrape Hacker News stories, comments, Ask HN, Show HN, jobs and polls by keyword, points, comments and date range. Sort by relevance or newest. Title, URL, author, points, comment count, text and HN link. Fast clean HTTP via the HN Algolia API, no key.
Pricing
from $0.004 / item scraped
Rating
0.0
(0)
Developer
hiper soft
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
0
Monthly active users
5 days ago
Last modified
Categories
Share
Hacker News Scraper — Stories, Comments & Ask/Show HN, No Key, Clean JSON
Scrape Hacker News by keyword and filters and get back clean, structured JSON — title, URL, author, points, comment count, text, timestamps and the HN item link. Fetch stories, comments, Ask HN, Show HN, jobs, polls or the front page, filtered by points, comments and date range, sorted by relevance or newest. It runs on the public HN Algolia API over fast, plain HTTP. No account, no API key. Built for researchers, trend trackers and anyone mining HN discussion at scale.
Features
- 🗂️ Every content type —
tagsselects Stories, Comments, Ask HN, Show HN, Polls, Jobs or Front page. - 🔎 Keyword or filter-only — set a
query, or leave it empty and list purely by tag and filters. - 📊 Threshold filters —
minPointsandminCommentskeep only items that cleared a bar. - 📅 Date range —
dateFromanddateTo(ISO orYYYY-MM-DD) scope results to a window. - 🔀 Sort your way —
sortBytoggles relevance (best match) or date (newest first). - 🧹 Clean text — HTML and entities in story/comment bodies are stripped and decoded into readable
text. - ⚡ Fast, keyless HTTP — paginates the HN Algolia API automatically, up to
maxItems.
What you get
Every item becomes one clean JSON record:
{"type": "story","id": "40912345","title": "Show HN: I built a Rust-based log parser","url": "https://example.com/rust-log-parser","author": "pg_user","points": 284,"numComments": 96,"text": null,"storyId": null,"parentId": null,"createdAt": "2026-07-20T15:04:00.000Z","hnUrl": "https://news.ycombinator.com/item?id=40912345","tags": ["story", "show_hn"]}
Input
{"query": "rust","tags": "story","sortBy": "date","minPoints": 50,"minComments": 10,"maxItems": 200}
| Field | Description |
|---|---|
query | Keyword to search. Leave empty to list by tag/filters only (e.g. all front-page stories). |
tags | What to fetch: Stories, Comments, Ask HN, Show HN, Polls, Jobs or Front page. |
sortBy | Relevance (best match) or date (newest first). |
minPoints / minComments | Only items with at least this many points / comments. |
dateFrom / dateTo | ISO date or YYYY-MM-DD lower / upper bound. |
maxItems | Max items to return. |
Use cases
- Track how a topic (a framework, a company, a trend) is discussed on HN over time.
- Pull all high-scoring Show HN or Ask HN posts in a date range for a newsletter.
- Mine top comments on a story for sentiment or research.
- Build a dataset of front-page stories with points and comment counts.
Pricing
Pay-per-event: you're billed a small amount per run and per item scraped — you only pay for what you get. See the Pricing tab for current rates.
FAQ
Do I need a Hacker News account or API key? No. The actor runs on the public Hacker News Algolia Search API over plain HTTP — no account, login or API key.
How many items can I scrape per run?
As many as you set with maxItems. The actor paginates the Algolia API automatically until it reaches your limit.
What content types can I fetch?
Use tags to select Stories, Comments, Ask HN, Show HN, Polls, Jobs or the Front page. Leave query empty to list purely by tag and filters.
What's the output format?
Structured JSON — one record per item with type, title, url, author, points, numComments, cleaned text, timestamps, tags and the hnUrl item link. Export as JSON, CSV, Excel or via the API.
Can I filter by points, comments or date?
Yes. Use minPoints and minComments for thresholds, dateFrom / dateTo (ISO or YYYY-MM-DD) for a window, and sortBy to switch between relevance and newest-first.
Related Actors
Tracking developer discussion and trends? Combine this with our other developer-data scrapers:
- Stack Overflow & Stack Exchange Scraper — questions by tag or search across Stack Exchange sites.
- GitHub Scraper — repositories and user profiles with stars, topics, licenses and leads.
- Wikipedia Scraper — full article text, summaries and pageviews in any language.
- npm Package Scraper — search and look up npm packages with metadata, dependencies and downloads.
Notes
This Actor uses the public Hacker News Algolia Search API. It is an independent tool and is not affiliated with, endorsed by, or sponsored by Y Combinator or Algolia; "Hacker News" is a trademark of its respective owner.