Provider

Hacker News API

6 live Hacker News endpoints, $0.0015 per call, one API key. No Hacker News credentials needed.

Hacker News stories, comment threads, user profiles and full-text search, from the official Firebase API and the public HN Search (Algolia) API. Comment threads come back flattened with a depth field, in one call.

Hacker News endpoints

EndpointWhat it returnsPrice
Hacker News Front Page
hackernews.front_page
Current Hacker News front page, or the newest stories, Ask HN, Show HN and job posts, in one call.$0.0015 per request ($1.50 per 1,000)
Hacker News Profile
hackernews.profile
A Hacker News user's karma, creation date, about text and recent submissions.$0.0015 per request ($1.50 per 1,000)
Hacker News Search
hackernews.search
Full-text search of Hacker News stories and comments, by relevance or date.$0.0015 per request ($1.50 per 1,000)
Hacker News Story
hackernews.story
One Hacker News item (story, comment, job or poll) by id.$0.0015 per request ($1.50 per 1,000)
Hacker News Story Comments
hackernews.story_comments
The full comment thread of a Hacker News story, flattened with depth.$0.0015 per request ($1.50 per 1,000)
Hacker News User Submissions
hackernews.user_submissions
Stories and comments a Hacker News user posted, newest first.$0.0015 per request ($1.50 per 1,000)

What people use it for

  • Monitor launches and mentions of your product or competitors
  • Pull the whole discussion of a story for summarisation
  • Research what developers say about a tool

Quick start

Create a key, then call any endpoint with POST /v1/run/<endpoint>. Example with Hacker News Front Page:

curl

curl -s -X POST https://getallapis.com/v1/run/hackernews.front_page \
  -H "Authorization: Bearer $GETALLAPIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"list":"front_page","limit":10}'

JavaScript

const res = await fetch("https://getallapis.com/v1/run/hackernews.front_page", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.GETALLAPIS_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({"list": "front_page", "limit": 10}),
});
const data = await res.json();
console.log(data.cost_usd, data.output);

For agents: Hacker News MCP server. Compared with going direct: Hacker News API direct vs GetAllAPIs.

Get an API key. New API keys come with $0.10 of free credit, no card required (limited to 2 keys per network every 30 days). That covers about 66 requests of hackernews.front_page. Then add credits (packs from $10). No subscription; failed calls are refunded.

Get a free API key Try it in the playground

FAQ

How much does the Hacker News API cost on GetAllAPIs?

6 endpoints at $0.0015 per call, from one prepaid wallet. Every price is on the endpoint's page and in /v1/catalog.

Do I need a Hacker News account or key?

No. You use one GetAllAPIs key for every endpoint. Direct access: No key. Two separate APIs: the Firebase item API (one request per item) and HN Search for full-text queries.

What is different from calling the upstream directly?

One key and wallet for all providers, one response envelope with cost_usd, refunds on upstream failures and an MCP server. Direct access is free; see the comparison.