# BRAINIAC SPF Record Analyzer

> BRAINIAC SPF Record Analyzer is a paid API for AI agents from www.brainiac.software, paid per call via x402, $0.04/call, status unknown (last checked 2026-11-16).

Fetches and analyzes the SPF DNS record for a given email domain, returning the record text, lookup count, compliance status, and actionable findings.

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/email-domain/spf-record-analyze?utm_source=zero.xyz
- Price: $0.04/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brainiac-spf-record-analyzer-96975445
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dSJ2CnA0qIA6paOEf-j2-

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 brainiac-spf-record-analyzer-96975445 -d '<json body>'
```

Example prompt: Can you analyze the SPF record for acmecorp.com and tell me if it's correctly set up, how many DNS lookups it uses, and whether there are any warnings or misconfigurations?

## When to prefer this

Use this endpoint when you need a structured, machine-readable analysis of a domain's SPF configuration including findings, lookup counts, and compliance status — especially in agentic workflows that require no account setup and can pay per call with USDC via x402. Prefer it over manual DNS lookups when you need findings already interpreted into warning/error codes.

## Known failure modes

- Domain not found or does not exist — may return an error or status indicating no record
- Domain has no SPF TXT record — status will indicate 'missing' or 'absent'
- SPF include chain too deep — analysis limited to one level and eight extra lookups
- Network/DNS resolution failure — transient error response
- Invalid domain input (exceeds 253 characters or empty) — schema validation error

## How this service works

Pay-per-call APIs for AI agents: OFAC sanctions screening, compliance checks, token security, and Base chain data via x402. No account. Fixed USDC price. MCP-ready.

## Output

A JSON object containing the raw SPF record string, the domain queried, the overall status (e.g. 'present', 'missing'), the number of DNS lookups consumed, a sendsMail boolean, an array of findings with codes, kinds (error/warning/info), and details, the timestamp of the check, and a list of known limitations of the analysis.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "domain": {
   "type": "string",
   "maxLength": 253,
   "minLength": 1
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "all": "~all",
  "domain": "gmail.com",
  "record": "v=spf1 redirect=_spf.google.com",
  "status": "present",
  "lookups": 2,
  "findings": [
   {
    "code": "spf_softfail",
    "kind": "warning",
    "detail": "The SPF record uses ~all."
   }
  ],
  "checkedAt": "2026-11-02T19:00:00.000Z",
  "sendsMail": false,
  "limitations": [
   "No test message is sent and no mailbox login is attempted.",
   "Syntax and MX records do not show that a mailbox exists.",
   "A reputation verdict is unavailable unless a public unauthenticated source provides one.",
   "Private, loopback, and link-local addresses are not contacted.",
   "SPF includes are expanded for at most one level and eight extra lookups."
  ],
  "mailboxChecked": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-spf-record-analyzer-96975445/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.brainiac.software](https://www.zero.xyz/host/www.brainiac.software/llms.txt)
