# Lookproof SPF Record Parser

> Lookproof SPF Record 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 raw SPF record string (without DNS) into mechanisms, qualifiers, modifiers, syntax errors, the 'all' policy, and DNS lookup count with coded findings per RFC 7208.

## Facts

- Endpoint: POST https://api.lookproof.dev/v1/mail/spf-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-spf-record-parser-a869b853
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8q97f2RmSLVs2dBZN0UJb

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-spf-record-parser-a869b853 -d '<json body>'
```

Example prompt: Can you parse this SPF record for me and flag any issues like syntax errors, too many DNS lookups, or a dangerously permissive +all policy: 'v=spf1 mx include:_spf.example.com ~all'?

## When to prefer this

Use this endpoint when you need to validate an SPF record string locally (without performing live DNS lookups) — ideal for pre-publish checks, CI/CD pipeline validation, or when you have the raw record text and want to catch issues like syntax errors, +all policies, deprecated ptr mechanisms, or exceeding the 10-lookup limit before the record goes live.

## Known failure modes

- Empty or missing record field returns validation error
- Record exceeding 4096 characters is rejected
- Malformed input that is not a string returns schema error
- Network or server errors return 5xx responses
- Payment failure or missing x402 authorization returns 402

## 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

A structured breakdown of the SPF record including: each mechanism with its qualifier (e.g. +, -, ~, ?) and value, any modifiers (redirect, exp), detected syntax errors, the 'all' policy qualifier, the total number of terms requiring DNS lookups, and coded findings such as +all (overly permissive), ptr (deprecated mechanism), or exceeding 10 DNS lookups.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "record": {
   "type": "string",
   "title": "Record",
   "maxLength": 4096,
   "minLength": 1
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/lookproof-spf-record-parser-a869b853/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)
