/v0/item/<id>.jsonfor a story or comment,/v0/user/<id>.jsonfor a user./v0/topstories,newstories,beststories,askstories,showstories,jobstories, plusmaxitemandupdates.- A story gives comment ids, not the thread: you fetch each comment yourself.
How to do it with Groundsocial
If you need search or whole threads in one call, Groundsocial has full-text story search and a story’s complete comment tree at 1 credit each.
curl "https://api.groundsocial.dev/v1/hackernews/search?q=sqlite&sort=date&hitsPerPage=50" \
-H "Authorization: Bearer $GROUNDSOCIAL_API_KEY"| Endpoint | Route | Credits |
|---|---|---|
| Hacker News search API | /v1/hackernews/search | 1 |
| Hacker News comments API | /v1/hackernews/items/{id}/comments | 1 |
| Hacker News front page API | /v1/hackernews/stories | 1 |
More questions
Is the HN API free for commercial use?
The API page states no fee and no key. Read Y Combinator’s terms for your use.
Related
Sources
Checked 27 Nov 2026. Follow the links for the latest.
Hacker News is a trademark of Y Combinator. We are not affiliated with or endorsed by Y Combinator.
Try it on your own data
One key for Reddit, X, TikTok, YouTube, Instagram, Google and more, over REST or MCP. Free credits on signup, no card.