DNS Lookup API · DNS Lookup

by DNS Lookup API

POSTBase

$0.001

per call · USD Coin on Base

DNS Lookup API. Resolve domain DNS records and receive structured JSON with A, AAAA, MX, NS, TXT, CAA, and SOA records. Useful for agents, developers, domain diagnostics, email setup checks, DNS troubleshooting, and infrastructure investigation. Paid per call via x402.

Endpoint

POST https://tools.ipintel.ai/dns-lookup

7

Calls / 30d

3

Unique payers / 30d

Aug 26

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://tools.ipintel.ai/dns-lookup", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "domain": "example.com",
    "types": [
      "A",
      "MX",
      "NS",
      "TXT"
    ]
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://tools.ipintel.ai/dns-lookup" \
  -H "Content-Type: application/json" \
  -d '{"domain":"example.com","types":["A","MX","NS","TXT"]}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "domain": "example.com",
  "ok": true,
  "records": {
    "A": [
      "93.184.216.34"
    ],
    "MX": [
      {
        "host": "mail.example.com",
        "priority": 10
      }
    ],
    "NS": [
      "a.iana-servers.net",
      "b.iana-servers.net"
    ],
    "TXT": [
      "v=spf1 -all"
    ]
  },
  "service": "dns_lookup",
  "timestamp": "2026-06-22T18:15:01+00:00",
  "types": [
    "A",
    "MX",
    "NS",
    "TXT"
  ]
}

Payment details

Pay to0x0550779cfbc832657a8bb46bac9f359a5ad038b8
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Developer Tools and the homepage with a featured placement.

Get featured →

More from DNS Lookup API & similar services