Hacker News
Read the Hacker News front page, items and user profiles, and search past stories. Public data, no account or credentials needed.
Managed auth
Authentication
Methods your end users can connect with. Credentials are stored encrypted, and secret values are never shown again or returned by the API.
No auth
Tools (4)
Get top stories
HACKERNEWS_GET_TOP_STORIESReturns the current Hacker News front-page ranking (or the new, best, ask, show or job lists) with title, link and score. Use it for a snapshot of what is trending. Paginated with next_cursor; lists hold at most 500 entries.
Required scopes
No scopes required
Input
Get top stories input Name Type Description liststringWhich Hacker News list to read.One of: top,new,best,ask,show,jobDefault:"top"limitintegerMaximum number of items to return (1-100, default 20).Default: 20cursorstringPagination cursor: pass the next_cursor value of the previous response. Omit for the first page. Get item
HACKERNEWS_GET_ITEMFetches one Hacker News item by id: a story, comment, job or poll. Use it to read a story's details or a comment's text. Returns direct child ids only (kids); call again to walk the thread.
Required scopes
No scopes required
Input
Get item input Name Type Description idrequiredintegerHacker News item id. Get user
HACKERNEWS_GET_USERFetches a public Hacker News user profile by username (case-sensitive): karma, account age and about text. Use it to learn about an author. Only users with public activity are returned.
Required scopes
No scopes required
Input
Get user input Name Type Description usernamerequiredstringHacker News username, case-sensitive. Search stories
HACKERNEWS_SEARCH_STORIESFull-text search over Hacker News stories using the Algolia HN Search API, by relevance or by date. Use it to find past discussions of a topic or link. Paginated: pass next_page back as page.
Required scopes
No scopes required
Input
Search stories input Name Type Description queryrequiredstringSearch text. sort_bystring'relevance' ranks by match quality and points, 'date' is newest first.One of: relevance,dateDefault:"relevance"limitintegerMaximum number of items to return (1-100, default 20).Default: 20pageinteger1-based page number. Use next_page from the previous response to continue.Default: 1

