# TrustSource HTTP Security Headers Analyzer

> TrustSource HTTP Security Headers Analyzer is a paid API for AI agents from api.trustsource.cc, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-15, last successful call 2026-08-12).

Analyzes HTTP security headers for a given URL and returns a letter grade (A+ to F), a 0–100 score, and structured findings for HSTS, CSP, X-Frame-Options, X-Content-Type-Options, Referrer-Policy, Permissions-Policy, COOP, and server header disclosure.

## Facts

- Endpoint: GET https://api.trustsource.cc/headers
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Last successful call: 2026-08-12
- Activations on Zero: 1
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-trustsource-cc-99e608dc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__m6uxrhxW3XCwmda2hjWs

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 api-trustsource-cc-99e608dc
```

Example prompt: Can you check the HTTP security headers for https://example.com and tell me what grade it gets, whether HSTS and CSP are properly set, and if the server is leaking version info?

## When to prefer this

Use this endpoint when you need a structured, graded audit of HTTP security response headers for a specific URL — especially useful for security posture reviews, compliance checks, or automated site audits where you want actionable findings on missing or misconfigured headers like HSTS, CSP, or X-Frame-Options.

## Known failure modes

- Invalid or unreachable URL returns an error response
- URL missing scheme (http/https) may cause parsing failure
- Rate limiting or payment failure results in 402 response
- Target site blocking HEAD/GET requests may yield incomplete header data

## How this service works

Audit a site's HTTP security headers before embedding, scraping, or trusting it. Returns an A+ to F grade and 0–100 score with structured analysis of HSTS, CSP, X-Frame-Options, X-Content-Type-Options, Referrer-Policy, Permissions-Policy, and Cross-Origin headers, plus server-header disclosure. A defense-in-depth signal for agents reviewing a site's security posture — not a vulnerability scan.

## Output

Returns a letter grade (A+ to F), a numeric score from 0 to 100, and a structured breakdown of each security header: HSTS, CSP, X-Frame-Options, X-Content-Type-Options, Referrer-Policy, Permissions-Policy, Cross-Origin-Opener-Policy, and whether the server header discloses software details.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "Full URL including scheme to audit (e.g. https://example.com). Follows up to 3 re-validated redirects."
      }
     }
    }
   },
   "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/api-trustsource-cc-99e608dc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.trustsource.cc](https://www.zero.xyz/host/api.trustsource.cc/llms.txt)
