zapi.
APIsPricingDocsMCP
APIsPricingDocsMCPSign in
zapi.
APIsPricingDocsMCP
APIsPricingDocsMCPSign in
On this page
  • Playground
  • Code examples
  • Full reference
  • Related APIs
Dev Tools/DNS Lookup
Logo DNS Lookup

DNS Lookup

Query DNS records (A, AAAA, MX, TXT, NS, CNAME, SOA, CAA) via secure DNS-over-HTTPS resolver.

Endpoints
1
Requests
20
Updated
3 months ago
For LLMs
llms.txt
Endpoint health19 hours ago
  • lookuppassing, 0.0s
1/1 passingdaily 01:00 WIB

Playground

1 endpoint
GET/v1/dev-tools:dns-lookup/lookup5m cache2 paramschecking key…
Parameters
domainstringrequired

Domain name (akan di-normalize: strip protocol, www, path)

typeenum

DNS record type. Default: A

·
Response
EXAMPLE
{
  "type": "A",
  "count": 6,
  "domain": "google.com",
  "source": "dns",
  "status": "NOERROR",
  "records": [
    {
      "ttl": 281,
      "data": "142.250.4.100",
      "name": "google.com",
      "type": "A"
    },
    {
      "ttl": 281,
      "data": "142.250.4.139",
      "name": "google.com",
      "type": "A"
    },
    {
      "ttl": 281,
      "data": "142.250.4.101",
      "name": "google.com",
      "type": "A"
    },
    {
      "ttl": 281,
      "data": "142.250.4.138",
      "name": "google.com",
      "type": "A"
    },
    {
      "ttl": 281,
      "data": "142.250.4.102",
      "name": "google.com",
      "type": "A"
    },
    {
      "ttl": 281,
      "data": "142.250.4.113",
      "name": "google.com",
      "type": "A"
    }
  ]
}

Code examples

Lookup
zpi-sdkrecommended
// npm i zpi-sdk
import { ZpiClient } from "zpi-sdk";

const client = new ZpiClient({ apiKey: "zpi_xxxxxxxxxxxxxxxxxxxxxxxx" });

const data = await client.run("dev-tools:dns-lookup", "lookup", {
  "domain": "google.com",
  "type": "A"
});
console.log(data);
Full SDK reference →
request.sh
curl -X GET "https://api.zpi.web.id/v1/dev-tools:dns-lookup/lookup?domain=google.com&type=A" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"

Full reference

1 endpoint · plain text
GETLookup/v1/dev-tools:dns-lookup/lookupPerform lookup dengan input yang diberikan.

Parameters

domainstringrequired
Domain name (akan di-normalize: strip protocol, www, path)
typeenumoptional
DNS record type. Default: A Values: A, AAAA, MX, TXT, NS, CNAME, SOA, CAA.

Request

curl -X GET "https://api.zpi.web.id/v1/dev-tools:dns-lookup/lookup?domain=google.com&type=A" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"

Example response

{
  "type": "A",
  "count": 6,
  "domain": "google.com",
  "source": "dns",
  "status": "NOERROR",
  "records": [
    {
      "ttl": 281,
      "data": "142.250.4.100",
      "name": "google.com",
      "type": "A"
    },
    {
      "ttl": 281,
      "data": "142.250.4.139",
      "name": "google.com",
      "type": "A"
    },
    {
      "ttl": 281,
      "data": "142.250.4.101",
      "name": "google.com",
      "type": "A"
    },
    {
      "ttl": 281,
      "data": "142.250.4.138",
      "name": "google.com",
      "type": "A"
    },
    {
      "ttl": 281,
      "data": "142.250.4.102",
      "name": "google.com",
      "type": "A"
    },
    {
      "ttl": 281,
      "data": "142.250.4.113",
      "name": "google.com",
      "type": "A"
    }
  ]
}

Related APIs

More in dev-tools

CF Sitekey Extractor

dev-tools/cf-sitekey

Mengekstrak Cloudflare Turnstile sitekey dari halaman web dengan multiple fetch mode.

35 calls·1h cache

IP Geolocation

dev-tools/ip-geo

IP geolocation lookup — country, region, city, ISP, ASN, koordinat untuk IPv4 dan IPv6.

10 calls·5m cache

WHOIS Lookup

dev-tools/whois-lookup

WHOIS / RDAP domain lookup — registrar, registration & expiry dates, nameservers, status, registrant contact.

13 calls·5m cache

Meta/OG Preview

dev-tools/meta-preview

Fetch link preview metadata dari URL — Open Graph, Twitter Card, favicon, canonical, theme color (kayak WhatsApp/Slack link preview).

6 calls·5m cache

SSL Labs

dev-tools/ssl-labs

Retrieve SSL/TLS analysis report for a hostname.

6 calls·5m cache

HTTP Headers Inspector

dev-tools/http-headers

Inspect HTTP response headers and redirect chain for any URL.

4 calls·5m cache
Browse APIsPricingDocsMCP serverGet an API key
zapi.One key, one response shape.
TermsPrivacyCookiesAUPRefunds© 2026