# Lookproof HSTS Header Parser

> Lookproof HSTS Header Parser is a paid API for AI agents from api.lookproof.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-31).

Parses a Strict-Transport-Security (HSTS) header value per RFC 6797, returning max-age, includeSubDomains, preload flags, and hstspreload.org rule compliance — offline, no DNS required.

## Facts

- Endpoint: POST https://api.lookproof.dev/v1/http/hsts-parse?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/lookproof-hsts-header-parser-ac32a3de
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1iYi6lbcinVICw9zYOsx7

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 lookproof-hsts-header-parser-ac32a3de -d '<json body>'
```

Example prompt: Can you parse this HSTS header and tell me if it meets hstspreload.org requirements: 'max-age=31536000; includeSubDomains; preload'?

## When to prefer this

Use this endpoint when you need to validate or debug an HSTS header string offline — especially when setting up HSTS for the first time, preparing a site for hstspreload.org submission, or checking whether a header string meets RFC 6797 requirements without needing DNS or a live server response.

## Known failure modes

- Empty or missing header field returns a validation error
- Header value exceeding 8192 characters is rejected
- Malformed or non-HSTS header string may return parsing errors or incomplete results
- No network access to verify live server — only the supplied string is parsed

## How this service works

Check SPF, DMARC, DKIM, MTA-STS, DNSSEC and more, with results that explain what was found and why. Free browser checks and a pay-per-request API with x402.

## Output

Returns a structured breakdown of the parsed HSTS header: whether browsers would accept it, the max-age value in seconds, presence of includeSubDomains and preload directives, and which hstspreload.org header rules the header satisfies or fails. Computed offline without any DNS or network lookups.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "header": {
   "type": "string",
   "title": "Header",
   "maxLength": 8192,
   "minLength": 1
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/lookproof-hsts-header-parser-ac32a3de/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.lookproof.dev](https://www.zero.xyz/host/api.lookproof.dev/llms.txt)
