HTTP headers + security analysis

$0.003 per call · USDC via x402 · POST /api/http-headers

Fetch a URL and return every response header plus a security analysis: HSTS, CSP, X-Frame-Options, X-Content-Type-Options, Referrer-Policy, Permissions-Policy, COOP/CORP/COEP. Send POST /api/http-headers with the required field url and pay $0.003 per call over x402 or MPP (there is no free tier). It returns a JSON object with url, finalUrl, status, statusText, redirected and 4 more.

Scores 0–100 by presence, flags weak HSTS, and warns on Server/X-Powered-By identity leaks. SSRF-protected.

Category: Network & domains · Tags: security headers audit hsts csp compliance

TRY IN PLAYGROUND →

Parameters

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

Example request

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

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

Example response

{
  "url": "https://agent402.tools/",
  "finalUrl": "https://agent402.tools/",
  "status": 200,
  "statusText": "OK",
  "redirected": false,
  "httpVersion": null,
  "headers": {
    "content-type": "text/html; charset=utf-8",
    "server": "railway-hikari",
    "x-content-type-options": "nosniff"
  },
  "security": {
    "score": 100,
    "findings": [
      {
        "header": "HSTS",
        "present": true,
        "value": "max-age=63072000; includeSubDomains; preload"
      },
      {
        "header": "XCTO",
        "present": true,
        "value": "nosniff"
      }
    ],
    "warnings": [
      "info: Server header names the platform (railway-hikari); also visible from DNS, low value to hide"
    ]
  },
  "fetchedAt": "2026-06-19T22:00:00.000Z"
}
FieldTypeAlways presentIn the example
urlstringyeshttps://agent402.tools/
finalUrlstringyeshttps://agent402.tools/
statusnumberyes200
statusTextstringyesOK
redirectedbooleanyesfalse
httpVersionnullnonull
headersobjectyes3 fields: content-type, server, x-content-type-options
securityobjectyes3 fields: score, findings, warnings
fetchedAtstringyes2026-06-19T22:00:00.000Z

From an MCP client

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

The hosted connector at https://agent402.tools/mcp needs a payment for http-headers; 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-headers", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "url": "https://agent402.tools"
  }),
});

Part of these workflows

HTTP headers + security analysis is one step in these 11 skill packs, each sold as a single call:

Related tools

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…

Tech stack detection

$0.005 · POST /api/tech-stack

Detect the technology stack of a public website: CDN, web server, language/runtime, frontend framework (Next.js, Nuxt, S…

Domain security & deliverability audit (graded)

$0.60 · POST /v1/domain-audit

Hand over a domain and get one graded security & email-deliverability audit: SPF, DMARC, DKIM and MX (why your mail land…

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…

Email deliverability check

$0.002 · POST /api/email-deliverability

End-to-end email-auth report for a domain: SPF + DMARC + DKIM (probes common selectors automatically) + MX records + sco…

HTTP check

$0.001 · POST /api/http-check

Check any public URL: status code, latency, final URL after redirects, and response headers. The uptime primitive for ag…