XPack

YC Hacker news official

@XPack

The official Hacker News API offers multiple endpoints. Access job, ask, show, new, best stories. Get updated items, top stories, user info by id, max item, and item by id. Use HTTP requests to appropriate URLs, with JSON responses. Refer to docs for details.

YC Hacker news official

The official hacker news API provides various endpoints to access different types of content on Hacker News.

Endpoints

job stories

Returns up to 200 of the latest Job HN Stories.

ask stories

Returns up to 200 of the latest Ask HN Stories.

updates

Get the changed items and profiles.

top stories

Returns the current top 100 stories.

user by id

Users are identified by case - sensitive ids. This endpoint allows you to retrieve user information based on the provided id.

max item

Get the current largest item id.

show stories

Returns up to 200 of the latest Show HN Stories.

new stories

Returns the current top 100 stories.

best stories

Returns up to the current best 500 stories.

item by id

Stories, comments, jobs, Ask HNs and even polls are just items. They're identified by their ids, which are unique integers. This endpoint allows you to retrieve an item based on its id.

Usage

To use these endpoints, you need to make HTTP requests to the appropriate URLs. For example, to get the top stories, you can send a GET request to the /topstories endpoint. The response will be in a JSON format containing the relevant data.

The specific request parameters and response formats may vary depending on the endpoint. It's recommended to refer to the official documentation of the Hacker News API for detailed information on how to construct requests and interpret responses.

Please note that when using the user by id endpoint, make sure to provide the correct case - sensitive id of the user you want to retrieve. And when using the item by id endpoint, use the unique integer id of the item you are interested in.

XPack MCP
{
  "mcpServers": {
    "yc-hacker-news-official": {
      "type": "sse",
      "autoApprove":"all",
      "url": "https://mcp.xpack.ai/v1/mcp/yc-hacker-news-official?authkey={Your-XPack-Auth-Key}"
    }
  }
}
© 2025 XPack. All rights reserved.