Publishers and feeds

Hacker News API

by github.com

Publishers and feeds Added on October 31st, 2026
Visit github.com →

What it does

The official Hacker News API makes the stories, comments, polls and users of Hacker News available in near real time, through Firebase. Get the lists of top, new, best, Ask HN, Show HN and job stories, then fetch each item by its ID. Responses are JSON and there is no rate limit or key. Free.
  • API
  • HTTP-GET
  • JSON
  • REST

At a glance

API key
Not needed · More APIs with no key
Pricing
Free.
From the browser
Yes (CORS)
Formats
JSON
Interface
REST, HTTP-GET
Provider
github.com

More information: https://github.com/HackerNews/API

Is this your service? Show that it is listed

Put this badge on your website or in your README; it links to this page. About the badge

Listed on Free Web Services

github.com
Hacker News API

Example request

curl

curl 'https://hacker-news.firebaseio.com/v0/item/8863.json'

JavaScript

const response = await fetch("https://hacker-news.firebaseio.com/v0/item/8863.json");
const data = await response.json();
console.log(data);

Python

import requests

response = requests.get(
    "https://hacker-news.firebaseio.com/v0/item/8863.json",
    timeout=30,
)
print(response.json())

The JavaScript works in a web page as well as in Node.js 18 or newer.

Did it work for you?

Tell us what you found when you tried Hacker News API.