Actions23
Hacker News
AI-generatedSummary
Searches Hacker News for the required query and returns up to the configured maximum number of matching stories or comments. Choose whether to sort by popularity or date and which content type to include.
Inputs
- Search Query (required) — Text to search for on Hacker News.
- Max Results — Maximum number of results to return; defaults to 10 (the UI describes a range of 1–100).
- Sort By — Sort results by popularity (default, relevance in the Hacker News search API) or date.
- Content Type — Filter results to Stories (default), Comments, All, Ask HN, or Show HN.
- Return as Single Item — When enabled, combine the results into one output item containing a
resultsarray, along withoperationandtotalResults.
Output shape
A list of result items, one per Hacker News match by default; each item contains a JSON object.
Each result includes
title,url,snippet,source, and Hacker News metadata such ashnPoints,hnAuthor,hnNumComments, andhnCreated. If no results match, the list is empty. With Return as Single Item enabled, the output is one item withoperation,totalResults, andresults. The requested content type and sort order are sent to the Hacker News Algolia search API.
Examples
Example 1: Find relevant Hacker News stories and comments about distributed databases, sorted by date.
Search Query: distributed databases; Sort By: Date; Content Type: All; Max Results: 20