Hacker News API (beta)
Read public Hacker News data in one call: stories, whole comment threads, live feeds, users and full-text search. Responses come in Hacker News’s own items and search hits, over REST or MCP.
- Endpoints
- 5
- From
- 1 credit · $0.01
- Failed calls
- Refunded
- Access
- REST · MCP · SDK
Hacker News item API
Endpoint details →import os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/hackernews/items/8863",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json(){ "id": 8863, "type": "story", "by": "dhouston", "time": 1175714200, "title": "My YC app: Dropbox - Throw away your USB drive", "url": "http://www.getdropbox.com/u/2/screencast.html", "score": 104, "descendants": 71, "kids": [ 9224, 8917, "… 31 more" ]}All Hacker News endpoints
Credits per call · refunded on failure · Code tutorialsWhat people build with it
Brand monitoring
Catch every thread that mentions you or a competitor.
Research agents
Answers grounded in what people actually wrote.
Lead signals
Find people asking for what you sell.
Pricing
Pay per call with credit packs that never expire, or keyless per call. No subscription. 100 free credits to start.
All packs →| Provider | Per 1,000 | Unit |
|---|---|---|
| Groundsocial | $1.00 → $0.40 | standard calls; $0.01 per call keyless |
Other providers’ prices from their public pages, in their own currency. A credit buys a different amount on each.
Hacker News API questions
Do I need a Hacker News account or API key?
No. Every call reads what Hacker News shows a logged-out visitor. You only need a Groundsocial API key, or none at all with pay-per-call.
How much does the Hacker News API cost?
From 1 credit per call. Credits cost $1.00 to $0.40 per 1,000 depending on the pack, or $0.01 per call keyless. Failed calls are refunded. You start with 100 free credits.
What format is the data in?
Responses come in Hacker News’s own items and search hits, not a lossy cross-platform schema, so field names match what Hacker News itself uses.
Can an AI agent use it?
Yes. Every Hacker News endpoint is an MCP tool (hackernews_story_get, …), and agents can sign themselves up with POST /v1/agent/signup.
Is it official?
No. Groundsocial is an independent API for public data. Hacker News is a trademark of Y Combinator. We are not affiliated with or endorsed by Y Combinator.
More communities & q&a APIs
All platforms →Hacker News is a trademark of Y Combinator. We are not affiliated with or endorsed by Y Combinator.