W

Workers · Preflight

by Workers

POSTBase

$0.01

per call · USD Coin on Base

Preflight before paying an x402 service: is it working right now, and did it work the past 30 days? One live probe of the exact resource URL you intend to pay (status, latency, x402 validity, the payTo/price the service itself publishes in its 402, manifest presence) plus our own monitoring history of the host (30-day uptime, last check, recent changes such as payTo or price drift). Optionally verifies that the pay_to you intend to pay matches the live 402. Facts only — no scores.

Endpoint

POST https://agentdata-api.sander-van-aard.workers.dev/x402/preflight

1

Calls / 30d

1

Unique payers / 30d

Aug 30

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://agentdata-api.sander-van-aard.workers.dev/x402/preflight", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "pay_to": "0x0000000000000000000000000000000000000001",
    "resource": "https://api.example-service.com/data"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://agentdata-api.sander-van-aard.workers.dev/x402/preflight" \
  -H "Content-Type: application/json" \
  -d '{"pay_to":"0x0000000000000000000000000000000000000001","resource":"https://api.example-service.com/data"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "checked_at": "2026-07-14T08:00:00.000Z",
  "history": {
    "hosts": [
      {
        "host": "api.example-service.com",
        "uptime_30d_pct": 99.1
      }
    ],
    "monitored": true
  },
  "live": {
    "latency_ms": 320,
    "manifest_present": true,
    "observed_pay_to": "0x0000000000000000000000000000000000000001",
    "pay_to_matches_live": true,
    "status": "ok_402"
  },
  "status_page": "https://x402-monitor.sander-van-aard.workers.dev/status/api.example-service.com"
}

Payment details

Pay to0xb0ae6a9bd7a573ddda58db6c28622417e8ca2099
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Other and the homepage with a featured placement.

Get featured →

More from Workers & similar services