Hn Get User
hn_get_userGet an HN user profile with karma, about, and optionally their most recent submissions resolved into full items.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| username | Yes | HN username. Case-sensitive. Trimmed; blank or whitespace-only input is rejected. | |
| submissionCount | No | Page size — how many submissions to resolve per call. Only used when includeSubmissions is true. | |
| submissionOffset | No | How many submissions to skip before resolving, counting back from the most recent. Use with submissionCount to page through a long history: request offset 0, then offset submissionCount, and so on. The enrichment block echoes submissionOffset and, when more remain, the offset to send next. Only used when includeSubmissions is true. | |
| includeSubmissions | No | Resolve the user's most recent submissions into full items. Without this, only the submission count is available. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cap | No | The submissionCount cap that was applied. | |
| user | No | User profile. | |
| error | No | Present when the call failed. Absent on success. | |
| shown | No | Number of submissions returned. | |
| notice | No | Pagination context — which window of the history this page covers and the submissionOffset to send next, or a warning that the offset is past the end. Absent when the page reaches the end of the history, or when no submissions were resolved. | |
| truncated | No | True when submissions remain beyond this page. | |
| submissions | No | One page of submissions, most recent first, starting at submissionOffset. Absent when includeSubmissions is false or the user has never submitted. Empty when the page holds no live items — either the offset is past the end, or every item in the window was deleted or flagged. | |
| submissionOffset | No | The offset this page started at. Absent when includeSubmissions is false or the user has never submitted. |