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
| Method | Credential kind | Auth kind | Fields | Test request |
|---|---|---|---|---|
| Public API (no sign-in) | hacker_news/none | none |
Actions
Node type connector.hacker_news. Choose a resource and an operation; each operation has its own parameters.
Item
| Operation | ID | Effect | Paginated | Cassette tests |
|---|---|---|---|---|
| Get an item | item.get | reads | 2 |
Get an item
Operation item.get. Fetch a story, comment, job, poll or poll option by its ID.
| Name | Type | Default | Required | Shown when | Description |
|---|---|---|---|---|---|
id | number | yes | Numeric item ID. |
User
| Operation | ID | Effect | Paginated | Cassette tests |
|---|---|---|---|---|
| Get a user | user.get | reads | 1 |
Get a user
Operation user.get.
| Name | Type | Default | Required | Shown when | Description |
|---|---|---|---|---|---|
id | string | yes | Case-sensitive username. |
Story
| Operation | ID | Effect | Paginated | Cassette tests |
|---|---|---|---|---|
| List stories from a feed | story.list | reads | 1 |
List stories from a feed
Operation story.list. Fetch the newest entries of a story feed with their details.
| Name | Type | Default | Required | Shown when | Description |
|---|---|---|---|---|---|
list | options | "top" | Feed. One of top, new, best, ask, show, job. | ||
limit | number | 10 | Number of stories to fetch (each is one request). |
Search
| Operation | ID | Effect | Paginated | Cassette tests |
|---|---|---|---|---|
| Search stories and comments | search.query | reads | yes | 1 |
Search stories and comments
Operation search.query.
| Name | Type | Default | Required | Shown when | Description |
|---|---|---|---|---|---|
query | string | yes | |||
tags | options | "story" | One of story, comment, ask_hn, show_hn, front_page. | ||
sort | options | "relevance" | One of relevance, date. |
Triggers
Node type connector.hacker_news_trigger.
| Trigger | ID | Kind | Deduplication key | Signature | Webhook registration | Cassette tests |
|---|---|---|---|---|---|---|
| New story | new_story | poll | {{ item.objectID }} | 0 |
Trigger: New story
Emits stories posted since the previous poll, optionally matching keywords.
| Name | Type | Default | Required | Shown when | Description |
|---|---|---|---|---|---|
query | string | Only stories matching these words. |
Import
No exported node type imports to this node.
Provenance
Written from the vendor’s documentation: