4

402oracle · Verify Freshness

by 402oracle

POSTBaseArbitrumPolygon

$0.02

per call · USD Coin on Base

Check that a URL is live and its data is fresh before your agent acts on its contents. A freshness oracle: returns HTTP status, Last-Modified/ETag, a content SHA-256, and whether the content changed versus a prior hash. Returns a signed attestation.

Endpoint

POST https://402oracle.com/verify/freshness

2

Calls / 30d

1

Unique payers / 30d

Sep 10

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://402oracle.com/verify/freshness", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "url": "https://example.com/data.json"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://402oracle.com/verify/freshness" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com/data.json"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "attestation": {
    "confidence": 0.98,
    "result": {
      "changed": false,
      "content_sha256": "9f86d081884c7d65",
      "reachable": true,
      "status": 200
    },
    "subject": {
      "url": "https://example.com/data.json"
    },
    "type": "freshness_verification"
  },
  "signature": {
    "alg": "ES256",
    "jwks": "/.well-known/jwks.json"
  }
}

Payment details

Pay to0x7a19cd388c7f69145fef09b960853e0a429b6f4a
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Arbitrum, Polygon
Schemesexact

Is this your API?

Pin it to the top of Data & Enrichment and the homepage with a featured placement.

Get featured →

More from 402oracle & similar services