Hacker News Tech Stories Scraper
Pricing
from $2.99 / 1,000 technology stories
Hacker News Tech Stories Scraper
Extracts public technology-focused Hacker News stories from Algolia with rich ranking, highlights and optional comments.
Pricing
from $2.99 / 1,000 technology stories
Rating
0.0
(0)
Developer
w3crawler
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
2 days ago
Last modified
Categories
Features
Share
Search public Hacker News stories through the Algolia HN Search API and optionally enrich them with real top-level Firebase comments. Saved stories include stable IDs, titles, authors, timestamps, points, comment counts, canonical Hacker News links, external story links and domains, query and rank metadata, tags, highlights, child comment IDs, and optional top comments.
Get started
- Enter a technology query such as
technology,AI,programming, oropen source. - Set
maxItemsto the number of stories you want. KeepincludeCommentsenabled if you need public top comments. - Start the Actor and open the dataset. Export the saved stories as JSON, CSV, or Excel.
- Open Run summary to see how many stories were saved and whether the result is complete or partial.
Input
All fields are optional; the defaults below are ready to use. Unsupported field names and out-of-range values are rejected before the run starts.
| Field | Type | Required? | Default | Meaning |
|---|---|---|---|---|
query | string | Optional | "technology" | Public Algolia search query, from 1 to 200 characters; cannot be blank. |
maxItems | integer | Optional | 25 | Maximum unique stories to save, from 1 to 100. |
sortByDate | boolean | Optional | false | Use Algolia's chronological search endpoint instead of relevance ranking. |
includeComments | boolean | Optional | true | Enrich each saved story with a bounded set of real public Firebase comments. |
maxCommentsPerStory | integer | Optional | 2 | Maximum comments fetched per story, from 1 to 4. |
Full default input:
{"query": "technology","maxItems": 25,"sortByDate": false,"includeComments": true,"maxCommentsPerStory": 2}
The Actor reads public Hacker News data through the Algolia HN Search API and the Firebase API. It does not log in, access private data, or fabricate missing stories or comments. Requests are bounded, retried, and delayed. Deleted or incomplete comments are omitted. Insecure story URLs are not followed or emitted. Search and comment failures are recorded only in the OUTPUT summary; they never create dataset rows. A comment-enrichment issue after stories are saved keeps the run successful and marks its data PARTIAL.
Output
The dataset contains one row per unique public Hacker News story. Each row describes the story as it appeared at collection time. Missing optional values are omitted rather than guessed, and no diagnostic or placeholder rows are written.
| Field | Type | Availability | Meaning |
|---|---|---|---|
recordId | string | Always | Stable record identifier combining the story ID and search context. |
recordType | string | Always | Record type; always story. |
storyId | string | Always | Hacker News item identifier. |
titleText | string | Always | Public story title. |
author | string | When published | Hacker News username of the submitter. |
authorProfileUrl | string | When published | Public Hacker News profile URL. |
createdAt | string | When published | Story creation time in ISO UTC. |
updatedAt | string | When published | Last source update time in ISO UTC. |
points | integer | When published | Story score at collection time. |
commentCount | integer | When published | Total published comment count at collection time. |
storyUrl | string | When published | Public HTTPS story URL. |
storyDomain | string | When published | Domain of the external story URL. |
hackerNewsUrl | string | Always | Canonical Hacker News discussion URL. |
storyTextHtml | string | When the story has text | Published story text with its original HTML formatting. |
storyText | string | When the story has text | Readable plain-text version of the story text. |
searchQuery | string | Always | Query used for the Algolia search. |
searchRank | integer | Always | One-based position in the Algolia result set. |
relevancyScore | number | Only if a source supplies it | Reserved relevance score; the current Algolia HN API does not return this field, so it is normally omitted. |
tags | string array | When returned | Algolia tags for the story, submitter, and object. |
isAskStory | boolean | When returned | Whether the story is an Ask HN post. |
isShowStory | boolean | When returned | Whether the story is a Show HN post. |
highlightTitleHtml | string | When returned | Title with Algolia's search-term highlighting. |
highlightUrlHtml | string | When returned | URL with Algolia's search-term highlighting. |
matchLevel | string (none, partial, full) | When returned | Algolia's matchedWords/title match level for the query. |
matchedWords | string array | When returned | Query terms Algolia reported as matched in the title. |
fullyHighlighted | boolean | When returned | Whether Algolia marked the whole title as highlighted. |
childIds | string array | When returned | Direct child comment identifiers reported by Algolia. |
topComments | object array | When includeComments is enabled and comments exist | Bounded set of top-level public Firebase comments. |
sourceUrl | string | Always | Exact Algolia API request URL used for the search. |
scrapedAt | string | Always | Time the story row was saved, in ISO UTC. |
Each topComments entry contains commentId, author, publishedAt, textHtml, textText, and childCount when published.
Full JSON output
The example below is based on a real saved row from the 2026-10-25 run, updated to show the three source-backed match-evidence fields added in v1.2. childIds is shortened to five entries for readability; every other field is complete.
{"recordId": "hn_tech_story_20985875_44e58fb9eb99","recordType": "story","storyId": "20985875","titleText": "The boring technology behind a one-person Internet company (2018)","author": "mxschumacher","authorProfileUrl": "https://news.ycombinator.com/user?id=mxschumacher","createdAt": "2019-09-16T16:40:08.000Z","updatedAt": "2025-12-21T23:26:13.000Z","points": 2010,"commentCount": 451,"storyUrl": "https://broadcast.listennotes.com/the-boring-technology-behind-listen-notes-56697c2e347b","storyDomain": "broadcast.listennotes.com","hackerNewsUrl": "https://news.ycombinator.com/item?id=20985875","searchQuery": "technology","searchRank": 1,"tags": ["story", "author_mxschumacher", "story_20985875"],"isAskStory": false,"isShowStory": false,"highlightTitleHtml": "The boring <em>technology</em> behind a one-person Internet company (2018)","highlightUrlHtml": "https://broadcast.listennotes.com/the-boring-<em>technology</em>-behind-listen-notes-56697c2e347b","matchLevel": "partial","matchedWords": ["technology"],"fullyHighlighted": false,"childIds": ["20986417", "20986541", "20986694", "20986697", "20986712"],"topComments": [{"commentId": "20986417","author": "tyingq","publishedAt": "2019-09-16T17:23:57.000Z","textHtml": "Was interesting to read all the sort of "boring" back end pieces, then see that he went with half-server and half-client rendered React for the front end. Was expecting Angular or similar, given the pattern of the other picks.","textText": "Was interesting to read all the sort of \"boring\" back end pieces, then see that he went with half-server and half-client rendered React for the front end. Was expecting Angular or similar, given the pattern of the other picks.","childCount": 1},{"commentId": "20986541","author": "neutogouln","publishedAt": "2019-09-16T17:33:50.000Z","textHtml": "This definitely deserves to be on the front page more than any discussion involving Snowden.<p>/s<p>#HNPropaganda","textText": "This definitely deserves to be on the front page more than any discussion involving Snowden. /s #HNPropaganda","childCount": 0}],"sourceUrl": "https://hn.algolia.com/api/v1/search?tags=story&query=technology&hitsPerPage=3&page=0","scrapedAt": "2026-10-25T21:03:59.448Z"}
Run summary
Run summary is stored separately from the dataset in the run's key-value store under OUTPUT. It reports the run outcome and the counts for the saved stories and comment requests.
| Field | Meaning |
|---|---|
source | Public source description. |
status | Actor process outcome: SUCCEEDED or FAILED. |
runStatus | Canonical run status; matches status. |
dataStatus | Completeness of saved stories: COMPLETE, PARTIAL, NO_RESULTS, or FAILED. |
query | Query used for the search. |
totalHitsAvailable | Algolia's reported (approximate) matching-hit count for the query; omitted when the source does not report it. |
totalPagesAvailable | Number of result pages at the requested page size; omitted when the source does not report it. |
pageFetched | Zero-based page index actually requested. Only page 0 is fetched. |
exhaustive | Whether Algolia reported the hit count as exhaustive (false means the count is approximate). Normalized from Algolia's object form to a boolean. |
requestedItemCount | Requested story limit. |
itemCount | Stories actually saved. |
diagnosticItems | Diagnostic dataset rows; the Actor does not write diagnostic rows. |
diagnosticCount | Number of operational issues recorded in the summary. |
failedCount | Failed story searches or extractions. |
duplicateCount | Duplicate stories removed from the result set. |
skippedCount | Stories skipped because required public data was unavailable. |
commentRequested | Whether comment enrichment was enabled. |
commentRequestCount | Firebase comment requests attempted. |
commentFetched | Comments successfully fetched. |
commentFailureCount | Comment requests that failed. |
finishedAt | Time the summary was written, in ISO UTC. |
| Status | Data status | Meaning |
|---|---|---|
SUCCEEDED | COMPLETE | Stories were saved without an extraction problem. |
SUCCEEDED | PARTIAL | Stories were saved, but a later comment request failed. Saved rows remain available. |
SUCCEEDED | NO_RESULTS | The search completed cleanly and returned no matching stories. |
FAILED | FAILED | A fatal error occurred before any story was saved. |
Example OUTPUT from the 2026-11-16 verification run (query: "AI", maxItems: 3):
{"source": "Hacker News public Algolia API and Firebase","status": "SUCCEEDED","runStatus": "SUCCEEDED","dataStatus": "COMPLETE","query": "AI","totalHitsAvailable": 2036938,"totalPagesAvailable": 334,"pageFetched": 0,"exhaustive": false,"requestedItemCount": 3,"itemCount": 3,"diagnosticItems": 0,"diagnosticCount": 0,"failedCount": 0,"duplicateCount": 0,"skippedCount": 0,"commentRequested": true,"commentRequestCount": 6,"commentFetched": 5,"commentFailureCount": 0,"finishedAt": "2026-11-16T08:03:17.556Z"}
Coverage and limitations
Algolia's public search index determines which Hacker News stories are discoverable. The Actor requests only page 0 with hitsPerPage equal to maxItems, so it cannot return more than maxItems unique stories in one run; totalPagesAvailable and pageFetched in the summary report whether a broader result set exists. Algolia reports nbHits/nbPages as approximate for broad queries (exhaustive: false), so treat totalHitsAvailable as an estimate. The Actor does not crawl all of Hacker News, does not follow external story links, and cannot recover stories or comments that Algolia or Firebase no longer exposes. Points and comment counts are point-in-time values and can change after the run. matchLevel, matchedWords, and fullyHighlighted are copied verbatim from Algolia's _highlightResult.title and are omitted when Algolia does not supply them.
Deleted, removed, or incomplete comments are omitted. Insecure external URLs are not followed or emitted. A search or comment failure is recorded in OUTPUT and logs rather than represented as a fabricated story. A comment failure after stories have been saved leaves the saved rows available and reports dataStatus: "PARTIAL".
Usage and support
The main cost is one Algolia search request plus up to four bounded Firebase comment requests per saved story. Keep maxItems and maxCommentsPerStory modest while testing. Set includeComments to false for a faster story-only snapshot. Increasing the story limit increases both request volume and run time.
Use the Actor Issues page to report a problem. Include the run ID, the input used, and the OUTPUT summary; do not include tokens, cookies, or private data.
This Actor is not affiliated with, endorsed by, or sponsored by Hacker News, Y Combinator, or Algolia. Use it only for public data and in accordance with the applicable terms, robots guidance, and law. Public posts can contain personal information; do not use the data for unauthorized profiling or contact.