# Delx Commerce — DNS SPF Lookup Budget Checker

> Delx Commerce — DNS SPF Lookup Budget Checker 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-02).

Parses a DNS SPF record string and checks whether the number of DNS-lookup-triggering mechanisms stays within a configurable budget limit

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/dns-spf-lookup-budget?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-dns-spf-lookup-budget-checker-880994a2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_f0TGKauXWVk0P8eGJtKCK

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-lookup-budget-checker-880994a2 -d '<json body>'
```

Example prompt: Check if this SPF record stays within 10 DNS lookups: 'v=spf1 include:a.example include:b.example mx -all'

## When to prefer this

Choose this endpoint when you need a fast, privacy-preserving, pay-per-call check of whether an SPF record's DNS-lookup mechanism count is within a configurable budget — especially in automated pipelines (CI/CD, domain audits, email deliverability bots) where no persistent account or signup is desired. It is purpose-built for the RFC 7208 10-lookup limit problem, returns a verifiable SHA-256 of the input, and processes data in-memory without retention. Prefer it over general DNS query APIs when you specifically need mechanism counting and budget validation rather than raw DNS resolution.

## Known failure modes

- Missing or empty 'record' field returns an error or undefined behavior
- Malformed SPF record string may produce incomplete mechanism parsing
- Maximum value of 0 or negative integer may cause unexpected budget comparison
- Record exceeding 8192 character limit will be rejected
- Non-SPF DNS record strings passed as input may yield misleading counts

## 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 the total count of DNS-lookup-triggering mechanisms (dns_lookup_terms), a list of all parsed mechanisms, the terminal mechanism (e.g. -all), a boolean indicating whether the record is within the specified maximum budget, the maximum value used, a SHA-256 hash of the input for auditability, and a status field ('pass'). No input data is retained.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "maximum": 10,
   "terminal": "-all",
   "mechanisms": [
    "include:a.example",
    "include:b.example",
    "mx",
    "-all"
   ],
   "within_budget": true,
   "dns_lookup_terms": 3
  },
  "schema": "delx/util-dns-spf-lookup-budget/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "59ce243626eaef239d274d03667e46eee898bb4ca5ecebb645c2679c97cdc137",
   "external_calls": 0
  },
  "operation": "web_reliability:dns_spf_lookup_budget"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-dns-spf-lookup-budget-checker-880994a2/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)
