Skip to content
Fourohtwo

Hacker News stories and comments

fiatdock.com/v1/news/hackernews

Hacker News stories and comments: the current front page, or a search by words (relevance or newest first), filtered by type (story, comment, Ask HN, Show HN) and time window - each with title, link, discussion link, author, points, comment count, time and the text as plain text. Via the HN Search API by Algolia. No match is 404 and not charged. Pay-per-call via x402.

BaseSolanaAnswering
POSThttps://fiatdock.com/v1/news/hackernews

Uptime100% of 5 checks in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://fiatdock.com/v1/news/hackernews", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"limit":2,"query":"x402","sort":"relevance","type":"story"}),
});
console.log(await res.json());

Example input

{
  "limit": 2,
  "query": "x402",
  "sort": "relevance",
  "type": "story"
}

More from FiatDockProvider status