Skip to content
Maua.Culturewire

Hacker News

Read the Hacker News front page, items and user profiles, and search past stories. Public data, no account or credentials needed.

Media and entertainment4 tools · 0 triggers

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 storiesHACKERNEWS_GET_TOP_STORIES

    Returns 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
    NameTypeDescription
    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: 20
    cursorstringPagination cursor: pass the next_cursor value of the previous response. Omit for the first page.
  • Get itemHACKERNEWS_GET_ITEM

    Fetches 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
    NameTypeDescription
    idrequiredintegerHacker News item id.
  • Get userHACKERNEWS_GET_USER

    Fetches 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
    NameTypeDescription
    usernamerequiredstringHacker News username, case-sensitive.
  • Search storiesHACKERNEWS_SEARCH_STORIES

    Full-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
    NameTypeDescription
    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: 20
    pageinteger1-based page number. Use next_page from the previous response to continue.Default: 1