# 2s HTTP Security Headers Analyzer

> 2s HTTP Security Headers Analyzer is a paid API for AI agents from 2s.io, paid per call via x402, $0.0018/call, status unknown (last checked 2026-09-14).

Fetches a URL's live HTTP response headers and grades them for security best practices, returning a letter grade, score, and per-header analysis.

## Facts

- Endpoint: GET https://2s.io/api/security/http-headers
- Price: $0.0018/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/2s-http-security-headers-analyzer-a01d5a8a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_j6G8_3JFEBwuZUXotK8Bp

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 2s-http-security-headers-analyzer-a01d5a8a
```

Example prompt: Can you check the HTTP security headers on https://example.com and tell me what grade it gets, what's missing, and whether it's leaking any server info?

## When to prefer this

Use this endpoint when you need a live, real-time audit of a specific URL's HTTP security headers — including grade, score, per-header issues, and info disclosure — without signing up or managing API keys. Prefer over static scanners when you need ground-truth data from the actual live response.

## Known failure modes

- Invalid or unreachable URL returns error or non-200 status
- URL with no scheme may still resolve but could cause ambiguous results
- Sites behind CAPTCHA or bot protection may return unexpected headers
- Payment failure (402) if USDC balance insufficient
- Timeout if target URL is slow to respond

## How this service works

Fetch a URL and grade its HTTP security headers. Pass url (scheme optional — defaults to https). Returns an overall letter grade + score, the list of present/missing headers, and a per-header analysis with the live value and specific issues for: Strict-Transport-Security (HSTS max-age/includeSubDomains), Content-Security-Policy (flags 'unsafe-inline'/'unsafe-eval'/missing default-src), X-Frame-Options or CSP frame-ancestors (clickjacking), X-Content-Type-Options (nosniff), Referrer-Policy, Permissions-Policy, and Cross-Origin-Opener/Resource-Policy. Also flags Server/X-Powered-By info disclosure. Analyzed from the target's LIVE response headers through an SSRF-guarded fetch (private/loopback targets refused) — an LLM cannot see a site's current headers. For web-app security review, vendor assessment, and CI gates.

## Output

Returns a JSON object with ok status, an array of items each containing: the analyzed URL, a letter grade (e.g. 'C'), a numeric score and max score, HTTP status code, per-header breakdown with issues and presence flags, lists of missing and present security headers, the final redirect URL, and any server/x-powered-by info disclosure found.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "url": "https://example.com"
  }
 }
}
```

## 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",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "URL to analyze (scheme optional)."
      }
     }
    }
   }
  }
 }
}
```

## More

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