HackerNews API
Social news for CS and entrepreneurship
- Our call
- HTTP 200
- Latency
- 256 ms
- From a browser
- Allowed
- Key
- No key
- Docs link
- Answered
https://hacker-news.firebaseio.com/v0/topstories.jsonPress Run: the request leaves from your browser, and you see what it gets back.
const res = await fetch("https://hacker-news.firebaseio.com/v0/topstories.json");
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
console.log(data);curl -sS 'https://hacker-news.firebaseio.com/v0/topstories.json'import requests
r = requests.get("https://hacker-news.firebaseio.com/v0/topstories.json", timeout=10)
r.raise_for_status()
print(r.json())HackerNews docsMore Social APIs
Come back to see anything that changed: answers, keys, browser access, rate limits.
Our test call Measured by us
- Request
GET https://hacker-news.firebaseio.com/v0/topstories.json- Result
- HTTP 200 in 256 ms (257 ms with the body)
- From a browser
- Browser OK Access-Control-Allow-Origin: https://freetierapis.vercel.app
- HTTPS
- Yes
- Response
- application/json, 4,501 bytes, a JSON array
- Rate-limit headers
- none sent (that doesn't mean unlimited)
Access-Control-Allow-Origin: https://freetierapis.vercel.app to us, so browser code can call it.Change log Measured by us
No changes seen since we started tracking on 2026-11-06. Each check compares the answer, the key requirement, the browser (CORS) header and the rate limit with the run before.
What the list says From the public-apis list
- Category
- Social
- Auth
- No key
- CORS
- Not recorded Our call disagrees
- Docs link
- github.com answered 200 in 1936 ms on 2026-11-06 Measured
HackerNews is listed in Social. HackerNews needs no key: you can call it without signing up. The list doesn't record whether it allows browser calls (CORS), so test that before building a browser-only app on it.
The list has 77 Social APIs: 7 need no key, 45 need an API key and 25 use OAuth, and 15 of them are marked as allowing browser calls. 2 others have the same setup, such as Hashnode and Open Collective.
HackerNews and other Social APIs
| Fact | HackerNews (this page) | 4chan | Hashnode | Instagram Posts Generator | Lanyard |
|---|---|---|---|---|---|
| Key needed From the public-apis list | No key | No key | No key | No key | No key |
| CORS, as listed From the public-apis list | Not recorded | Yes | Not recorded | Yes | Yes |
| Our test call Measured by us | 256 ms | 1,464 ms | Not tested | Not tested | Not tested |
| Browser call Measured by us | Allowed | Blocked | — | — | — |
| Docs link Measured by us | Answered | Answered | Answered | Answered | Answered |
Questions
Does HackerNews need an API key?
HackerNews needs no key: you can call it without signing up.
Can I call HackerNews from JavaScript in the browser?
Yes. When we called it it sent Access-Control-Allow-Origin: https://freetierapis.vercel.app, so a web page can call it directly.
Where are the HackerNews docs?
At https://github.com/HackerNews/API. When we checked, the link answered 200 in 1936 ms.
What are some alternatives to HackerNews?
Other Social APIs in the list include Hashnode and Open Collective.
Listing from public-apis (github.com/marcelscruz/public-apis), MIT. Measurements are ours: how we check.