82trust / 100

Verify Freshness

by 402oracle in Security & trust

x402 APIPassing, checked 3 h ago

Website uptime and change check: is this URL up right now, and has the page changed? Fetches the URL and returns the HTTP status, Last-Modified and ETag headers, a SHA-256 fingerprint of the content, and whether it changed versus a hash you pass in. Use it to check a site is live, detect stale data, monitor a page for changes, or decide whether to invalidate a cache before your agent acts on what it says. Returns a signed attestation.

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

Last 30 days

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

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://402oracle.com/verify/freshness" \
  -H "content-type: application/json" \
  -d '{"url":"https://example.com/data.json"}'
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.03:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2F402oracle.com%2Fverify%2Ffreshness
const res = await pay("https://402oracle.com/verify/freshness", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"url":"https://example.com/data.json"}),
});
console.log(await res.json());

Example input

{
  "url": "https://example.com/data.json"
}

Example output

{
  "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"
  }
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed402249 ms$0.02