Grade a site's HTTP security headers (HSTS, CSP, X-Content-Type-Options and more) with fix recommendations.
Check HTTP security response headers of a URL and return a grade with recommendations.
Easiest way: the APIHub CLI. Credits cover x402, no wallet needed.
# install and set up once
npx @apihubio/cli register
npx @apihubio/cli topup 10
# call this service
npx @apihubio/cli call -X GET "https://proxy.apihub.io/security-headers/v1/check?url=https://example.com"Or call the proxy directly (curl / any HTTP client):
curl https://proxy.apihub.io/security-headers/v1/check?url=https://example.com \
-H "Authorization: Bearer ahk_your_key"
# If credits available: charged automatically, returns 200
# Otherwise: returns 402 (pay via @x402/fetch or top up credits)Estimate your monthly cost for Security Headers Checker.