$0.005
per call · USD Coin on Base
Read allowlisted HTTPS response headers for a hostname (HSTS, CSP, server, CORS). Use when you need live origin headers and must not guess. HEAD of https://{domain}/ on :443; GET if HEAD is 405/501. Redirects are not followed.
Endpoint
GET https://api.fetchx402.com/v1/tools/headers1
Calls / 30d
1
Unique payers / 30d
Aug 16
Last called
exact
Payment scheme
Call this service
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/tools/headers", {
method: "GET",
});
const data = await res.json();curl -X GET \
"https://api.fetchx402.com/v1/tools/headers?domain=example.com" \
-H "X-PAYMENT: <signed x402 payment>"Example response
{
"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/"
}Payment details
0x33236133bece789d551d0b5c4f9a50095d4b57d3USD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913Is this your API?
Pin it to the top of Developer Tools and the homepage with a featured placement.
More from fetchx402 & similar services
fetchx402 · Tools DNS
api.fetchx402.com
Resolve public DNS records (A, AAAA, MX, TXT, CNAME, NS, SOA) for a domain. Use when you need live DNS data and must not guess from memory or training data.
fetchx402 · Bundles Host Intel
api.fetchx402.com
host intel: DNS, leaf TLS, and WHOIS/RDAP for one hostname in a single settle. Use when you need live host facts together and must not guess. Child errors stay in-field; we do not invent data.
fetchx402 · Bundles Uptime Check
api.fetchx402.com
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.