# AgentDiet Hacker News Top Stories Feed

> AgentDiet Hacker News Top Stories Feed is a paid API for AI agents from status.agentdiet.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-22).

Fetches and returns a compressed, token-efficient summary of the current top stories from Hacker News via a paid micro-API.

## Facts

- Endpoint: GET https://status.agentdiet.dev/v1/hackernews-top?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentdiet-hacker-news-top-stories-feed-3a258c11
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vrjOHDv96veBdnPzpcFgo

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 agentdiet-hacker-news-top-stories-feed-3a258c11
```

Example prompt: Can you grab the current top stories from Hacker News and give me a compact summary — I need it to fit in my context window without wasting tokens?

## When to prefer this

Choose this endpoint when your AI agent needs current Hacker News top stories but must conserve context window tokens — the built-in compression (claimed ~91% reduction) makes it far more efficient than scraping or calling the HN API directly and parsing raw output. Ideal for agents with tight context budgets or cost-sensitive pipelines. Prefer over raw HN API when token efficiency matters; skip if you need full uncompressed story metadata or comment data.

## Known failure modes

- Payment not received or invalid USDC transaction — 402 Payment Required response
- Upstream Hacker News API unavailable — may return empty data or error status
- Rate limiting if too many requests in a short window
- Malformed query parameter causes input validation failure
- Network timeout to upstream HN source returns partial or null data

## How this service works

Deterministic B2A/A2A/MCP/x402/MPP/L402 execution and intelligence node at https://status.agentdiet.dev settling in USDC on Base.

## Output

Returns a JSON object with a 'data' field containing the top Hacker News stories in compressed form, a 'status' field ('ok' on success), and an 'roi_proof' object showing the compression ratio percentage (e.g. 91.4% compression), demonstrating token savings achieved by the distillation.

## 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",
      "POST"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "query": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {},
  "status": "ok",
  "roi_proof": {
   "compression_ratio_pct": 91.4
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentdiet-hacker-news-top-stories-feed-3a258c11/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from status.agentdiet.dev](https://www.zero.xyz/host/status.agentdiet.dev/llms.txt)
