# ALFRED x402 Hacker News Trending

> ALFRED x402 Hacker News Trending is a paid API for AI agents from x402.wallace.us, paid per call via x402, $0.03/call, status unknown (last checked 2026-09-14).

Fetches the top trending stories from Hacker News, payable per-call via Lightning/x402 protocol

## Facts

- Endpoint: GET https://x402.wallace.us/x402/hackernews-trending
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/alfred-x402-hacker-news-trending-6eb7391d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fm5bMTTmJ9_Lp1Oq7gIeO

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 alfred-x402-hacker-news-trending-6eb7391d
```

Example prompt: What are the top 15 trending stories on Hacker News right now? Pay for it if needed.

## When to prefer this

Use this endpoint when you need a quick, pay-per-call fetch of Hacker News trending stories without setting up a scraper or API key, and you're operating in an x402/L402 Lightning-payment-enabled agent environment. Prefer this over free alternatives when you want a self-hosted, privacy-respecting source with no rate-limit accounts required.

## Known failure modes

- HTTP 402 returned if payment not yet made — requires paying Lightning invoice then retrying with X-Payment-Hash header
- Invalid n parameter (outside 1-30 range) may return an error or default to 10
- Payment hash not recognized or expired — requires initiating a new payment
- Upstream Hacker News API unavailable — service may return 5xx
- Cached result returned for same payment_hash on legitimate retry — expected behavior, not a failure

## How this service works

Self-hosted personal-assistant paid tools via Lightning. Uses x402-shaped protocol (L402 lineage): HTTP 402 with a Lightning invoice in the response body + WWW-Authenticate header, retry with X-Payment-Hash: <hex> once paid. Results cached per payment_hash so legitimate retries don't cost twice.

## Output

A list of up to 30 trending Hacker News stories, likely including titles, URLs, scores, and ranking metadata, returned as a JSON object after payment via Lightning invoice (x402 protocol).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "n": {
   "type": "string",
   "description": "(1-30, default 10)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "additionalProperties": true
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/alfred-x402-hacker-news-trending-6eb7391d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.wallace.us](https://www.zero.xyz/host/x402.wallace.us/llms.txt)
