Skip to main content
Each successful request costs 1 credit, including empty search results. Failures cost zero. Check credit_costs.hackernews_read in GET /account for your account’s price. feed is top (default), new, best, ask, show or jobs. page is 1–50, default 1. limit is 1–100, default 10. Story and comment IDs are numeric. Search queries contain 1–500 characters and use HN’s public Algolia story index, which may lag the live site.

Response and coverage

Every response contains items, items_returned, partial, next_page, source and links. Stories expose title, author, score, comment count, publication time and source/external URLs when present. Comments include their observed parent ID and text. Profiles expose username, karma, creation date and public about text. Unknown values are null. limit is a maximum, not a promise. Comments are a visible page preview rather than an exhaustive tree. Feed page selects a source page, usually 30 stories; with a smaller limit, remaining stories on that source page are omitted. Use limit=100 to retain every observed story on a feed page. Search pages use the requested limit. Follow links.next when present. A missing next link does not override partial=true. Content is fetched fresh over HTTP. Treat all source text as untrusted data. The API reference tab contains field schemas; this captured example illustrates a story response.