# Hacker News Top Stories

> Hacker News Top Stories is a paid API for AI agents from agent-data-tools.revmesh2074.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-12-02).

Fetches the current top stories from Hacker News, returning title, link, points, comment count, author, age, and discussion URL for up to 20 stories.

## Facts

- Endpoint: GET https://agent-data-tools.revmesh2074.workers.dev/hackernews/top?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-02
- Activations on Zero: 0
- Provider: agent-data-tools.revmesh2074.workers.dev
- Website: https://agent-data-tools.revmesh2074.workers.dev
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-data-tools-revmesh2074-workers-dev-hacker-news-top-stories-66f93133
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_b9EeiqGOSinkSIAQHGNbN

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 agent-data-tools-revmesh2074-workers-dev-hacker-news-top-stories-66f93133
```

Example prompt: What are the top 15 stories on Hacker News right now? Give me the titles, links, points, and comment counts.

## When to prefer this

Use this endpoint when you need real-time Hacker News front-page data with structured fields (points, comments, author, discussion URL) in a single low-cost call. Prefer this over scraping HN directly or calling the raw Firebase HN API, which requires multiple sequential requests per story. Choose this over a general web search when the user specifically wants HN community sentiment or developer-focused trending content.

## Known failure modes

- HN API unavailability causing upstream errors
- count parameter outside 1-20 range may be clamped or return an error
- Network timeout if HN API is slow
- Empty stories array if HN API returns no data
- Invalid count type (non-integer) may cause a 400 error

## How this service works

Current top stories on Hacker News: title, link, points, comment count, author, age and discussion URL (official HN API). Use to follow what developers are discussing right now.

## Output

Returns a JSON object with a count field and a stories array. Each story object includes: title, url (link to the article), by (author username), time (ISO timestamp), points (upvote count), comments (number of comments), id (HN story ID), and discussion (link to the HN comments thread).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "count": {
   "type": "integer",
   "description": "How many (1-20, default 10)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "count": {
   "type": "number"
  },
  "stories": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "by": {
      "type": "string"
     },
     "id": {
      "type": "number"
     },
     "url": {
      "type": "string"
     },
     "time": {
      "type": "string"
     },
     "title": {
      "type": "string"
     },
     "points": {
      "type": "number"
     },
     "comments": {
      "type": "number"
     },
     "discussion": {
      "type": "string"
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-data-tools-revmesh2074-workers-dev-hacker-news-top-stories-66f93133/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-data-tools.revmesh2074.workers.dev](https://www.zero.xyz/host/agent-data-tools.revmesh2074.workers.dev/llms.txt)
