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
| 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. |