# Security Headers Score Checker

> Security Headers Score Checker is a paid API for AI agents from agentx.sale, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-13).

Scores a URL from 0–10 on security headers including CSP, HSTS, X-Frame-Options, cookie flags, and TLS configuration

## Facts

- Endpoint: GET https://agentx.sale/x402/secscore?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/security-headers-score-checker-e2138b32
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Og15Wm5b-_CDHJD1i5PAA

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 security-headers-score-checker-e2138b32
```

Example prompt: Can you check the security headers score for https://example.com — I want to know the CSP, HSTS, and TLS rating out of 10.

## When to prefer this

Use this endpoint when you need a fast, quantified security header assessment for any publicly accessible URL, particularly when evaluating CSP, HSTS, cookie hygiene, and TLS together in a single 0–10 score. Prefer this over manual header inspection tools when integrating security checks into automated agent workflows, CI/CD pipelines, or vendor due diligence processes.

## Known failure modes

- URL is unreachable or returns a non-2xx status — score may be 0 or error returned
- Invalid or malformed URL input — likely a 400 bad request
- Timeout reaching the target domain — request may fail or return partial results
- Target site blocks automated crawlers — headers may not be fully observable

## How this service works

Security Headers Check: CSP/HSTS/frame/cookies/TLS score 0–10 for a URL

## Output

A numeric security score from 0 to 10 reflecting the aggregate strength of the target URL's security headers, including Content Security Policy (CSP), HTTP Strict Transport Security (HSTS), X-Frame-Options, cookie security flags, and TLS configuration details.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "url": "https://agentx.sale",
  "grade": "B",
  "score": 7.4,
  "checks": [
   {
    "name": "Strict-Transport-Security",
    "detail": "max-age=31536000",
    "status": "good"
   }
  ],
  "topFixes": [
   "Add a Content-Security-Policy"
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/security-headers-score-checker-e2138b32/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentx.sale](https://www.zero.xyz/host/agentx.sale/llms.txt)
