npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

n8n-nodes-hackernewsapi

v0.1.3

Published

An n8n community node for interacting with the Hacker News API (Algolia). Supports searching stories, comments, polls, and more from Hacker News.

Readme

n8n-nodes-hackernewsapi

This is an n8n community node that lets you query the Hacker News Search API (Algolia) inside your n8n workflows.

The HN Search API provides read-only access to Hacker News data, including stories, comments, and polls with powerful full‑text search and filtering.

n8n is a fair-code licensed workflow automation platform.

Installation
Operations
Compatibility
Usage
Resources
Version history
License

Installation

Follow the official community nodes installation guide.

Operations

This node is read‑only and uses the public HN Search API (no credentials required).

Resource: Search

  • Search

    • Endpoint: GET /api/v1/search
    • Description: Full‑text search on Hacker News, sorted by relevance, then points, then number of comments.
    • Key parameters:
      • Query: Full‑text search string.
      • Tags: Filter by tags such as story, comment, poll, pollopt, show_hn, ask_hn, front_page, author_:USERNAME, story_:ID.
      • Numeric Filters: Conditions on created_at_i, points, num_comments (for example points>100,num_comments>10).
      • Page, Hits Per Page, Return All, Limit: Control pagination.
  • Search by Date

    • Endpoint: GET /api/v1/search_by_date
    • Description: Same as Search, but results are sorted by date (most recent first).
    • Key parameters:
      • Same as Search, typically combined with numericFilters on created_at_i for time‑range queries.

Resource: Item

  • Get
    • Endpoint: GET /api/v1/items/:id
    • Description: Retrieve a single item (story, comment, poll, or poll option) by numeric ID, including its nested children.
    • Key parameters:
      • Item ID: Numeric Hacker News item ID.

Compatibility

  • n8n version: Built and tested with recent n8n 1.x/2.x versions.
  • Node style: Declarative HTTP node using the n8n Nodes API v1.
  • Authentication: Not required. The HN Search API is public and this node does not expose any credential options.

If you encounter a version‑specific issue, please open an issue in this repository with your n8n version and error details.

Usage

Add the node

  1. Install the package and restart n8n.
  2. In the editor, add the Hacker News API node to your workflow.

Example: Search for popular stories

  1. Set Resource to Search and Operation to Search.
  2. Set Query to a topic, for example n8n or TypeScript.
  3. Optionally set:
    • Tags to story to only return stories.
    • Numeric Filters to something like points>100 to only keep higher‑scoring posts.
  4. Run the node to get a list of matching stories in the node output.

Example: Fetch a story and its comments

  1. Add a Hacker News node with Resource = Item and Operation = Get.
  2. Set Item ID to the numeric ID of the story (for example from a previous Search node).
  3. Run the node to receive the story plus its nested children (comments) tree.

Resources

Version history

  • 0.1.0
    • Initial release.
    • Supports:
      • Search (/api/v1/search)
      • Search by date (/api/v1/search_by_date)
      • Get item (/api/v1/items/:id)

License

This project is licensed under the MIT License.
See the LICENSE file for details.