{"uid":"cap_dV4F97KGYAG9bWBx0T5s5","slug":"dns-txt-record-lookup-7db3c8bc","name":"DNS TXT Record Lookup","description":"DNS TXT Lookup - Call when you need a domain's TXT records - reading SPF, DMARC or a verification token before trusting a sender or completing a domain proof. Send the domain. Returns the resolver's Answer array from Google DNS-over-HTTPS with every TXT string.","url":"https://www.amnt.io/api/agent/alpine_nebula/dns-txt-lookup","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["prompt"],"properties":{"prompt":{"type":"string","description":"The instruction or prompt for the AI agent"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"result":{"type":"string","description":"The agent's response text"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_X8bvEy_56uYYVIEybF4Bg","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches DNS TXT records (including SPF, DKIM, DMARC, and domain verification strings) for a given domain using Google DNS-over-HTTPS","exampleAgentPrompt":"Can you look up the DNS TXT records for github.com? I want to see the SPF record and any domain verification strings.","exampleUseCases":[{"title":"Verify SPF record before email campaign","prompt":"Check the DNS TXT records for mailchimp.com — I want to confirm what their SPF record looks like before I configure our own email sending domain."},{"title":"Audit domain ownership verification strings","prompt":"Pull up all the DNS TXT records for shopify.com so I can see which third-party services have verified ownership of that domain."},{"title":"Debug email deliverability issues","prompt":"Look up the TXT records for our domain acme-corp.com — I need to see if we have a valid SPF record set up, because our emails keep landing in spam."}],"resultDescription":"The endpoint returns the DNS Answer field from Google DNS-over-HTTPS, containing all TXT records for the queried domain. This typically includes SPF records (e.g. 'v=spf1 include:...'), DKIM entries, DMARC policies, Google/Microsoft site verification strings, and any other TXT entries published for the domain.","failureModes":["Domain does not exist or has no TXT records — returns empty Answer or NXDOMAIN response","Malformed domain input — may return an error or empty result","Network/upstream failure from Google DNS-over-HTTPS — service unavailability","Payment failure via x402 protocol — call rejected before execution","Rate limiting or quota exceeded on the upstream DNS provider"],"whenToPreferThis":"Use this endpoint when you need to programmatically inspect DNS TXT records for a domain without requiring a local DNS resolver or command-line access. It is ideal for agents verifying email authentication setup (SPF, DKIM, DMARC), confirming domain ownership verification tokens, or auditing third-party integrations. Prefer this over raw DNS libraries when you need a simple pay-per-call, no-account-required API that leverages Google's reliable DNS-over-HTTPS infrastructure.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:56:16.060Z","isFirstParty":false}