{"uid":"cap_l3gJwg_ZhckoKJ8w7oeZ_","slug":"delx-commerce-dns-spf-record-parse-6b281702","name":"Delx Commerce DNS SPF Record Parse","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/dns-spf-record-parse?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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."}}},"responseSchema":{"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"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ZcDNVBrMN33ndnoCeQl_z","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Parses a raw DNS SPF record string into structured components including mechanisms, terminal directive, and DNS lookup count","exampleAgentPrompt":"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'","exampleUseCases":[{"title":"Audit email sender configuration","prompt":"I need to understand what's in this SPF record — can you break it down into its mechanisms and tell me how many DNS lookups it uses? Here it is: 'v=spf1 include:_spf.google.com include:mailgun.org ip4:203.0.113.5 ~all'"},{"title":"Check SPF lookup limit compliance","prompt":"Can you parse this SPF record and count the DNS lookup terms? I want to know if we're at risk of hitting the 10-lookup limit: 'v=spf1 include:_spf.example.com include:sendgrid.net include:mailchimp.com include:amazonses.com -all'"},{"title":"Extract SPF terminal policy","prompt":"What's the terminal directive in this SPF record — is it a hard fail, soft fail, or neutral? Record is: 'v=spf1 ip4:10.0.0.0/8 include:_spf.example.com ?all'"}],"resultDescription":"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).","failureModes":["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)"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:49.523Z","isFirstParty":false,"canonicalSlug":"delx-commerce-dns-spf-record-parse-6b281702"}