Hacker News Scraper - Top, New & Best Stories
Pricing
from $0.15 / 1,000 hacker news stories
Hacker News Scraper - Top, New & Best Stories
Hacker News stories by feed: one row per story with title, URL, domain, score, author, comment count, publish time and HN link. A feed that cannot be read is reported with its status and is not charged.
Pricing
from $0.15 / 1,000 hacker news stories
Rating
0.0
(0)
Developer
Lantern Lab
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
11 days ago
Last modified
Categories
Features
Share
Hacker News Scraper
Read a Hacker News feed and get one row per story: title, URL, domain, score, author, comment count, publish time and the HN discussion link.
This Actor is a candidate build. Pricing and publication are set on the Actor record.
Input
{"mode": "top","maxItems": 30}
| Field | Default | Meaning |
|---|---|---|
mode | top | One of top, new, best, ask, show, job. |
maxItems | 30 | Upper bound on story rows for the run. |
maxUpstreamRequests | derived | Hard ceiling on HTTP attempts. Derived as maxItems + 2 when left empty. |
proxyConfiguration | Direct (Apify Proxy off) | Default is no Apify Proxy. RESIDENTIAL / UNBLOCKER / GOOGLE_SERP are rejected. Your own proxyUrls are allowed. |
Output
One dataset row per story (recordType: "story"):
{"recordType": "story","id": 50447074,"type": "story","title": "After 7 months, Glasswing overwhelms maintainers with underwhelming findings","url": "https://example.com/article","domain": "example.com","text": null,"by": "author","time": "2026-11-11T00:00:00.000Z","score": 123,"descendants": 45,"dead": false,"deleted": false,"hnUrl": "https://news.ycombinator.com/item?id=50447074","rank": 1,"partial": false,"partialReason": null,"collectedAt": "2026-11-11T00:00:00.000Z"}
A deleted or dead item gets a free story_status row. A request that fails gets a story_status row with a partialReason and is not charged. Priced events: one run-start per run (fixed USD, charged via Actor.charge, not proxy/GB) plus each story row. Status rows are free.
Notes
- Default is no Apify Proxy: firebaseio.com works directly; enabling Apify Proxy only increased compute cost in measurement. RESIDENTIAL / UNBLOCKER / GOOGLE_SERP are rejected.
- The optional
run-startPPE event is an explicitActor.charge({ eventName: "run-start" })once per run — a flat fee, not a synthetic GB meter. - Uses the public Hacker News Firebase API; no key is needed.
askandjobstories may havetextinstead of an externalurl; the row keeps the HN discussion link either way.
Local checks
npm install --package-lock=false --ignore-scripts --no-audit --no-fundnpm test