Introducing the Instagram APIRead more →

Hacker News Feed API. Feed, on request.

Front page, new, best, Ask HN, Show HN and jobs. We handle the proxies, blocks and platform changes.

In your agent: Hacker News MCP server →

Hacker News Feed API at a glance

Returns a Hacker News feed in Hacker News' own order, a page at a time: the front page, new, best, Ask HN, Show HN or jobs. Each story comes with its rank, title, link, text as plain text, exact points and comment count, author and posting time, and a poll's options with their points.

GET /v1/hackernews/feed_stories

Read the API reference
  • 1 credit per page, $0.75–$1.97 per 1,000 pages
  • 23 typed fields null when unknown
  • 30 stories per page, Hacker News' own order for the feed (1 = first); new is newest first
  • 100 credits free when you sign up, no card, so you can build before you spend

Send one request. Get up to 30 stories 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
GET /v1/hackernews/feed_storiesTry in
const params = new URLSearchParams({
  feed: "top",
});
const res = await fetch(`https://socialtap.dev/v1/hackernews/feed_stories?${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, page, meta } = body;
console.log(data, meta.credits_charged);
200 OK · GET https://socialtap.dev/v1/hackernews/feed_storiesLong arrays and strings are shortened here. Real responses are complete.Docs

One schema on 22 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.

  • No input needed

    Every parameter is optional: the plain request returns the default list.

  • Write one parser

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

platformstring
Platform ID (tiktok, youtube, …).
idstring
Platform-native post ID (string; Instagram shortcode, Reddit with its t3_ prefix).
urlstring
Canonical post URL.
typestring
Normalized content shape. New values may be added; treat unknown values as other.
platform_typestring
The platform's own product label, lowercase (reel, short, story, live, tweet, …).
titlestring
Headline (YouTube title, Reddit title); null on caption-only platforms.
textstring
Caption, description or body as plain text.
link_urlstring
The page the post links to: a link post's target, a pin's destination, or the page its link card or link sticker opens; null when it links to none.

What teams build with the Hacker News Feed API.

  • Track what reaches the Hacker News front page

  • Collect every new story as it is posted

  • Monitor Show HN launches in your field

  • Gather YC company job posts

Good to know before you build.

  • platform_specific.hackernews.rank is the story's place in the feed, numbered as Hacker News numbers it: a later page goes on from where the one before ended.
  • The feeds move while you page through them. On the ranked feeds a story that changes place between two requests can come back twice or be missed. New and jobs go on from the last story you got, so nothing repeats there.
  • Hacker News' API lists the first stories of each feed: the front page and new go up to rank 500, the others up to 200. A walk that reaches that end stops with page.end_reason platform_limit.
  • since and until end the walk on new, which is newest first. On the other feeds they only filter, so every page is read and charged until the feed ends.
  • A story deleted or killed after the feed listed it is left out, as Hacker News leaves it out. If a story can't be read, the page comes without it and with an items_omitted warning naming it.
  • When Hacker News' API fails, the page comes from the feed's page on Hacker News: stories have no text there, and a poll looks like a text story, so poll_options is listed in unknown_fields.

1 credit per page. Failed requests are free.

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

SourcePrice per successful pagePer 1,000 pages
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 Feed API.

More in the API reference.

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.
How much does the Hacker News Feed API cost?
A page of up to 30 stories costs 1 credit. Every successful page is charged, empty pages included. SocialTap credits cost $0.75–$1.97 per 1,000, depending on the plan or pack.
How do I get the next page?
Repeat the same request with cursor set to page.next_cursor from the previous response, keeping the other parameters. When page.has_more is false there are no more pages. Cursors expire after 24 hours.

See what's on the list right now.

Run it 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