Reference · Tools

Hacker News

Read-only access to Hacker News content via the Algolia HN Search API — retrieve articles, user profiles, and search all items.

Action Communication v1

The Hacker News node reads from Hacker News through the public Algolia search API — fetching an article, looking up a user profile, or searching all items by keyword and tags. It needs no credentials at all. A typical build is watching for mentions of your product or domain and posting new hits to Slack with the discussion link.

Node type
Action
Parameters
11
Outputs
Output, Error
Credentials
None required

Hacker News

Retrieve articles, user profiles, and search items from Hacker News.

Overview

Hacker News is a social news website focusing on technology and startups. This tool provides read-only access via the HN Algolia Search API (http://hn.algolia.com/api/v1/). It supports three resources: Article (get a single item by ID with optional comments), User (get a user profile by username), and All (search/list items with keyword and tag filtering). The All resource supports pagination via returnAll/limit pattern using Algolia page-based pagination. No authentication is required — this is a public API.

Category: Communication
Tool Name: hacker_news
Version: 1

Appearance: Icon: lucide-Newspaper | Color: #FF6600

Node Type

Action — processes input items and produces output

Input / Output

DirectionPort(s)
InputInput
OutputOutput, Error

Credentials

This tool does not require any credentials.

Resources

ResourceValue
Allall
Articlearticle
Useruser

Operations

OperationValueDescription
Get ManygetAllGet many items (All resource)
GetgetGet a Hacker News article (Article resource)
GetgetGet a Hacker News user (User resource)

Parameters

All: Get Many

ParameterTypeRequiredDefaultDescription
Return AllbooleanNofalseWhether to return all results or only up to a given limit.
LimitnumberNo100Max number of results to return. (shown when Return All is false)
Additional FieldscollectionNo{}Extra search filters. Add only the ones you need.
— KeywordstringNoThe keyword for filtering the results of the query. Supports expressions like {{ $json.term }}.
— TagsmultiOptionsNo[]Tags for filtering the results of the query.
Options: ask_hn (Ask HN posts), comment (comments), front_page (front page items), poll (polls), show_hn (Show HN posts), story (stories)

Article: Get

ParameterTypeRequiredDefaultDescription
Article IDstringYesThe ID of the Hacker News article to be returned. Supports expressions like {{ $json.id }}.
Additional FieldscollectionNo{}Extra options for the article lookup.
— Include CommentsbooleanNofalseWhether to include all the comments in a Hacker News article.

User: Get

ParameterTypeRequiredDefaultDescription
UsernamestringYesThe Hacker News username to be returned. Supports expressions like {{ $json.author }}.

All Operations

ParameterTypeRequiredDefaultDescription
Max ConcurrencynumberNo10Maximum number of items to process concurrently.

Output Data

Each Hacker News result is merged into the incoming item JSON, so the fields you sent in pass through and binary data is forwarded. The API response fields are written at the top level of the item — not nested under a wrapper property.

How many output items an input item produces depends on the operation:

OperationOutput items
all / getAllFans out — one output item per search hit. With Return All on, every page of results is fetched and emitted; otherwise up to Limit items. A search with no hits emits the input item unchanged.
article / getOne item — the article record. Its comment tree arrives under children only when Include Comments is on; with the option off the property is stripped before output.
user / getOne item — the user profile record.

Because search fans out, downstream nodes see one item per story and can be wired directly without a Split Out node.

Usage Examples

  • Get a Hacker News article by ID
  • Get a Hacker News user profile by username
  • Search Hacker News for articles matching a keyword
  • List all front page stories from Hacker News
  • Search Hacker News for Ask HN posts about a topic

Example Configuration

Get a specific article:

{
  "type": "hacker_news",
  "parameters": {
    "resource": "article",
    "operation": "get",
    "articleId": "12345678"
  }
}

Get an article together with its comment tree:

{
  "type": "hacker_news",
  "parameters": {
    "resource": "article",
    "operation": "get",
    "articleId": "{{ $json.storyId }}",
    "additionalFields": {
      "includeComments": true
    }
  }
}

Get a user profile:

{
  "type": "hacker_news",
  "parameters": {
    "resource": "user",
    "operation": "get",
    "username": "pg"
  }
}

Search with a keyword and tag filter, capped at 100 results:

{
  "type": "hacker_news",
  "parameters": {
    "resource": "all",
    "operation": "getAll",
    "returnAll": false,
    "limit": 100,
    "additionalFields": {
      "keyword": "artificial intelligence",
      "tags": ["story", "show_hn"]
    }
  }
}

Pull every matching result, paging through the API:

{
  "type": "hacker_news",
  "parameters": {
    "resource": "all",
    "operation": "getAll",
    "returnAll": true,
    "maxConcurrency": 5
  }
}

Error Handling

ModeBehavior
stopHalts workflow on first error
continueSkips failed items, passes successful ones through
errorPortRoutes failed items to Error output port

Tips

Retrieve Hacker News articles, user profiles, and search items via the public Algolia HN Search API.

Important Notes

  • The additionalFields parameter structure varies by resource type
  • For article resources: use includeComments boolean field
  • For all resources: use keyword string and tags array fields
  • Always ensure conditional parameters match their display requirements
  • The limit parameter only appears when returnAll is set to false

Frequently asked questions

Does this node need credentials?

No. It uses the public Algolia HN Search API, so there is nothing to configure and no key to manage — one of the few nodes with no credential requirement at all.

Can it post or comment on Hacker News?

No, it is read-only. It retrieves articles, user profiles and search results; there is no write path to Hacker News through this node.

Why can I not see the Limit field?

Limit only appears when Return All is off. With Return All enabled the node fetches everything matching and the limit has no meaning.

Which additional fields apply to my resource?

They vary by resource. Article supports Include Comments; keyword and tags apply across resources. The editor shows only the fields valid for the resource you selected.

Build with the Hacker News node

Drop it into a workflow, wire it to an agent, or call it on a schedule.

Open BusyBot

Last updated . Spotted something wrong? Tell us.