Hacker News top stories

$0.01 per call · failed calls are never charged · no account or subscription: pay per call with a card key or USDC

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.

Run it free (25 free calls) Buy credits by card (from $1) Example result (JSON)

Try it with your own inputs

How many (1-20, default 10)

Uses one of your 25 free calls. Nothing is charged, and a call that fails is not counted.

Inputs

NameTypeDescription
countintegerHow many (1-20, default 10)

Request

Over HTTP, with a card key from /credits:

curl -H "Authorization: Bearer adt_…" "https://agent-data-tools.revmesh2074.workers.dev/hackernews/top?count=5"

Or one of your 25 free calls, no key:

curl "https://agent-data-tools.revmesh2074.workers.dev/hackernews/top?count=5&trial=1"

Without a key, the same URL answers 402 Payment Required with x402 and MPP terms, so an agent with a wallet pays per call in USDC (Base, Polygon, Arbitrum or Solana over x402; Base or Tempo over MPP) and retries.

Example result

{
  "count": 1,
  "stories": [
    {
      "id": 1,
      "title": "Show HN: …",
      "url": "https://…",
      "points": 312,
      "comments": 140,
      "by": "user",
      "time": "2026-10-18T09:00:00.000Z",
      "discussion": "https://news.ycombinator.com/item?id=1"
    }
  ]
}

From an AI agent (MCP)

Add the MCP server to Claude, Cursor or any MCP client. This tool is hackernews_top, and the first 25 successful calls are free:

https://agent-data-tools.revmesh2074.workers.dev/mcp

Related tools