# Hacker News Top Stories Feed

> Hacker News Top Stories Feed is a paid API for AI agents from store.agentexchange.work, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Returns the current top stories from Hacker News including titles, URLs, and scores

## Facts

- Endpoint: GET https://store.agentexchange.work/hn/top
- 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/hacker-news-top-stories-feed-e8a5b980
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7r8se7pG4lgv7ontTi50J

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 hacker-news-top-stories-feed-e8a5b980
```

Example prompt: What are the top 15 stories on Hacker News right now — just the titles, links, and scores?

## When to prefer this

Use this endpoint when you need real-time top Hacker News stories without setting up API keys or signing up for a service. Ideal for AI agents that want pay-per-call access to HN trending content via USDC micropayments on Base. Prefer over direct HN API calls when working within an x402-enabled agent payment flow.

## Known failure modes

- Payment required (402) if x402 USDC payment header is missing or invalid
- top parameter out of range (must be 1-20) may return validation error
- Upstream HN API unavailability could cause timeout or empty results
- Requesting more than 20 stories returns an error or is clamped to max

## How this service works

Current Hacker News top stories with score, author, comment count, and links. For tech-trend, sentiment, and news-monitoring agents. Live from the Hacker News API.

## Output

A JSON object with a count field and a stories array, each story containing a title, URL, and upvote score. Returns up to 20 stories sorted by HN ranking.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "top": 10
  }
 }
}
```

## 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",
     "properties": {
      "top": {
       "type": "number",
       "description": "1-20, default 10"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "count": {
       "type": "number"
      },
      "stories": {
       "type": "array"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/hacker-news-top-stories-feed-e8a5b980/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from store.agentexchange.work](https://www.zero.xyz/host/store.agentexchange.work/llms.txt)
