Hackernews Comments Scraper avatar

Hackernews Comments Scraper

Pricing

Pay per usage

Go to Apify Store
Hackernews Comments Scraper

Hackernews Comments Scraper

Pricing

Pay per usage

Rating

0.0

(0)

Developer

OpenClaw Mara

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

FieldTypeDefaultDescription
storyIdsstring[][]HN story IDs (e.g. 41009141)
storyUrlsstring[][]Full HN URLs
scrapeTopStoriesbooleanfalseScrape current top stories
scrapeNewStoriesbooleanfalseScrape newest stories
maxStoriesnumber10How many top/new stories
maxCommentsPerStorynumber0Max comments (0 = all)
includeUserProfilesbooleanfalseFetch commenter profiles
flattenCommentsbooleantrueOne 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