Skip to main content

API reference

DNS & Email Security

DNS & Email Security: Look up DNS records; Inspect domain email security. Published endpoints, request parameters, JSON responses and authentication.

Release v1.0.0 · This reference describes the release shown here. Console shows the current published configuration.

Technical limits
ⓘThese limits apply unless an endpoint lists different limits.
Timeout
15 s
Request body
16 KiB
Response body
512 KiB

Look up DNS records

POST/dns/v1/lookup

Resolve live public DNS records (A, AAAA, CNAME, MX, TXT, NS, SOA, CAA) with TTLs and DNSSEC AD signal for a Unicode or Punycode domain. Conclusive resolutions (including NXDOMAIN) count as one billable request; invalid input and resolver failures are not charged.

$0.001 / requestHow billing works ↗

Parameters

This operation has no published parameters.

Request body

Request fields

NameTypeRequiredDescription
domainstringNoDomain or hostname to query (Unicode or Punycode).
typesstring[]NoOptional DNS record types to query (A, AAAA, CNAME, MX, TXT, NS, SOA, CAA). Defaults to all 8 types.
JSON model

Illustrative JSON shape generated from the published schema. Field values are examples, not live results.

JSON model
{
  "domain": "antapi.dev",
  "types": [
    "A",
    "MX",
    "TXT"
  ]
}

Success response200

Fields inside data

NameTypeRequiredDescription
dnssecobjectNoDNSSEC verification signal from the recursive resolver.
domainobjectNoInput and normalized domain names.
recordsobjectNoParsed DNS records grouped by type.
resolverobjectNoRecursive resolver metadata.
summaryobjectNoResolution status and record totals.
JSON model

Illustrative JSON shape generated from the published schema. Field values are examples, not live results.

JSON model
{
  "code": 0,
  "data": {
    "dnssec": {
      "authenticated_data": true
    },
    "domain": {
      "input": "antapi.dev",
      "normalized": "antapi.dev",
      "unicode": "antapi.dev"
    },
    "records": {
      "a": [
        {
          "ttl": 300,
          "value": "93.184.216.34"
        }
      ],
      "aaaa": [
        {
          "ttl": 300,
          "value": "93.184.216.34"
        }
      ],
      "caa": [
        {
          "flags": 0,
          "tag": "issue",
          "ttl": 300,
          "value": "letsencrypt.org"
        }
      ],
      "cname": [
        {
          "target": "www.example.com",
          "ttl": 300
        }
      ],
      "mx": [
        {
          "host": "aspmx.l.google.com",
          "priority": 10,
          "ttl": 300
        }
      ],
      "ns": [
        {
          "host": "ns1.example.com",
          "ttl": 3600
        }
      ],
      "soa": [
        {
          "expire": 1209600,
          "minimum": 3600,
          "mname": "ns1.example.com",
          "refresh": 7200,
          "retry": 3600,
          "rname": "hostmaster.example.com",
          "serial": 2026120101,
          "ttl": 3600
        }
      ],
      "txt": [
        {
          "ttl": 300,
          "value": "v=spf1 -all"
        }
      ]
    },
    "resolver": {
      "fetched_at": "2026-12-01T10:00:00Z",
      "protocol": "udp",
      "server": "1.1.1.1:53"
    },
    "summary": {
      "failed_types": [
        "string"
      ],
      "queried_types": [
        "A",
        "AAAA",
        "MX",
        "TXT",
        "NS"
      ],
      "status": "ok",
      "total_records": 8
    }
  },
  "error": ""
}

Inspect domain email security

POST/dns/v1/email-security

Audit a domain's email authentication and transport security posture across MX, SPF, DMARC, MTA-STS, TLS-RPT, BIMI, and optional DKIM selectors. Returns parsed policies, a 0-100 score, an A-F grade, and prioritized issues. Completed audits count as one billable request; invalid input and resolver failures are not charged.

$0.003 / requestHow billing works ↗

Parameters

This operation has no published parameters.

Request body

Request fields

NameTypeRequiredDescription
dkim_selectorsstring[]NoOptional list of up to 5 DKIM selectors to probe (e.g. google, selector1).
domainstringNoDomain to inspect for email authentication and transport security.
JSON model

Illustrative JSON shape generated from the published schema. Field values are examples, not live results.

JSON model
{
  "dkim_selectors": [
    "google",
    "default"
  ],
  "domain": "antapi.dev"
}

Success response200

Fields inside data

NameTypeRequiredDescription
bimiobjectNoBIMI brand indicator record evaluation.
dkimobject[]NoDKIM checks for requested selectors.
dmarcobjectNoDMARC record evaluation.
domainobjectNoInput and normalized domain names.
mta_stsobjectNoMTA-STS DNS record evaluation.
mxobject[]NoPublished MX records.
resolverobjectNoRecursive resolver metadata.
spfobjectNoSPF record evaluation.
summaryobjectNoOverall grade, score, and prioritized security findings.
tls_rptobjectNoSMTP TLS Reporting (TLS-RPT) record evaluation.
JSON model

Illustrative JSON shape generated from the published schema. Field values are examples, not live results.

JSON model
{
  "code": 0,
  "data": {
    "bimi": {
      "authority": "string",
      "location": "string",
      "present": false,
      "record": "string"
    },
    "dkim": [
      {
        "host": "google._domainkey.antapi.dev",
        "key_type": "rsa",
        "present": true,
        "record": "string",
        "revoked": false,
        "selector": "google",
        "valid": true
      }
    ],
    "dmarc": {
      "adkim": "r",
      "aspf": "r",
      "percentage": 100,
      "policy": "reject",
      "present": true,
      "records": [
        "string"
      ],
      "rua": [
        "string"
      ],
      "ruf": [
        "string"
      ],
      "subdomain_policy": "reject",
      "valid": true
    },
    "domain": {
      "input": "antapi.dev",
      "normalized": "antapi.dev",
      "unicode": "antapi.dev"
    },
    "mta_sts": {
      "id": "string",
      "present": true,
      "record": "string"
    },
    "mx": [
      {
        "host": "aspmx.l.google.com",
        "priority": 10,
        "ttl": 300
      }
    ],
    "resolver": {
      "fetched_at": "2026-12-01T10:00:00Z",
      "protocol": "udp",
      "server": "1.1.1.1:53"
    },
    "spf": {
      "all_qualifier": "-all",
      "dns_lookup_count": 2,
      "includes": [
        "string"
      ],
      "present": true,
      "records": [
        "string"
      ],
      "redirect": "string",
      "valid": true
    },
    "summary": {
      "grade": "A",
      "has_mx": true,
      "issues": [
        {
          "code": "DMARC_POLICY_NONE",
          "component": "dmarc",
          "message": "DMARC policy is set to none (monitor-only).",
          "severity": "medium"
        }
      ],
      "score": 95
    },
    "tls_rpt": {
      "present": true,
      "record": "string",
      "rua": [
        "string"
      ]
    }
  },
  "error": ""
}