Hacker News Story & Comment Scraper avatar

Hacker News Story & Comment Scraper

Pricing

Pay per usage

Go to Apify Store
Hacker News Story & Comment Scraper

Hacker News Story & Comment Scraper

Scrape Hacker News top/new/best stories with points, comments, author info, and timestamps. Monitor tech trends, startup news, and developer discussions. Uses official Firebase API for reliable data.

Pricing

Pay per usage

Rating

0.0

(0)

Developer

陈俊杰

陈俊杰

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Share

Hacker News Scraper — Apify Actor

Extract stories from Hacker News with filtering by points and keywords.

Features

  • Fetch top, new, or best stories
  • Filter by minimum points score
  • Filter by keywords in story titles (comma-separated)
  • Structured output: title, URL, points, author, comment count, timestamp
  • Uses official Firebase API — no scraping, no blocks

Input

FieldTypeDefaultDescription
storyTypeenumtopStory feed: top / new / best
limitint30Max stories to fetch (≤100)
minPointsint0Minimum upvotes filter
keywordsstringComma-separated keywords (e.g. AI,Python,YC)

Output (one row per story)

{
"id": 43254321,
"title": "Show HN: Example Project",
"url": "https://example.com",
"author": "username",
"points": 342,
"comment_count": 87,
"hn_url": "https://news.ycombinator.com/item?id=43254321",
"type": "story",
"time": 1748217600
}

Use Cases

  • 📰 Tech trend monitoring — what's trending on HN right now
  • 🏢 Startup intelligence — track Show HN launches
  • 🤖 AI training data — collect curated tech news content
  • 📊 Competitive analysis — monitor developer sentiment

Example

# CLI via Apify API
curl -X POST "https://api.apify.com/v2/acts/wsgcjj~hacker-news-scraper/runs" \
-H "Content-Type: application/json" \
-d '{"storyType":"top","limit":10,"minPoints":100,"keywords":"AI,LLM"}'

Limits

  • 100 stories max per run (Firebase API limit)
  • Free API — no API key or proxy needed