# HTTP Security Headers Grade

> HTTP Security Headers Grade is a paid API for AI agents from http-security-headers-grade.x402supply.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-31).

Fetches a public URL via GET and grades its HTTP security headers from A+ to F, returning score, present/missing headers, per-header findings with fix values, and cookie flag issues.

## Facts

- Endpoint: POST https://http-security-headers-grade.x402supply.com/mcp?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/http-security-headers-grade-2c39501d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_H604R7odscSX3RiiCDp5F

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability http-security-headers-grade-2c39501d -d '<json body>'
```

Example prompt: Can you check the security headers on https://example.com and tell me what grade it gets, what headers are missing, and how to fix them?

## When to prefer this

Choose this endpoint when you need a fast, structured security header audit with actionable fix recommendations for a single public URL. It is purpose-built for grading HTTP security headers with letter grades and per-header remediation advice, making it ideal for developers, security auditors, and DevSecOps workflows that want immediate, copy-paste-ready fixes rather than a generic crawler or full vulnerability scanner.

## Known failure modes

- URL is not publicly accessible (returns error or timeout after 10s)
- URL requires authentication or returns non-2xx after up to 5 redirects
- Invalid or malformed URL input
- Target server blocks bot/automated requests
- More than 5 redirects causes chain to abort
- Non-HTTP/HTTPS URL scheme rejected

## How this service works

Fetches a public http(s) URL (GET, up to 5 redirects, 10s timeout, body never read) and grades its security headers A+ to F. Returns score, present and missing headers, per-header findings with copy-paste fix values, and cookie flag issues.

## Output

Returns an overall security grade (A+ through F), a numeric score, a list of present and missing HTTP security headers, per-header findings with copy-paste-ready fix values, and any cookie flag issues detected on the target URL.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "toolName",
    "inputSchema"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "mcp"
    },
    "toolName": {
     "type": "string"
    },
    "transport": {
     "enum": [
      "streamable-http"
     ],
     "type": "string"
    },
    "description": {
     "type": "string"
    },
    "inputSchema": {
     "type": "object"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/http-security-headers-grade-2c39501d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from http-security-headers-grade.x402supply.com](https://www.zero.xyz/host/http-security-headers-grade.x402supply.com/llms.txt)
