Introducing the Instagram APIRead more →

Hacker News User API. Send a handle or user link.

Exact karma, about text and submission count. We handle the proxies, blocks and platform changes.

In your agent: Hacker News MCP server →

Hacker News User API at a glance

Returns a public Hacker News user from a username or a link to the user's page. You get the exact karma, the about text as plain text with the links in it, when the account was made, and how many stories and comments the user has submitted. A username no account has returns not_found.

GET /v1/hackernews/user

Read the API reference
  • 1 credit per request, $0.75–$1.97 per 1,000 requests
  • 19 typed fields null when unknown
  • handle is all it needs, e.g. pg
  • 100 credits free when you sign up, no card, so you can build before you spend

Send one request. Get 19 fields back.

Copy the request in your language, or hand it to your agent. Sign up for an API key and your first 100 credits are free.

$ npm install socialtap
handle = pg
GET /v1/hackernews/userTry in
const params = new URLSearchParams({
  handle: "pg",
});
const res = await fetch(`https://socialtap.dev/v1/hackernews/user?${params}`, {
  headers: { "x-api-key": process.env.SOCIALTAP_API_KEY ?? "" },
});
const body = await res.json();
if (!res.ok) throw new Error(`${body.error.code}: ${body.error.message}`);
const { data, meta } = body;
console.log(data, meta.credits_charged);
200 OK · GET https://socialtap.dev/v1/hackernews/userDocs

One schema on 29 platforms.

The response reference lists every field, its type and when it is null. See the full schema.

  • Null means unknown

    A field Hacker News doesn't show is null, never zero or an empty string, so a real zero always means zero.

  • What it accepts

    The Hacker News user: a username (pg, case-sensitive) or a link to the user's page or lists (news.ycombinator.com/user?id=pg, also submitted?id=, threads?id= and favorites?id=).

  • Write one parser

    Hacker News, TikTok, Instagram and 26 more platforms answer in these fields, so the code that reads one reads them all.

platformstring
Platform ID (tiktok, youtube, …).
idstring
Platform-native account ID (string; YouTube UC…, Reddit t2_…).
usernamestring
Handle without the @; null when the account has none.
display_namestring
Display name, channel title or page name; null when empty or not exposed.
urlstring
Canonical profile URL.
typestring
Coarse account kind, as the platform labels it; unknown when it does not (TikTok labels organizations only). New values may be added; treat unknown values as unknown.
biostring
Profile bio, channel description or page about text; null when empty or not exposed.
avatar_urlstring
Profile picture URL (largest available). Platform CDN URLs can expire within hours.

What teams build with the Hacker News User API.

  • Check a commenter's karma and account age

  • Find the sites founders link in their about

  • Track a user's karma over time

  • Size up a user before reading their submissions

Good to know before you build.

  • Usernames are case-sensitive, as Hacker News' API treats them: PG is not pg and returns not_found. When the answer comes from the user's page, the message names the right spelling.
  • Hacker News has no display names, pictures, verified badges, followers or private accounts, so those fields are null, and is_private is false.
  • karma and submission_count are in platform_specific.hackernews. Hacker News counts comments among a user's submissions, so submission_count includes them, along with items it has since killed, and metrics.post_count is null.
  • If the count of submissions can't be read, the user comes back with submission_count null and a partial_data warning. It is also null when the answer comes from the user's page, which shows no count.

1 credit per request. Failed requests are free.

Buy credits once and spend them on any endpoint, on any platform.

SourcePrice per successful requestPer 1,000 requests
Platform API api1 credit$0.75–$1.97
Public page page1 credit$0.75–$1.97
  • Cache hits are free.
  • Credits from packs and top-ups never expire.
  • A monthly plan's credits are spent first, and what is left of them ends at each renewal.
  • Prices exclude tax: sales tax is added at checkout where it applies.
  • Outside the US, plans and packs are sold to businesses: checkout asks for your VAT, GST or other business tax ID.

Questions about the Hacker News User API.

More in the API reference.

How much does the Hacker News User API cost?
A request costs 1 credit. SocialTap credits cost $0.75–$1.97 per 1,000, depending on the plan or pack.

Try it on an account you know.

Paste its handle or link in the playground, or copy the request into your code.

100free credits
  • No credit card
  • Failed requests are free
  • Works on all 276 endpoints
Start for free Read the docs