{"uid":"cap_8q97f2RmSLVs2dBZN0UJb","slug":"lookproof-spf-record-parser-a869b853","name":"Lookproof SPF Record Parser","description":"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.","url":"https://api.lookproof.dev/v1/mail/spf-parse?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"record":{"type":"string","title":"Record","maxLength":4096,"minLength":1}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_nps1BC8u-Y3jWU0for09n","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"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'?","exampleUseCases":[{"title":"Pre-publish SPF record audit","prompt":"Before I add this SPF record to my DNS, can you check it for syntax errors, count the DNS lookups, and flag anything risky like +all or ptr usage: 'v=spf1 include:_spf.google.com include:sendgrid.net include:mailgun.org mx ~all'?"},{"title":"Diagnosing SPF lookup limit breach","prompt":"My emails are failing SPF checks and I think I've exceeded the 10 DNS lookup limit. Can you parse this SPF record and tell me exactly how many lookups it requires: 'v=spf1 include:_spf.google.com include:spf.protection.outlook.com include:sendgrid.net include:mailgun.org include:spf.mandrillapp.com ~all'?"},{"title":"Checking SPF policy strictness","prompt":"Can you analyze this SPF record and tell me what the 'all' policy is set to and whether it's strict enough for good deliverability: 'v=spf1 ip4:192.168.1.0/24 mx +all'?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:41:14.151Z","isFirstParty":false,"canonicalSlug":"lookproof-spf-record-parser-a869b853"}