Hackernews Comments Scraper
Pricing
Pay per usage
Go to Apify Store

Hackernews Comments Scraper
Pricing
Pay per usage
Rating
0.0
(0)
Developer
OpenClaw Mara
Maintained by Community
Actor stats
0
Bookmarked
2
Total users
1
Monthly active users
3 minutes ago
Last modified
Categories
Share
Hacker News Comments & Threads Scraper
Extract comments, threads, and user profiles from Hacker News using the official Firebase API. No authentication needed, no rate limits.
Features
- π¬ Full comment threads β all comments with nested replies, depth tracking
- π Flat or nested output β choose flat (one row per comment, great for analysis) or nested tree structure
- π₯ Top & New stories β automatically scrape current front page or newest stories
- π€ User profiles β optionally fetch karma, account age, and bio for each commenter
- π URL or ID input β paste HN URLs directly or use numeric story IDs
- β‘ Official API β uses HN's Firebase API, no scraping/blocking issues
- π§Ή Clean text β HTML tags stripped, entities decoded
Input
| Field | Type | Default | Description |
|---|---|---|---|
storyIds | string[] | [] | HN story IDs (e.g. 41009141) |
storyUrls | string[] | [] | Full HN URLs |
scrapeTopStories | boolean | false | Scrape current top stories |
scrapeNewStories | boolean | false | Scrape newest stories |
maxStories | number | 10 | How many top/new stories |
maxCommentsPerStory | number | 0 | Max comments (0 = all) |
includeUserProfiles | boolean | false | Fetch commenter profiles |
flattenComments | boolean | true | One row per comment |
Example Input
{"storyUrls": ["https://news.ycombinator.com/item?id=41009141"],"scrapeTopStories": true,"maxStories": 5,"maxCommentsPerStory": 100,"flattenComments": true}
Output (flat mode)
Story items:
{"type": "story","id": 41009141,"title": "Show HN: ...","url": "https://example.com","by": "pg","score": 342,"descendants": 156}
Comment items:
{"type": "comment","storyId": 41009141,"storyTitle": "Show HN: ...","id": 41009500,"by": "commenter","text": "This is really interesting because...","date": "2026-03-30T12:00:00.000Z","depth": 0,"childCount": 3}
Use Cases
- Sentiment analysis β analyze community reactions to launches, technologies, companies
- Market research β track what developers and tech leaders discuss
- Content mining β find popular topics, recurring themes, expert opinions
- Competitive intelligence β monitor mentions of your product or competitors
- Academic research β study online discussion patterns and community dynamics
- Lead generation β find engaged users discussing relevant topics
Technical Details
- Uses HN's official Firebase API (
hacker-news.firebaseio.com/v0) - No authentication required, no CAPTCHA, no blocking
- Polite rate limiting (50ms between requests)
- Automatic retries with backoff on transient errors
- HTML entity decoding and tag stripping for clean text output