{"uid":"cap_oPW-9EknfjIbkLaL_Nik8","slug":"dns-lookup-api-x402-pay-per-call-528a67ab","name":"DNS Lookup API (x402 pay-per-call)","description":"41 pay-per-call JSON APIs for AI agents. No account or API key: an unpaid POST returns HTTP 402, pay in USDC on Base with x402 v2, retry. Prices from $0.001 per call.","url":"https://x402-micro-pay.com/api/skills/dns-lookup?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"name":{"type":"string","maxLength":253,"minLength":1,"description":"Hostname to look up"},"types":{"type":"array","items":{"enum":["A","AAAA","MX","TXT","NS","CNAME","CAA"],"type":"string"},"default":["A","AAAA","MX","TXT"],"maxItems":7,"minItems":1},"request_id":{"type":"string","pattern":"^[A-Za-z0-9._:-]+$","maxLength":64,"minLength":1,"description":"Optional idempotency key. Echoed back; a credit-pack redemption with the same request_id and body is charged once."}}},"responseSchema":{"type":"json","example":{"ok":true,"data":{"name":"example.com","as_of":"2026-10-24T14:00:00Z","dnssec":true,"records":{"A":["93.184.215.14"],"MX":[{"host":"","priority":0}],"TXT":["v=spf1 -all"],"AAAA":["2606:2800:21f:cb07:6820:80da:af6b:8b2c"]},"ttl_min":300,"resolver":"dns.google"},"next":["email_check","ip_intel"],"skill":"dns_lookup","charged":true,"service":"dns_lookup","sources":[{"url":"https://dns.google/resolve","name":"dns.google DoH","fetched_at":"2026-10-24T14:00:00Z"}],"summary":"example.com via dns.google (A:1, AAAA:1, MX:1, TXT:2)","version":"1.0.0","warnings":[],"confidence":0.95,"data_as_of":"2026-10-24T14:00:00Z","generated_at":"2026-10-24T14:00:00Z"}},"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_pgNSb1MwhfsU0XW91rmw4","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":"Resolves DNS records (A, AAAA, MX, TXT, NS, CNAME, CAA) for a given hostname, paid per-call via x402/USDC on Base.","exampleAgentPrompt":"Can you look up the DNS records for mailserver.example.com — specifically the A, MX, and TXT records — so I can check its email configuration?","exampleUseCases":[{"title":"Email deliverability check","prompt":"Pull the TXT and MX DNS records for acmecorp.com so I can verify their SPF record is set up correctly for email delivery."},{"title":"IPv6 connectivity verification","prompt":"Check whether api.myservice.io has an AAAA record so I can confirm it supports IPv6 connections."},{"title":"Security audit of domain config","prompt":"Look up all DNS records for suspicious-domain.net — A, AAAA, MX, TXT, and NS — and tell me if DNSSEC is enabled."}],"resultDescription":"Returns a JSON object containing resolved DNS records grouped by type (A, AAAA, MX, TXT, NS, CNAME, CAA), DNSSEC status, minimum TTL, the resolver used, a confidence score, data freshness timestamp, a plain-English summary, and optional warnings or suggested next skill calls.","failureModes":["Domain does not exist (NXDOMAIN) — returns ok:false with error details","Requested record type not found — returns empty array for that type","DNS resolution timeout — may return partial results or error","Invalid hostname format — rejected by input validation before charge","Payment not sent — HTTP 402 returned before resolution occurs"],"whenToPreferThis":"Choose this endpoint when an agent needs authoritative DNS resolution with structured JSON output, DNSSEC status, and multi-record-type support in a single call, especially in agentic workflows without a persistent API key. Ideal when pay-per-call economics (fractions of a cent) are preferred over subscription APIs, or when piping into follow-on skills like email_check or ip_intel as suggested by the 'next' field in the response.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-20T06:52:26.686Z","isFirstParty":false,"canonicalSlug":"dns-lookup-api-x402-pay-per-call-528a67ab"}