Hacker News Scraper - Top, New & Best Stories avatar

Hacker News Scraper - Top, New & Best Stories

Pricing

from $0.15 / 1,000 hacker news stories

Go to Apify Store
Hacker News Scraper - Top, New & Best 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

Lantern Lab

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

11 days ago

Last modified

Categories

Features

Limited permissions

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
}
FieldDefaultMeaning
modetopOne of top, new, best, ask, show, job.
maxItems30Upper bound on story rows for the run.
maxUpstreamRequestsderivedHard ceiling on HTTP attempts. Derived as maxItems + 2 when left empty.
proxyConfigurationDirect (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-start PPE event is an explicit Actor.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.
  • ask and job stories may have text instead of an external url; the row keeps the HN discussion link either way.

Local checks

npm install --package-lock=false --ignore-scripts --no-audit --no-fund
npm test