Home / Developer Tools / HTTP Security Headers & CSP Grader API
HTTP Security Headers & CSP Grader API logo

HTTP Security Headers & CSP Grader API

Published by @mdforge · Verified
99.98% uptime ~140ms avg AI Score 94/100

Grade any website (A+ to F) across HSTS, CSP, X-Frame-Options, X-Content-Type-Options, Referrer-Policy & Permissions-Policy.

Try it live
https://api.indieapis.com/v1/security-headers-csp/grade
Inspect live security headers and return score (0-100), grade, and missing headers.
Response Press Run to call the live API
{
  "ok": true
}

            

Overview

Grade any website (A+ to F) across HSTS, CSP, X-Frame-Options, X-Content-Type-Options, Referrer-Policy & Permissions-Policy.

Zero-proxy production API with hard monthly spend caps ($0 surprise overages) and native Streamable HTTP MCP support.

Gateway Headers & Hard Caps

Every response includes X-Quota-Limit, X-Quota-Used, X-Quota-Remaining, and X-Quota-Reset. When your monthly quota is reached, the gateway returns 429 QUOTA_EXCEEDED so you are never billed surprise overages.

2 endpoints

Base URL
https://api.indieapis.com/v1/security-headers-csp
MCP
https://indieapis.com/mcp/security-headers-csp
Method Path Parameters Description
GET /grade url* Inspect live security headers and return score (0-100), grade, and missing headers.
GET /csp-parse csp* Break a CSP string into directives and flag unsafe-inline, unsafe-eval, and wildcards.