Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Hacker News

connector.hacker_news · connector.hacker_news_trigger · news, social

Read stories, comments and users from Hacker News, and search with the HN Search API.

Vendor API documentation: https://github.com/HackerNews/API

Authentication

MethodCredential kindAuth kindFieldsTest request
Public API (no sign-in)hacker_news/nonenone

Actions

Node type connector.hacker_news. Choose a resource and an operation; each operation has its own parameters.

Item

OperationIDEffectPaginatedCassette tests
Get an itemitem.getreads2

Get an item

Operation item.get. Fetch a story, comment, job, poll or poll option by its ID.

NameTypeDefaultRequiredShown whenDescription
idnumberyesNumeric item ID.

User

OperationIDEffectPaginatedCassette tests
Get a useruser.getreads1

Get a user

Operation user.get.

NameTypeDefaultRequiredShown whenDescription
idstringyesCase-sensitive username.

Story

OperationIDEffectPaginatedCassette tests
List stories from a feedstory.listreads1

List stories from a feed

Operation story.list. Fetch the newest entries of a story feed with their details.

NameTypeDefaultRequiredShown whenDescription
listoptions"top"Feed. One of top, new, best, ask, show, job.
limitnumber10Number of stories to fetch (each is one request).
OperationIDEffectPaginatedCassette tests
Search stories and commentssearch.queryreadsyes1

Search stories and comments

Operation search.query.

NameTypeDefaultRequiredShown whenDescription
querystringyes
tagsoptions"story"One of story, comment, ask_hn, show_hn, front_page.
sortoptions"relevance"One of relevance, date.

Triggers

Node type connector.hacker_news_trigger.

TriggerIDKindDeduplication keySignatureWebhook registrationCassette tests
New storynew_storypoll{{ item.objectID }}0

Trigger: New story

Emits stories posted since the previous poll, optionally matching keywords.

NameTypeDefaultRequiredShown whenDescription
querystringOnly stories matching these words.

Import

No exported node type imports to this node.

Provenance

Written from the vendor’s documentation: