# Hacker News Search via Algolia

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

Searches 30M+ Hacker News stories and comments with filtering by type, author, points, and date range, returning ranked results with metadata

## Facts

- Endpoint: POST https://x402-deployer.x402-deployer.workers.dev/hacker-news-search
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-deployer-x402-deployer-workers-dev-d739d923
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_T_Gow95JangaPZAvEiEQA

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 x402-deployer-x402-deployer-workers-dev-d739d923 -d '<json body>'
```

Example prompt: Search Hacker News for stories about 'WebAssembly' from the last 6 months, sorted by points, with at least 50 points — only stories, not comments.

## When to prefer this

Use this endpoint when you need to search or browse Hacker News content programmatically — especially when filtering by date range, minimum points, author, or post type. Prefer this over general web search when the user specifically wants HN community sentiment, top-voted tech discussions, or YC-adjacent startup news.

## Known failure modes

- Invalid date format returns error (must be ISO8601)
- Unknown sort parameter returns error
- Empty query with no filters returns unfiltered results or error
- Rate limit or payment failure returns 402 or 429
- Very broad queries may return truncated result sets

## How this service works

Hacker News search / HN search / yc-news / Algolia HN. Searches 30M+ Hacker News stories and comments. Filter by type (story/comment/poll), author, min points, ISO8601 date range; sort by relevance or recency. Returns title, author, points, comment count, URL.

## Output

A list of matching Hacker News items each containing: title, author username, points score, comment count, original URL, and publication date; ranked by relevance or recency depending on sort parameter.

## Example request

```json
{
 "type": "story",
 "query": "artificial intelligence",
 "sortBy": "points",
 "dateRange": {
  "end": "2024-12-31T23:59:59Z",
  "start": "2024-06-01T00:00:00Z"
 },
 "minPoints": 50
}
```

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [
      "query"
     ],
     "properties": {
      "sort": {
       "enum": [
        "relevance",
        "date"
       ],
       "type": "string",
       "description": "'relevance' (default, popularity-weighted) or 'date' (most-recent-first)."
      },
      "type": {
       "enum": [
        "story",
        "comment",
        "poll"
       ],
       "type": "string",
       "description": "Restrict to a single HN item type. Omit to include all types."
      },
      "limit": {
       "type": "number",
       "description": "Max hits to return. 1-20. Default 10."
      },
      "query": {
       "type": "string",
       "description": "Free-text search query (matches title, body, author, URL)."
      },
      "since": {
       "type": "string",
       "description": "Lower bound on created_at — ISO8601 date (YYYY-MM-DD) or full timestamp."
      },
      "until": {
       "type": "string",
       "description": "Upper bound on created_at — ISO8601 date (YYYY-MM-DD) or full timestamp."
      },
      "author": {
       "type": "string",
       "description": "Filter to a specific HN username (e.g. 'pg', 'dang')."
      },
      "min_points": {
       "type": "number",
       "description": "Minimum points (upvotes) floor. Comments don't have points; using this implicitly filters to stories."
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "query": {
       "type": "string"
      },
      "source": {
       "type": "string"
      },
      "results": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "id": {
          "type": "string"
         },
         "url": {
          "type": "string"
         },
         "title": {
          "type": "string"
      
… (truncated)
```

## More

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