S

skill-audit · Headers

by skill-audit

POSTBase

$0.005

per call · USD Coin on Base

Fetch a URL and grade its HTTP security headers (HSTS, CSP, X-Frame-Options, etc.)

Endpoint

POST https://eltociear-skill-audit.hf.space/headers

3

Calls / 30d

2

Unique payers / 30d

Aug 26

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://eltociear-skill-audit.hf.space/headers", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "url": "https://example.com"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://eltociear-skill-audit.hf.space/headers" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "grade": "B",
  "headers": {
    "strict-transport-security": "max-age=63072000"
  },
  "missing": [
    "content-security-policy"
  ],
  "present": [
    "strict-transport-security"
  ],
  "score": 70,
  "status": 200,
  "url": "https://example.com"
}

Payment details

Pay to0x5bcda55247b238a573a968b234f788a2d35664dd
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Developer Tools and the homepage with a featured placement.

Get featured →

More from skill-audit & similar services