Hacker News Stories & Comments Scraper avatar

Hacker News Stories & Comments Scraper

Pricing

from $2.49 / 1,000 results

Go to Apify Store
Hacker News Stories & Comments Scraper

Hacker News Stories & Comments Scraper

Hacker News Scraper SD - Hacker News Scraper is a news data tool that extracts Hacker News stories and comments from the front page, new, best, Ask HN, Show HN, jobs and Who is hiring threads, plus full-text search and comment trees via the official APIs.

Pricing

from $2.49 / 1,000 results

Rating

0.0

(0)

Developer

Neuro Scraper

Neuro Scraper

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

15 days ago

Last modified

Share

Hacker News Scraper — stories, comments, front page and job posts

Hacker News Scraper collects Hacker News stories and comments through the two official public APIs: the HN Firebase API run by Y Combinator, and the Algolia HN Search API. It needs no account and no key, and it never loads the news.ycombinator.com pages.

It does four things, in any mix:

  • Lists → the live front page (top), new, best, Ask HN, Show HN and YC job posts, in Hacker News' own order (rank).
  • Who is hiring? → the top-level job posts of the latest monthly "Ask HN: Who is hiring?" thread.
  • Search → full-text search of stories, comments or both, by relevance or newest first, with date and points filters.
  • Story links → one story (or comment) with its whole comment tree, each comment with its depth.

Input

FieldTypeDefaultMeaning
listsmulti-selecttop (prefill)top, new, best, ask, show, job, whoishiring
searchTermslist–Search terms, one per line
searchTypeselectstoryStories, comments, or stories + comments + polls
searchSortselectrelevanceRelevance (max 1,000 results) or newest first (no cap)
fuzzyMatchingbooleanfalseAlgolia typo tolerance; off gives complete, stable results
dateFrom, dateToYYYY-MM-DD–Optional date window for searches
minPointsinteger–Optional minimum points (stories only)
storyUrlslist–https://news.ycombinator.com/item?id=... links or ids → item + comment tree
maxResultsinteger30Rows per list, search term or story link
maxItemsinteger–Optional cap on the whole run
proxyConfigurationproxyoffNot needed for the official APIs

Output (one row per story or comment)

FieldMeaning
typestory, comment, job or poll
id, hnUrlHacker News item id and link
title, url, domainStory title, linked URL and its site
textComment text, Ask HN / job text, as plain text (links kept)
author, points, commentCount, createdAtAuthor, score, number of comments, post time (UTC)
storyId, storyTitle, parentIdFor comments: the story and the parent item
depthStory links: 0 = the item, 1 = top-level comment, ...; Who is hiring: 1
rankLists: position in the live list (1 = top of the front page)
source, sourceInput, scrapedAtlist / whoishiring / search / item, your input, UTC time

Measured limits (2026-10-03, local runs)

  • Lists hold what Hacker News publishes: top 500, new 500, best 200, Ask HN 17, Show HN 148, jobs 31 ids at the time of testing.
  • List items are read 50 at a time from Algolia (points and comment counts matched Firebase exactly in our check); items Algolia does not have yet, and all job posts, come from Firebase one by one.
  • Relevance search stops at 1,000 results (Algolia's limit). Newest-first search walks back in time and has no cap: 1,500 results in 32 seconds in our test.
  • With fuzzy matching on, Algolia answers filtered searches non-exhaustively: the same query returned between 52 and 175 stories on repeated calls. Exact-word matching (the default) returned the same 50 every time.
  • Deleted and dead comments are not in the comment tree.
  • Speed: 781 rows (three lists + a 250-result search) in 51 seconds, about one request per second.

Example

{"lists": ["top", "whoishiring"], "searchTerms": ["web scraping"], "searchSort": "date", "maxResults": 100}

Hacker News content is written by its users: keep the author and hnUrl for attribution.