Hacker News API: direct vs GetAllAPIs
Free and direct, or one key with refunds and MCP at $0.0015 per call.
Hacker News stories, comment threads, user profiles and full-text search, from the official Firebase API and the public HN Search (Algolia) API. You can call Hacker News API + HN Search (Algolia) yourself, or call it through GetAllAPIs with one key. Here is the honest trade-off.
| Hacker News API directly | Through GetAllAPIs | |
|---|---|---|
| Price | Free (Hacker News API + HN Search (Algolia)) | $0.0015 per call from a prepaid wallet ($1.50 per 1,000 calls at the lowest price) |
| Access | No key. Two separate APIs: the Firebase item API (one request per item) and HN Search for full-text queries. | One GetAllAPIs key for every provider; spend limits per key |
| Response format | Firebase returns one item per call with child ids; you fetch each comment yourself. | One JSON envelope for every endpoint: cost_usd, items, source, output |
| Failed calls | Your code handles retries | Upstream failures return 503 upstream_error and are refunded |
| AI agents | Write your own tool or MCP wrapper | Built-in remote MCP server (run_endpoint) and Markdown docs per endpoint |
| Coverage | Everything the upstream offers | 6 endpoints (listed below) |
Call it directly when
You need high volume from this upstream only, need fields we do not return, or want no per-call cost.
Use GetAllAPIs when
You use several data sources, want an agent to call them over MCP, or want one bill and one response shape instead of several integrations.
Endpoints
| Endpoint | What it returns | Price |
|---|---|---|
| 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) |
Hacker News API hub · Hacker News MCP server · All comparisons
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.
FAQ
Is the Hacker News API free?
Calling Hacker News API + HN Search (Algolia) directly is free within its own limits: No key. Two separate APIs: the Firebase item API (one request per item) and HN Search for full-text queries.
Why pay for Hacker News data through GetAllAPIs?
You pay for not running the integration: one key across providers, one response format, refunds on failures and MCP for agents. If you only need this one upstream at high volume, calling it directly is cheaper.