F

fetchx402 · Bundles Uptime Check

by fetchx402

GETBase

$0.015

per call · USD Coin on Base

One-shot reachability: DNS, leaf TLS, and origin headers for one hostname in a single settle. Use when you need live up/degraded/down and must not guess. Child errors stay in-field; we do not invent data.

Endpoint

GET https://api.fetchx402.com/v1/bundles/uptime-check

1

Calls / 30d

1

Unique payers / 30d

Aug 16

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://api.fetchx402.com/v1/bundles/uptime-check", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://api.fetchx402.com/v1/bundles/uptime-check?domain=example.com" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "dns": {
    "domain": "example.com",
    "rcode": "NOERROR",
    "records": [
      {
        "address": "104.20.23.154"
      }
    ],
    "resolver": "1.1.1.1",
    "ttl": 20,
    "type": "A"
  },
  "domain": "example.com",
  "headers": {
    "domain": "example.com",
    "headers": {
      "access-control-allow-origin": null,
      "cache-control": "max-age=604800",
      "content-security-policy": null,
      "content-security-policy-report-only": null,
      "content-type": "text/html",
      "cross-origin-opener-policy": null,
      "cross-origin-resource-policy": null,
      "location": null,
      "permissions-policy": null,
      "referrer-policy": null,
      "server": "ECS (nyb/1D2A)",
      "strict-transport-security": "max-age=31536000",
      "www-authenticate": null,
      "x-content-type-options": null,
      "x-frame-options": null,
      "x-powered-by": null
    },
    "method": "HEAD",
    "peer_ip": "23.215.0.138",
    "status": 200,
    "url": "https://example.com/"
  },
  "ssl": {
    "cipher": "aes_256_gcm_sha384",
    "domain": "example.com",
    "expired": false,
    "fingerprint_sha256": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
    "hostname_match": true,
    "issuer": "CN=DigiCert Global G3 TLS ECC SHA384 2020 CA1, O=DigiCert Inc, C=US",
    "not_after": "2027-01-15T23:59:59Z",
    "not_before": "2026-01-15T00:00:00Z",
    "not_yet_valid": false,
    "peer_ip": "23.215.0.138",
    "port": 443,
    "sans": [
      "www.example.org",
      "example.com",
      "example.net",
      "example.org"
    ],
    "serial": "0f1a2b3c4d5e6f708192a3b4c5d6e7f8",
    "signature_algorithm": "ecdsa-with-SHA384",
    "sni": "example.com",
    "subject": "CN=www.example.org, O=Internet Corporation for Assigned Names and Numbers, C=US",
    "tls_version": "tlsv1.3"
  },
  "verdict": "up"
}

Payment details

Pay to0x33236133bece789d551d0b5c4f9a50095d4b57d3
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 fetchx402 & similar services