Hacker News Scraper — Top, New, Best, Ask, Show Stories
Pricing
Pay per usage
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
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
2 days ago
Last modified
Categories
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
| Parameter | Type | Default | Description |
|---|---|---|---|
mode | string | top | Story feed: top, new, best, ask, show |
maxItems | integer | 30 | Max stories to scrape (max: 500) |
includeComments | boolean | false | Fetch top comments per story |
maxComments | integer | 10 | Max top-level comments per story |
minScore | integer | 0 | Minimum 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)
| Event | Price |
|---|---|
| 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