hackernews-api/search
Search the public hn.algolia.com index by term. No key, no account, and the same envelope as every other endpoint here.
| Name | What it is |
|---|---|
q | The search term. 1 to 80 characters. |
limit | 1 to 100, default 25. Out of range is a 400, never trimmed. |
q (a search term, not a handle)hits is an arrayidtitleurlpublished_atmetrics.pointsmetrics.commentsA field we cannot read comes back null, never 0. A zero would be a claim about the account; null is a fact about our collection.
Measured against the live index on 2026-09-30: `ai agent` in the archiver's own 48-hour window returned 30 items; the same term with the window off and limit=10 returned 10; a term nobody has posted returned HTTP 200 with nbHits 0 and an empty array.
1 credit per call. A call that finds nothing costs nothing.
Because it is an answer. We searched and there is nothing there — that is information, and it is returned as HTTP 200 with an empty items array. What is never charged is a failed fetch.
No. Titles only, and typo tolerance is off. Both were measured on 2026-09-05: with them on, `mrr` returned 81 results and not one was about MRR — the first five were macOS wallpapers, Nitter instances, a data centre article, Project Xanadu, and US Navy submarine spending.