Hacker News Scraper — Top, New, Best, Ask, Show Stories avatar

Hacker News Scraper — Top, New, Best, Ask, Show Stories

Pricing

Pay per usage

Go to Apify Store
Hacker News Scraper — Top, New, Best, Ask, Show Stories

Hacker News Scraper — Top, New, Best, Ask, Show Stories

Scrape Hacker News stories by mode (top/new/best/ask/show). Uses the official HN Firebase API — no key required. Outputs title, URL, author, score, comment count, and optional top comments. PPE $0.002/item.

Pricing

Pay per usage

Rating

0.0

(0)

Developer

Hojun Lee

Hojun Lee

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Share

Hacker News Scraper

Scrape Hacker News stories using the official HN Firebase API. No API key required. Supports top, new, best, Ask HN, and Show HN story feeds.

Features

  • 5 story feeds: top, new, best, ask, show
  • Optional comments: fetch top-level comments per story
  • Score filter: skip low-score stories
  • Fast parallel fetching: up to 10 concurrent requests
  • PPE pricing: pay only for what you scrape

Input

ParameterTypeDefaultDescription
modestringtopStory feed: top, new, best, ask, show
maxItemsinteger30Max stories to scrape (max: 500)
includeCommentsbooleanfalseFetch top comments per story
maxCommentsinteger10Max top-level comments per story
minScoreinteger0Minimum score filter (0 = disabled)

Example Input

{
"mode": "top",
"maxItems": 50,
"includeComments": true,
"maxComments": 5,
"minScore": 100
}

Output

Each story produces a dataset record:

{
"id": 12345,
"type": "story",
"title": "Show HN: I built a tool to ...",
"url": "https://example.com/article",
"hn_url": "https://news.ycombinator.com/item?id=12345",
"author": "pg",
"score": 500,
"comments_count": 142,
"created_at": "2026-09-01T10:00:00+00:00",
"text": null,
"top_comments": [
{
"id": 12346,
"author": "dang",
"text": "Great post!",
"created_at": "2026-09-01T10:05:00+00:00"
}
]
}

Pricing (PPE)

EventPrice
Actor start$0.005
Per story scraped$0.002

Example: 100 stories = $0.005 + (100 × $0.002) = $0.205

API

This actor uses the official Hacker News Firebase REST API:

  • Base: https://hacker-news.firebaseio.com/v0/
  • No authentication required
  • No rate limits (per HN guidelines)

Keywords

Hacker News scraper, HN API, Y Combinator news, HN stories, tech news scraper, Ask HN, Show HN, Firebase API, developer news