News feeds and APIs

Hacker News Search API (Algolia)

by hn.algolia.com

News feeds and APIs Added on November 1st, 2026 Checked and working on November 1st, 2026
Visit hn.algolia.com →

What it does

Algolia's Hacker News Search API adds full-text search to Hacker News: find stories, comments and polls by keyword, sorted by relevance or by date, and filter by tags, author, points or creation date. Items and user profiles are available too. Use it to follow mentions of a product or topic on Hacker News. Call the REST endpoints with GET and get JSON. Free, no key needed, up to 10,000 requests an hour per IP address.
  • API
  • HTTP-GET
  • JSON
  • REST

At a glance

API key
Not needed · More APIs with no key
Pricing
Free, no key needed, up to 10,000 requests an hour per IP address.
From the browser
Yes (CORS)
Formats
JSON
Interface
REST, HTTP-GET
Provider
hn.algolia.com
Last checked
Working on November 1st, 2026

More information: https://hn.algolia.com/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

hn.algolia.com
Hacker News Search API (Algolia)

Example request

curl

curl 'https://hn.algolia.com/api/v1/search?query=hello&hitsPerPage=1'

JavaScript

const response = await fetch("https://hn.algolia.com/api/v1/search?query=hello&hitsPerPage=1");
const data = await response.json();
console.log(data);

Python

import requests

response = requests.get(
    "https://hn.algolia.com/api/v1/search?query=hello&hitsPerPage=1",
    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 Search API (Algolia).