HackerNews Scraper
Pricing
$5.00 / 1,000 post scrapeds
Go to Apify Store
HackerNews Scraper
Scrape Hacker News posts, stories, and comments. Extract titles, scores, authors, URLs, and discussion data from the front page, new, best, ask, show, and jobs sections.
Scrape posts, stories, and comments from Hacker News. Supports all main sections: front page (top), newest, best, Ask HN, Show HN, and jobs.
Features
- Scrape any HN section (top, new, best, ask, show, jobs)
- Optional top-level comment extraction
- Fast and lightweight — uses HN Firebase API
- Pay-per-event pricing (per post scraped)
Input
| Field | Type | Default | Description |
|---|---|---|---|
| section | string | news | HN section: news, newest, best, ask, show, jobs |
| maxItems | integer | 30 | Maximum posts to scrape (1-500) |
| includeComments | boolean | false | Scrape top-level comments |
| maxComments | integer | 10 | Max comments per post (1-100) |
| proxy | object | Apify proxy | Proxy configuration |
Output
Each post includes: id, title, author, score, numComments, type, url, hnUrl, text, createdAt, scrapedAt, and optionally comments[].
Cost
This actor uses pay-per-event pricing. You are charged per post scraped. Free users are limited to 15 posts per run.