Hacker News Scraper — Stories, Comments & Job Posts avatar

Hacker News Scraper — Stories, Comments & Job Posts

Pricing

Pay per usage

Go to Apify Store
Hacker News Scraper — Stories, Comments & Job Posts

Hacker News Scraper — Stories, Comments & Job Posts

Scrape Hacker News top/new/ask/show/job stories with full comments using the official HN Firebase API. No API key, no rate limits, 100% reliable.

Pricing

Pay per usage

Rating

0.0

(0)

Developer

Niu Yuchiao

Niu Yuchiao

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

3 days ago

Last modified

Share

Export Hacker News stories, comments, and job listings using the official HN Firebase API — no API key, no scraping, 100% reliable and always up to date.

Why use this Actor?

  • ✅ Uses official HN Firebase API — zero scraping, never breaks
  • 🚀 No authentication required — works out of the box
  • 💬 Full comment threads — fetch nested comments with configurable depth
  • 🎯 Filter by score, age, and category
  • 📊 Clean structured JSON — ready for dashboards, AI analysis, or databases

Use Cases

  • Market research — what tech topics are trending right now?
  • AI training data — high-quality tech discussions for LLM fine-tuning
  • Job market monitoring — "Who is Hiring?" threads for recruitment
  • Content curation — automate HN digests to Slack, email, or Notion
  • Trend detection — track which technologies are gaining momentum

Input

{
"category": "top",
"maxItems": 100,
"includeComments": false,
"maxCommentDepth": 2,
"maxCommentsPerStory": 20,
"minScore": 50,
"sinceHours": 24
}
ParameterTypeDefaultDescription
categorystring"top"top, new, best, ask, show, job
maxItemsnumber100Maximum number of stories to fetch
includeCommentsbooleanfalseFetch full comment threads
maxCommentDepthnumber2How many reply levels to fetch
maxCommentsPerStorynumber20Max comments per story
minScorenumber0Skip stories below this score
sinceHoursnumber0Only fetch stories from the last N hours (0 = all)

Output

{
"id": 39862510,
"title": "Show HN: I built a tool that converts any website to Markdown",
"url": "https://example.com/tool",
"hnUrl": "https://news.ycombinator.com/item?id=39862510",
"score": 342,
"by": "username",
"time": "2025-01-01T12:00:00.000Z",
"commentCount": 87,
"type": "story",
"category": "top",
"comments": [
{
"id": 39862511,
"by": "commenter",
"text": "Really cool! How does it handle JavaScript-rendered sites?",
"time": "2025-01-01T12:05:00.000Z",
"depth": 0
}
]
}

Category Reference

CategoryDescription
topCurrent top stories (default HN front page)
newNewest submitted stories
bestAll-time best stories
askAsk HN posts
showShow HN posts
jobJob listings from YC-backed companies

Integration Examples

Slack Daily Digest

import json, requests
# Download Actor output
stories = [json.loads(line) for line in open("output.jsonl")]
top5 = sorted(stories, key=lambda x: x["score"], reverse=True)[:5]
blocks = [{"type": "section", "text": {"type": "mrkdwn",
"text": f"*<{s['url']}|{s['title']}>*\n{s['score']} pts · {s['commentCount']} comments"}}
for s in top5]
requests.post(SLACK_WEBHOOK, json={"blocks": blocks})

AI Trend Analysis

# Feed HN titles to an LLM for trend summarization
titles = [s["title"] for s in stories if s["score"] > 100]
prompt = f"Summarize the key tech trends from these Hacker News titles:\n" + "\n".join(titles)
# → Send to Claude, GPT-4, etc.

FAQ

Does this use official APIs? Yes. The HN Firebase API (hacker-news.firebaseio.com) is officially maintained by Y Combinator and free to use.

How current is the data? Real-time. The API returns live data, updated as stories are voted and commented on.

Can I fetch "Who is Hiring?" threads? Yes — use category: "job" for job listings. For monthly "Who is Hiring?" megathreads, search for the thread ID on HN and use articleUrls.