# HTTP Headers & Security Grade

> HTTP Headers & Security Grade is a paid API for AI agents from bess-x402.onrender.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-28).

Fetches HTTP response headers with the full redirect chain and assigns a security grade (A–F) based on HSTS, CSP, X-Frame-Options, and other security headers.

## Facts

- Endpoint: GET https://bess-x402.onrender.com/v1/web/headers?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-28
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/http-headers-security-grade-f8de6029
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qcVZ_9eXp_UeA1kFGyDUQ

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-headers-security-grade-f8de6029
```

Example prompt: Can you fetch the HTTP headers for https://example.com and tell me its security grade — let me know which security headers like HSTS, CSP, and X-Frame-Options are missing?

## When to prefer this

Use this endpoint when you need a quick, combined view of HTTP headers plus a structured security grade without setting up a full scanning tool. It is particularly useful for one-off security reviews, redirect debugging, and SEO header checks where you want to see the full redirect chain and a graded assessment of missing security headers in a single call.

## Known failure modes

- Invalid or unreachable URL returns an error with no headers
- Domain that times out or refuses connection returns a connection error
- Malformed URL input causes a validation error
- Some servers block automated requests, returning 403 or no meaningful headers

## How this service works

Fetch a URL's HTTP response headers with the full redirect chain, status, server, caching and a security grade (A-F) based on HSTS, CSP, X-Frame-Options and other headers, listing what is missing. Use for security reviews, redirect debugging or SEO checks.

## Output

Returns the full set of HTTP response headers, the complete redirect chain with intermediate status codes, the final HTTP status, server identifier, caching directives, and a security grade from A to F based on presence of HSTS, CSP, X-Frame-Options, and other security headers, plus a list of which required security headers are missing.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "URL or domain"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

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