# Delx Commerce DNS SPF Record Parse

> Delx Commerce DNS SPF Record Parse is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Parses a raw DNS SPF record string into structured components including mechanisms, terminal directive, and DNS lookup count

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/dns-spf-record-parse?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-dns-spf-record-parse-6b281702
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_l3gJwg_ZhckoKJ8w7oeZ_

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 delx-commerce-dns-spf-record-parse-6b281702 -d '<json body>'
```

Example prompt: Parse this SPF record for me and tell me what mechanisms it includes and what the terminal directive is: 'v=spf1 include:_spf.example.com ip4:192.0.2.0/24 -all'

## When to prefer this

Choose this endpoint when you need fast, in-memory, no-retention parsing of a raw SPF record string into structured data. It is ideal for agents performing email infrastructure audits, validating SPF syntax, or counting DNS lookup terms without needing to do a live DNS query. At $0.001 per call with no signup, it suits high-frequency automated checks. Prefer it over general-purpose parsing libraries when you need a verified, schema-versioned result with an input hash for auditability.

## Known failure modes

- Malformed or empty SPF record string may return a parse error or unexpected mechanism list
- Records exceeding 8192 characters will be rejected by input validation
- Non-SPF TXT records passed as input may produce empty or nonsensical mechanism lists
- Records with circular include chains cannot be fully resolved at parse time (only the literal string is parsed)

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

Returns a JSON object containing a list of parsed SPF mechanisms (e.g. include: directives, ip4/ip6 ranges, terminal directive), the terminal policy string (e.g. '-all', '~all'), and a count of DNS lookup terms used. Also includes schema version, operation name, and evidence metadata (input SHA256, retained=false, external_calls count).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "record": {
   "type": "string",
   "maxLength": 8192,
   "description": "Record supplied to DNS SPF Record Parse; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "terminal": "-all",
   "mechanisms": [
    "include:_spf.example.com",
    "ip4:192.0.2.0/24",
    "-all"
   ],
   "dns_lookup_terms": 1
  },
  "schema": "delx/util-dns-spf-record-parse/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "f1284dcb830deffb57d018a18b1b0181cd01db0312cee73499122277f9c4e635",
   "external_calls": 0
  },
  "operation": "web_reliability:dns_spf_record_parse"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-dns-spf-record-parse-6b281702/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
