HTTP check

$0.001 per call · USDC via x402 · POST /api/http-check

Check any public URL: status code, latency, final URL after redirects, and response headers. Send POST /api/http-check with the required field url and pay $0.001 per call over x402 or MPP (there is no free tier). It returns a JSON object with up, status, latencyMs, finalUrl and headers.

The uptime primitive for agent monitors.

Category: Network & domains · Tags: uptime monitoring http headers latency website site up

TRY IN PLAYGROUND →

Parameters

NameTypeRequiredDescription
urlstringyesPublic http(s) URL Also accepted as link, uri, href, page.
methodstringnoGET (default) or HEAD

Example request

curl -i -X POST https://agent402.tools/api/http-check \
  -H "Content-Type: application/json" \
  -d '{"url":"https://agent402.tools"}'

Without payment this returns HTTP 402 Payment Required with the exact price for http-check; any x402 v2 or MPP client pays it and retries.

Example response

{
  "up": true,
  "status": 200,
  "latencyMs": 87,
  "finalUrl": "https://agent402.tools/",
  "headers": {
    "content-type": "text/html; charset=utf-8"
  }
}
FieldTypeAlways presentIn the example
upbooleanyestrue
statusnumberyes200
latencyMsnumberyes87
finalUrlstringyeshttps://agent402.tools/
headersobjectyes1 field: content-type

From an MCP client

catalog.call {
  "slug": "http-check",
  "params": {
    "url": "https://agent402.tools"
  }
}

The hosted connector at https://agent402.tools/mcp needs a payment for http-check; the stdio package pays it from a wallet or from AGENT402_CREDITS_KEY. Local install: npx -y agent402-mcp.

Errors and behavior

Paid call (JavaScript agent)

import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client();
client.setSpendControls?.(false); // keep your own spending ceiling in code
registerExactEvmScheme(client, { signer: privateKeyToAccount(KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);

const res = await payFetch("https://agent402.tools/api/http-check", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "url": "https://agent402.tools"
  }),
});

Part of these workflows

HTTP check is one step in these 6 skill packs, each sold as a single call:

Related tools

Fetch JSON

$0.002 · POST /api/fetch-json

Fetch a public URL and return its JSON response body as parsed JSON, with the final URL after redirects and the content …

HTTP headers + security analysis

$0.003 · POST /api/http-headers

Fetch a URL and return every response header plus a security analysis: HSTS, CSP, X-Frame-Options, X-Content-Type-Option…

A2A Agent Card fetch

$0.005 · POST /api/a2a-card-fetch

Discover and fetch a site's A2A (Agent2Agent protocol) Agent Card - tries /.well-known/agent-card.json then /.well-known…

ASN + IP geolocation

$0.001 · POST /api/asn-info

Look up the Autonomous System (ASN), prefix, country, registry, and allocation date for an IPv4 address - or for a hostn…

Certificate transparency search

$0.005 · POST /api/cert-transparency

Search public Certificate Transparency logs for every cert issued to a domain. Two independent public CT search services…

DKIM key lookup

$0.002 · POST /api/dkim-lookup

Fetch and parse a DKIM public-key record at <selector>._domainkey.<domain> (RFC 6376). Returns the parsed key params (al…