{"uid":"cap_0OLS0THtWHnW7VCiC_2KM","slug":"dns-spf-lookup-budget-7517f79a","name":"DNS SPF Lookup Budget","description":"DNS SPF Lookup Budget: DNS SPF Lookup Budget counts DNS-triggering SPF mechanisms against a configured budget from bounded caller-supplied values without an external provider. Call DNS SPF Lookup Budget before accepting, caching, redirecting, or retrying a caller-supplied web response. Returns normalized web evidence, the computed finding, and an explicit pass or advisory status for DNS SPF Lookup Budget as versioned deterministic JSON. Price: $0.001 USDC via x402 on Base. First-party, stateles…","url":"https://api.delx.ai/api/v1/x402/dns-spf-lookup-budget","method":"POST","headers":{},"bodySchema":{"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."}}},"responseSchema":{"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"}},"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_yEQNPy7m8NO0hG_TgRZQW","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":"Counts DNS-triggering SPF mechanisms in a given SPF record against a configurable lookup budget to determine if the limit is exceeded","exampleAgentPrompt":"Check my SPF record 'v=spf1 include:_spf.google.com include:sendgrid.net include:mailchimp.com ~all' against a maximum of 10 DNS lookups and tell me if I'm within budget.","exampleUseCases":[{"title":"Pre-publish SPF record audit","prompt":"Before I publish this SPF record to DNS, can you count how many DNS lookups it triggers and check if it stays under 10? Here's the record: 'v=spf1 include:mailgun.org include:_spf.google.com include:sendgrid.net a mx ~all'"},{"title":"Custom SPF budget enforcement","prompt":"My email provider only allows 8 DNS lookups in an SPF record. Check this record against a budget of 8 and tell me if it passes: 'v=spf1 include:amazonses.com include:_spf.google.com include:sparkpostmail.com include:mailchimp.com -all'"},{"title":"Debugging SPF permerror failures","prompt":"My emails are bouncing with SPF permerror. Can you count the DNS-triggering mechanisms in this record and check if it exceeds 10 lookups? 'v=spf1 include:_spf.google.com include:sendgrid.net include:mailchimp.com include:amazonses.com include:smtp.zendesk.com ip4:203.0.113.0/24 ~all'"}],"resultDescription":"Returns versioned deterministic JSON containing: the normalized SPF record evidence, the computed DNS lookup count, whether the count is within the configured budget, and an explicit pass or advisory status indicating compliance.","failureModes":["Malformed SPF record string may produce unexpected token counts or parsing errors","Maximum budget value of zero or negative may return immediate fail status","Extremely long SPF records near the 8192 character limit may be truncated or rejected","Nested include chains are counted based on the record text provided, not live DNS resolution"],"whenToPreferThis":"Choose this endpoint when you need a fast, stateless, deterministic check of SPF DNS lookup count against a budget — especially before publishing or caching an SPF record, debugging SPF permerror failures, or enforcing a custom lookup limit stricter than the RFC 7208 default of 10. Prefer this over live DNS resolution tools when you already have the SPF record text and want a bounded, offline computation with no external network calls.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:02:53.083Z","isFirstParty":false}