# Open Search: Hacker News Story Search

> Open Search: Hacker News Story Search is a paid API for AI agents from open-search.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-11-02).

Search Hacker News stories by relevance, returning title, link, discussion link, points, comment count, and date for each result.

## Facts

- Endpoint: GET https://open-search.x402tookit.com/search-discussions?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/open-search-hacker-news-story-search-568a1d86
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1_-TDi709RGXgu2eRVgqX

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 open-search-hacker-news-story-search-568a1d86
```

Example prompt: Search Hacker News for discussions about WebAssembly and show me the top 5 results with their titles, links, points, and comment counts.

## When to prefer this

Choose this endpoint when you specifically need to search Hacker News — the primary tech-savvy developer and startup community — for stories, discussions, and community reactions. Prefer it over generic web search when you want engagement signals (points, comments) or direct links to HN discussion threads. Use the multi-source sibling endpoint if you also want Wikipedia or academic results alongside HN.

## Known failure modes

- Query exceeds 200 characters — request rejected
- Limit parameter outside 1–10 range — validation error
- No results found for obscure or very recent queries
- Service degraded flag set true when upstream HN search is partially unavailable
- Missing required 'q' parameter returns error

## How this service works

Search Hacker News stories by relevance: title, link, discussion link, points, comment count and date.

## Output

Returns a structured response containing the search query, a list of matching Hacker News stories (each with title, URL, discussion link, points, comment count, and date), a summary, and metadata including source URL and whether the results are degraded.

## 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 words, up to 200 characters"
      },
      "limit": {
       "type": "integer",
       "description": "Results to return, 1 to 10 (default 5)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "query": {
       "type": [
        "null",
        "string"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ]
      },
      "results": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "object",
        "properties": {
         "url": {
          "type": [
           "null",
           "string"
          ]
         },
         "date": {
          "type": [
           "null",
           "string"
          ]
         },
         "title": {
          "type": [
           "null",
           "string"
          ]
         },
         "points": {
          "type": [
           "null",
           "number"
          ]
         },
         "source": {
          "type": [
           "null",
           "string"
          ]
         },
         "comments": {
          "type": [
           "null",
           "number"
          ]
         },
         "discussion": {
          "type": [
           "null",
           "string"
          ]
         }
        }
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "sourceUrl": {
       "type": [
        "null
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/open-search-hacker-news-story-search-568a1d86/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from open-search.x402tookit.com](https://www.zero.xyz/host/open-search.x402tookit.com/llms.txt)
