TidyData APIsAll APIsPricing

DNS Lookup API - A, MX, TXT, NS Records

Look up DNS records of any domain in one call: A, AAAA, MX, NS, TXT, CNAME, SOA, CAA, SRV. Also tells you if the domain has mail servers and its SPF record. Fast, uses public resolvers.

Authentication & base URL

Subscribe through one of our marketplace listings; your marketplace API key and base URL are shown there. All endpoints return JSON over HTTPS, served from a global edge network (typically 20–150 ms).

Subscribe on RapidAPI

Endpoints

GET /v1/dns

DNS records

ParameterInDescriptionExample
domain *queryDomain namegithub.com
typesqueryComma-separated record typesA,AAAA,MX,NS,TXT,CNAME

Example

GET /v1/dns?domain=github.com&types=A%2CAAAA%2CMX%2CNS%2CTXT%2CCNAME

{
  "domain": "github.com",
  "records": {
    "AAAA": [],
    "MX": [
      {
        "value": "0 github-com.mail.protection.outlook.com",
        "ttl": 256
      }
    ],
    "A": [
      {
        "value": "20.250.119.67",
        "ttl": 39
      }
    ],
    "CNAME": [],
    "NS": [
      {
        "value": "dns1.p08.nsone.net",
        "ttl": 900
      },
      {
        "value": "dns2.p08.nsone.net",
        "ttl": 900
      },
      {
        "value": "dns3.p08.nsone.net",
        "ttl": 900
      },
      {
        "value": "dns4.p08.nsone.net",
        "ttl": 900
      },
      {
        "value": "ns-1283.awsdns-32.org",
        "ttl": 900
      },
      {
        "value": "ns-1707.awsdns-21.co.uk",
        "ttl": 900
      },
      {
        "value": "ns-421.awsdns-52.com",
        "ttl": 900
      },
      {
        "value": "ns-520.awsdns-01.net",
        "ttl": 900
      }
    ],
    "TXT": [
      {
        "value": "00Dd0000000hHE0=1TBKg000000TN2r",
        "ttl": 300
      },
      {
        "value": "MS=6BF03E6AF5CB689E315FB6199603BABF2C88D805",
        "ttl": 300
      },
      {
        "value": "MS=ms44452932",
        "ttl": 300
      },
      {
        "value": "MS=ms58704441",
        "ttl": 300
      },
      {
        "value": "TAILSCALE-xOzoDvFUzZr5YYVCQFuD",
  …

Look up DNS records of any domain in one call: A, AAAA, MX, NS, TXT, CNAME, SOA, CAA, SRV. Also tells you if the domain has mail servers and its SPF record. Fast, uses public resolvers.

Use cases

Domain monitoring, email deliverability checks (MX/SPF), security audits, migration verification, lead enrichment.

Why this API

Pricing

Free plan with 500 calls per month, then Pro (25,000 calls for $4.99/month) and Ultra (150,000 calls for $14.99/month). See all plans.