Skip to content

HackerNews Node

The Hacker News Node allows users to retrieve stories from Hacker News, including top, new, best, ask, show, and job stories. It’s designed to fetch and display the latest posts from various categories directly within the graph.


Inputs

  • Type: Specifies the type of stories to retrieve. Options include ‘topstories’, ‘newstories’, ‘beststories’, ‘askstories’, ‘showstories’, and ‘jobstories’.
  • Limit: Determines the maximum number of stories to fetch, allowing for control over the amount of data retrieved.

Outputs

  • Result: Outputs an array containing the requested stories from Hacker News.
  • Length: Provides the total number of stories retrieved, reflecting the ‘limit’ input or the total available stories if fewer than the limit.

Properties

Type: Allows the user to pre-select the type of stories to retrieve, which can be dynamically overridden by the input.

Limit: Sets a default limit on the number of stories to fetch, which can also be dynamically adjusted through the input.


Usage

To use the Hacker News Node, simply configure the desired story type and limit either through the properties or directly via the inputs. Upon execution, the node will contact the Hacker News API and return the specified stories, along with the count of stories retrieved. This node is ideal for integrating real-time news data from Hacker News into your graph-based workflows.