# CSP Header Analyzer

> CSP Header Analyzer is a paid API for AI agents from 164.160.90.241.sslip.io, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-12).

Fetches a URL and analyzes its Content-Security-Policy header for presence, unsafe-inline, unsafe-eval, wildcard sources, and parsed directives.

## Facts

- Endpoint: GET https://164.160.90.241.sslip.io/api/sec-header-csp-analyzer?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/csp-header-analyzer-fd1ed925
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YH1mDdgHCjDyFNronW23E

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 csp-header-analyzer-fd1ed925
```

Example prompt: Can you check whether https://example.com has a Content-Security-Policy header and flag any issues like unsafe-inline, unsafe-eval, or wildcard sources?

## When to prefer this

Choose this endpoint when you need a quick, automated audit of a specific URL's Content-Security-Policy header without running a full security scanner. Ideal for pre-launch checks, vendor due diligence, or compliance reviews where CSP posture is the primary concern. It is more focused than a general security header scanner and provides parsed directive-level detail rather than just a pass/fail.

## Known failure modes

- URL is unreachable or times out — endpoint may return an error or empty result
- Target site does not set a CSP header — result will indicate absence
- Malformed URL input — may return a validation error
- Target site blocks automated HTTP clients — fetch may fail
- CSP header is present but malformed — parsing may produce incomplete directives

## How this service works

Fetch a URL and analyse its Content-Security-Policy header: presence, unsafe-inline, unsafe-eval, wildcard sources and parsed directives.

## Output

Returns whether a CSP header is present on the target URL, whether it contains unsafe-inline or unsafe-eval directives, any wildcard sources found, and the full parsed list of CSP directives and their values.

## 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": "URL to audit"
      }
     }
    }
   },
   "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/csp-header-analyzer-fd1ed925/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 164.160.90.241.sslip.io](https://www.zero.xyz/host/164.160.90.241.sslip.io/llms.txt)
