GroundsocialDocs

API · Hacker News

GET /hackernews/users/{username}

A Hacker News user: karma, about, submissions.

RequestGET /v1/hackernews/users/{username}
Operation idhackernews.user.get
Cost1 credit, refunded if the call fails
AuthAPI key: Authorization: Bearer <key> or x-api-key.

A Hacker News user: karma, about, submissions.

Path parameters

NameTypeRequiredDescription
usernamestringyesUsername, case-sensitive. Example: pg.

Responses

StatusMeaningSchema
200The user.HackerNewsUser
400Invalid input. Nothing was charged.Error
401Missing or invalid API key.Error
402Not enough credits, a spend cap was reached, or payment is required.Error
403The target is private, or the account is suspended.Error
404The item or user does not exist.Error
429Too many requests. Wait for Retry-After seconds.Error
503Hacker News is temporarily unavailable. Retryable; nothing was charged.Error

HackerNewsUser fields

FieldTypeDescription
idstring
createdintegerUnix seconds.
karmainteger
aboutstringHTML.
submittedinteger[]Ids of the user’s stories, polls and comments, newest first (up to 100 here).
submitted_countintegerHow many items the user submitted in all.

Errors use one shape everywhere; see Errors for every code and what to do.