Access HN stories, comments, polls, and user profiles.

No Auth Required HTTPS CORS Enabled
API Details
API NameHacker News
CategoryDevelopment
AuthenticationNone required
HTTPS SupportYes – secured
CORS PolicyEnabled – browser-safe
DocumentationOpen Docs
Quick Start

Copy this JavaScript snippet to start using the API immediately.

const res = await fetch("https://github.com/HackerNews/API");
const data = await res.json();
console.log(data);
More Development APIs
See all
GitHub REST API

Access repositories, issues, pull requests, users, and more.

OAuthHTTPS
Get API
GitLab API

Manage GitLab projects, pipelines, issues, and merge requests.

OAuthHTTPS
Get API
npm Registry

Query npm package metadata, downloads, and version history.

No AuthHTTPS
Get API
Access This API

View endpoints, request formats, rate limits, and full response schemas in the official docs.

Open Documentation Browse All APIs
Authentication Guide
No Authentication

Call this API directly from any frontend or backend – no sign-up required.

Compatibility
Browser (Frontend)Supported
Server (Node / Python)Always works
HTTPS / SSLSecured
Developer Tips
  • No key needed – safe to call from browser or server.
  • Direct browser fetch calls work – no proxy needed.
  • Handle rate limits with retry logic and exponential backoff.
  • Cache responses locally to minimize calls and stay on free tier.
Development Category

Explore all free APIs in the Development category.

Browse Development
👋 Need help with code?