100 free credits. No credit card required. Get a key

Does Hacker News have an API?

Updated 1 source
  • /v0/item/<id>.json for a story or comment, /v0/user/<id>.json for a user.
  • /v0/topstories, newstories, beststories, askstories, showstories, jobstories, plus maxitem and updates.
  • 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"
EndpointRouteCredits
Hacker News search API/v1/hackernews/search1
Hacker News comments API/v1/hackernews/items/{id}/comments1
Hacker News front page API/v1/hackernews/stories1

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.

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.