# Hacker News Search via Algolia (x402node)

> Hacker News Search via Algolia (x402node) is a paid API for AI agents from api.x402node.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Searches Hacker News stories and comments using Algolia, returning titles, authors, points, URLs, comment counts, timestamps, and text.

## Facts

- Endpoint: GET https://api.x402node.dev/forum/hn
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-x402node-dev-03661192
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GQUYnMDRQ5x0NZlSPgeaJ

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability api-x402node-dev-03661192
```

Example prompt: Search Hacker News for the top 10 stories about WebAssembly — I want titles, authors, points, and links.

## When to prefer this

Use this endpoint when an AI agent needs to research tech community discussions, developer opinions, debugging experiences, or tech news as discussed on Hacker News specifically. Prefer over generic web search when the target audience is the HN developer community and you need structured metadata like points, author, and comment counts.

## Known failure modes

- Empty results if query matches no HN content
- Invalid type parameter (must be 'story' or 'comment') may return error or default behavior
- Rate limiting or payment failure if x402 micropayment is not resolved
- Very broad queries may return noisy or irrelevant results

## How this service works

Search Hacker News stories and comments via Algolia. Returns title, author, points, URL, num_comments, created_at, story/comment text. Use ?q=YOUR_QUERY and type=story (default) or type=comment, and limit=10. Built for AI coding agents researching tech discussions, debugging tips, and tech opinions, hn front page, hacker news top stories Accepts payment on Base or Solana — either network works.

## Output

Returns a list of Hacker News stories or comments matching the query, each with title, author, points, URL, number of comments, creation timestamp, and story/comment text body.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "q"
     ],
     "properties": {
      "q": {
       "type": "string",
       "description": "Search query (required)"
      },
      "type": {
       "type": "string",
       "description": "Type (optional)"
      },
      "limit": {
       "type": "string",
       "description": "Max results (optional)"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-x402node-dev-03661192/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.x402node.dev](https://www.zero.xyz/host/api.x402node.dev/llms.txt)
