Get User
hackernews.get_user
ActionBusiness appsconnection required
Calls the Hacker News API with the connection's credentials.
Read one Hacker News user's karma, bio and submission ids.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- No auth
- Providers
- Hacker News
- Secret shape
- no credential — the Hacker News API is public; the connection is a pair of hosts
- Config it needs
- base_url, search_base_url
- Resolved by
- config.connection_id, else node.connection_id
Configuration
1 field, 1 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
username The username to read. Usernames are case-sensitive, and only users with public comments or submissions exist through the API. | string | Yes | — | — | pg |
Example configuration
Every value below is the contract’s own example or default — nothing invented.
{
"username": "pg"
}Output
One shape.
result
| Field | Type | Example |
|---|---|---|
id The username, exactly as Hacker News stores it. | string | — |
created When the account was created, as a Unix timestamp. | number | — |
karma The user's karma. | number | — |
about The user's self-description, as HTML. | string | — |
submitted The ids of everything the user has posted. | array | — |
{
"about": "",
"created": 0,
"id": "",
"karma": 0,
"submitted": []
}Related Hacker News nodes
See Get User run in a workflow.
In a technical demo we add the Hacker News connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.