81trust / 100

Dev Hn Top

by eu-verify in News & content

x402 APIPassing, checked 2 h ago

Current Hacker News front page via the official Firebase API, fanned out and merged into one payload: id, title, url, score, comment count and age in minutes per story. Query: ?n=20 (1-30 stories) &min_score=100 (optional score floor). Real-time tech signal for launch/incident/buzz detection. 5min cache.

GET https://x402-datashop-production.up.railway.app/v1/dev/hn-top

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
176 ms typical, 176 ms slowest 5%
Last check
2 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://x402-datashop-production.up.railway.app/v1/dev/hn-top?min_score=100&n=10"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fx402-datashop-production.up.railway.app%2Fv1%2Fdev%2Fhn-top
const res = await pay("https://x402-datashop-production.up.railway.app/v1/dev/hn-top?min_score=100&n=10");
console.log(await res.json());

Example input

{
  "min_score": 100,
  "n": 10
}

Example output

{
  "count": 2,
  "source": "Hacker News official Firebase API (live front page)",
  "stories": [
    {
      "age_min": 254,
      "comments": 141,
      "id": 48888518,
      "score": 312,
      "title": "Show HN: A fast SQLite VFS",
      "url": "https://example.dev/sqlite-vfs"
    },
    {
      "age_min": 402,
      "comments": 87,
      "id": 48888193,
      "score": 205,
      "title": "PostgreSQL 19 released",
      "url": "https://postgresql.org/19"
    }
  ]
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed402332 ms$0.002
7 h agoPassed402176 ms$0.002