Introducing the Instagram APIRead more →

Hacker News API. Scrape live data from any public Hacker News link.

Get public stories, users, comments and more by link, handle or search, with stories in the same fields as on 21 other platforms. We handle the proxies, blocks and platform changes.

GET socialtap.dev/v1/hackernews/story

What Hacker News data can you get?

Public Hacker News stories with exact points and comment counts, their comments in thread order, and users with exact karma and about text. A user's stories, comments and favorites, the front page and the other feeds, and each month's Who is hiring thread as job postings. Search stories and comments by keyword, or find the stories that link to a page.

Hacker News MCP server

Stories

Why not the official Hacker News API?

Hacker News' official API is free and needs no key, but it returns one item or user per request, gives every list as bare IDs, keeps text as HTML, and has no search and no favorites.

  • No approval to wait for

    One API key works on every endpoint. There's no app to get reviewed and no account to connect.

  • Anything public

    Read what anyone can see without logging in, not only the accounts you manage or that authorized your app.

  • No daily quota

    You pay per request. Plans have no rate limit, only a ceiling that stops a runaway loop.

Call the Hacker News API from your code.

Copy the request for your language, or hand it to your agent.

Hacker News Story Try in
const params = new URLSearchParams({
  url: "https://news.ycombinator.com/item?id=8863",
});
const res = await fetch(`https://socialtap.dev/v1/hackernews/story?${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);
GET https://socialtap.dev/v1/hackernews/storyDocs

Other platforms, same key.

Posts and profiles come back in the same fields wherever they're from.

Frequently asked questions

What you send, what comes back and how your agent uses it.

Contact us
Can I get more than the front page?
Yes. Page through top with the cursor to read on past the first thirty stories, or pick new, best, ask, show or jobs with feed.
Are replies to replies included?
Yes. Replies come in the same flat list, with parent_id naming the comment it answers and depth saying how deep it is.
How do I get only remote jobs?
Every job has workplace_type: keep those whose value is remote. The first line decides it, so a job that says REMOTE or ONSITE counts as remote.

Try it on a Hacker News link you have.

Get a key and send your first request in a minute. The same key works on every platform.

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