> For the complete documentation index, see [llms.txt](https://docs.fastn.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fastn.ai/connectors/catalog/entertainment-media/hackernews.md). Agents can also search and read this documentation through its [MCP server](https://docs.fastn.ai/~gitbook/mcp).

# Hacker News

Hacker News is a tech news community. Search stories and comments by relevance or date, and read items and users.

![Hacker News logo](https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-b606b4f8e7949332fec64d734def36d90b34318d%2Fhackernews.png?alt=media)

|                    |                                                                                            |
| ------------------ | ------------------------------------------------------------------------------------------ |
| **Category**       | [Entertainment and media](https://docs.fastn.ai/connectors/catalog/entertainment-media.md) |
| **Website**        | [hn.algolia.com](https://hn.algolia.com)                                                   |
| **Authentication** | No sign-in needed                                                                          |
| **Slug**           | `hackernews`                                                                               |
| **On fastn.ai**    | [Embed Hacker News in your product](https://fastn.ai/integrations/hacker-news)             |

## Setup

Hacker News needs no sign-in, so there is nothing to set up. Add it and use its actions.

## Connect in Fastn

Your customers connect Hacker News from your widget. To connect an account yourself:

1. Go to **Build → Integrations → Connectors** and search for **Hacker News**.
2. Select **Connect** on the Hacker News card.

   <figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-586dd03cdc0c6904263f58928d7a531eae2f85df%2Fconnect-search.png?alt=media" alt="The Connectors page in Fastn with ServiceNow typed in the search box and the ServiceNow card showing a Connect button"><figcaption><p>Search for the connector, then select Connect on its card. ServiceNow is shown here.</p></figcaption></figure>
3. Hacker News needs no credentials. Select **Connect** in the dialog that opens.
4. Check that the connection appears under **Operate → Connections** with the status `Active`. Your workflows can now use Hacker News's actions.

For more detail, see [Connect an app](https://docs.fastn.ai/build/integrations/connectors/connect-an-app.md).

## Actions

<table><thead><tr><th width="240">Action</th><th width="260">Slug</th><th>What it does</th></tr></thead><tbody><tr><td>Get Item</td><td><code>getItem</code></td><td>Retrieve a story or comment by id with full nested comment tree.</td></tr><tr><td>Get User</td><td><code>getUser</code></td><td>Retrieve an HN user profile.</td></tr><tr><td>Search By Date</td><td><code>searchByDate</code></td><td>Same as search but ordered by date (newest first). Use this for time-based polling of new HN content.</td></tr><tr><td>Search By Relevance</td><td><code>searchByRelevance</code></td><td>Full-text search.</td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.fastn.ai/connectors/catalog/entertainment-media/hackernews.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
