VOOZH about

URL: https://apify.com/nogards95/hacker-news-scraper

โ‡ฑ Hacker News Scraper โ€” Stories, Comments, Jobs & Ask/Show HN ยท Apify


Pricing

from $1.50 / 1,000 results

Go to Apify Store

Scrape Hacker News stories, comments, jobs, Ask HN, and Show HN using Algolia Search API and HN Firebase API. Supports full-text search, date/points filters, and live feeds.

Pricing

from $1.50 / 1,000 results

Rating

5.0

(1)

Developer

๐Ÿ‘ Nogards

Nogards

Maintained by Community

Actor stats

1

Bookmarked

2

Total users

1

Monthly active users

14 days ago

Last modified

Share

Hacker News Scraper โ€” Stories, Comments & Jobs

Extract stories, comments, jobs, Ask HN, and Show HN from Hacker News. Filter by keyword, date, points, and author. Fetch entire comment threads. No browser, no proxies, no auth needed.


Who is this for?

  • Developers & researchers tracking tech trends, AI news, or startup discussions
  • Recruiters extracting job listings from monthly "Who is Hiring" threads
  • Marketers monitoring Show HN launches and community sentiment
  • Data analysts building HN datasets for LLMs, RAG pipelines, or dashboards
  • Anyone who wants to schedule automatic HN monitoring without writing code

Why this scraper?

  • 128 MB memory, 2โ€“30 sec per run โ€” smallest Apify tier, lowest cost possible
  • No browser, no proxies โ€” uses Algolia Search API + HN Firebase API directly
  • Full comment threads โ€” fetch every comment for any story with one toggle
  • Dual mode โ€” full-text search (Algolia) or live feeds (Firebase top/new/best)
  • Clean output โ€” HTML stripped, hnUrl always present, domain extracted

Input

FieldTypeDefaultDescription
modesearch / feedsearchSearch via Algolia or fetch a live Firebase feed
querystringโ€”Keyword to search (required for mode=search)
typestory / comment / ask_hn / show_hn / job / allstoryContent type
sortByrelevance / daterelevanceSort order
feedTypetop / new / best / ask / show / jobtopFeed type (only for mode=feed)
maxItemsinteger100Maximum results (1โ€“1000)
minPointsintegerโ€”Minimum story points filter
minCommentsintegerโ€”Minimum comment count filter
dateFromstringโ€”Filter after this date (ISO format, e.g. 2024-01-01)
dateTostringโ€”Filter before this date
authorstringโ€”Filter by HN username
storyIdstringโ€”Fetch all comments for a specific story by ID
includeCommentsbooleanfalseAlso fetch all comments for each story found

Output

Story

{
"id":"39930210",
"type":"story",
"title":"Show HN: I built a HN scraper",
"url":"https://github.com/example/hn-scraper",
"hnUrl":"https://news.ycombinator.com/item?id=39930210",
"domain":"github.com",
"author":"pg",
"points":342,
"commentCount":87,
"tags":["story","author_pg"],
"publishedAt":"2024-03-15T10:30:00.000Z",
"scrapedAt":"2026-05-25T12:00:00.000Z"
}

Comment

{
"id":"39930300",
"type":"comment",
"text":"Great work! How do you handle rate limits?",
"author":"dang",
"storyId":"39930210",
"storyTitle":"Show HN: I built a HN scraper",
"hnUrl":"https://news.ycombinator.com/item?id=39930300",
"publishedAt":"2024-03-15T11:00:00.000Z",
"scrapedAt":"2026-05-25T12:00:00.000Z"
}

Export in JSON, CSV, Excel, XML directly from Apify Console.


Example use cases

Get today's top 30 stories:

{"mode":"feed","feedType":"top","maxItems":30}

Track AI stories with 100+ points this month:

{
"mode":"search",
"query":"artificial intelligence",
"type":"story",
"sortBy":"date",
"minPoints":100,
"dateFrom":"2024-06-01",
"maxItems":50
}

Extract all comments from a specific story (great for LLM input):

{"storyId":"39930210","type":"comment","maxItems":1000}

Scrape the monthly "Who is Hiring" thread:

{
"mode":"search",
"query":"ask hn who is hiring",
"type":"ask_hn",
"sortBy":"date",
"maxItems":5
}

Monitor all new Show HN launches:

{"mode":"feed","feedType":"show","maxItems":50}

Get all stories + their comments in one run:

{
"mode":"search",
"query":"rust programming",
"type":"story",
"minPoints":50,
"maxItems":20,
"includeComments":true
}

Schedule daily monitoring

Run this actor on a schedule to track any HN topic automatically.

  1. Open the actor and click Schedule
  2. Set frequency (daily, weekly, or custom cron)
  3. Results accumulate in your dataset โ€” ready to export or pipe into your app

No code required.


APIs used

APIUse caseAuth
Algolia HN SearchSearch, filtering, comment threadsNone
HN Firebase APILive feeds (top/new/best/ask/show/job)None

Support

Found a bug or need a feature? Open an issue and I'll get back to you quickly.

You might also like

Hacker News Search Scraper Stories, Comments, Show HN, Ask HN

seemuapps/hn-search-scraper

Search Hacker News stories, comments, Show HN, Ask HN, polls, and jobs by keyword, author, date range, points, and comment count. Full text and engagement metrics. No login.

Hacker News MCP Server

automation-lab/hackernews-mcp-server

Query Hacker News data programmatically: search stories, get top posts, Ask HN, Show HN, jobs, comments, and user profiles via the free HN Algolia API.

๐Ÿ‘ User avatar

Stas Persiianenko

3

Hacker News Scraper

plantane/hackernews-scraper

Scrape stories, comments, and scores from Hacker News. Supports top, new, best, Ask HN, Show HN, and job feeds. Uses the official Firebase API for reliable, fast data extraction.

Hacker News Scraper

dami_studio/hacker-news-scraper

Scrape Hacker News via the public Algolia HN Search API. Search stories, Show HN, Ask HN or comments by keyword, sort by relevance or date, filter by minimum points. Clean JSON output with title, URL, author, points, comments and HN item link. No key.

1

Hacker News API Scraper

logiover/hacker-news-search-scraper

Hacker News scraper & HN API alternative. Scrape stories, comments, Ask HN & Show HN without login; export to CSV/JSON. No key, no proxy.

Hacker News Scraper

rupom888/hackernews-scraper

Scrape stories, jobs, comments, and polls from Hacker News using the official HN Firebase API. Get top/new/best/ask/show stories with comments, search by keyword via Algolia HN Search API. Reliable and no rate limiting.

Hacker News Enhanced Scraper - Stories, Comments & Search

hata1234/hn-scraper

Scrape Hacker News stories, comments, and search results via official Firebase and Algolia APIs. No proxy needed. Supports top, best, new, Ask HN, Show HN, job stories, full-text search, comment extraction, and advanced filtering by points, date, and domain.