If you need to scrape Hacker News stories without managing credentials, a Hacker News Scraper API built on the official public Firebase API is the simplest route: no API key, no login, no proxy. This guide shows how to collect new stories as structured JSON, control what a run costs, and stay honest about where incremental state ends. You will get story id, title, url, score, author and timestamp — and a repeatable monitoring workflow you can schedule.
Why monitor instead of re-scraping
Every time a scheduled scraper fetches a whole feed, it pays for rows it has already seen. On pay-per-event platforms that is not just wasted requests — it is wasted credits. I built a small Apify Actor to watch Hacker News incrementally and added a cost guard after reading the same complaint in several scraper reviews: "it devoured my credits, an early warning would have saved me."
Actor page: https://apify.com/daj8/hackernews-scraper-incremental
How to scrape Hacker News without an API key
The Hacker News Scraper API uses the official public Hacker News Firebase API, so there is nothing to register and no token to rotate. To try it:
- Open the Store page and click Try it.
- Start with
maxItems: 20so the first run finishes quickly. - Inspect the dataset, then schedule the Actor for the cadence you need.
Use Apify Scheduler for repeat runs. Connect the dataset to a webhook, Slack, email, a database or a BI tool. Each run writes LAST_RUN_SUMMARY to the key-value store with fetched and pushed counts — a cheap health signal.
Hacker News scraper fields
Each row from the Hacker News Scraper API is structured JSON:
-
id— the Hacker News story id -
title— story headline -
url— outbound link -
score— points -
by— submitting username -
time— publication timestamp
That is the honest field set. If you need full comment trees, user profiles or Algolia full-text search, this Actor is deliberately not that tool.
Pricing and cost control
Two input fields control what a run can spend:
-
maxChargeItems(1–500) caps the number of dataset writes per run. -
dryRun: truepreviews results without pushing or advancing the checkpoint.
When a run is truncated, only the highest story id that was actually pushed advances the watermark. The remaining stories stay eligible for the next run instead of being silently skipped.
The registry lists $0.0003 per item (pay-per-event). Check the Store page for the current price. Dry-run first, then raise maxChargeItems once you trust the output.
Honest limits of incremental state
Deduplication happens within a run. Cross-run checkpointing is not reliable on this account because each API run gets a fresh key-value store. If you need true incremental state across runs, configure a persistent KV store at the platform level and feed its high-water mark back as input.
FAQ
Do I need an API key to scrape Hacker News?
No. This Hacker News Scraper API reads the official public Firebase API — no API key, no login, no proxy.
Which Hacker News stories does it return?
New stories from the public feed, with id, title, url, score, author and timestamp. It is built for monitoring recent activity, not historical backfill or comment-tree analysis.
How do I avoid surprise charges?
Start with dryRun: true, set maxChargeItems to a small number, and check LAST_RUN_SUMMARY after each run before raising the cap.
Can I get comments or user profiles?
No. Those fields are outside the scope of this Actor; the output is story-level data only.
What I learned
A cheap scraper is not the same as a cheap monitor. The difference is whether truncation loses data and whether a runaway loop can spend your credits before you notice. Building the cap and the dry-run first, then the scraping logic, saved me from both problems.
If you want the source or want to tell me what fields you need next, the Actor page is the place: https://apify.com/daj8/hackernews-scraper-incremental
Top comments (0)