DNS Lookup API

DNS Lookup API

API to programmatically perform DNS lookups.

Response example. If you want to see more check the documentation.

Free Plan $0.00 Monthly Subscribe
600 Requests / Monthly
Free for Lifetime
No Credit Card Required
MOST POPULAR
Starter Plan $9.99 Monthly Subscribe
30,000 Requests / Monthly
Standard Support
Pro Plan $19.99 Monthly Subscribe
90,000 Requests / Monthly
Standard Support
Custom Plan Volume Monthly Contact Us
Any requests volume you need

DNS Lookup API is a REST API that has predictable resource-oriented URLs, accepts form-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.It programmatically performs lookups for A, NS, MX, AAAA, TXT and SOA records of any domain (GET requests).

Example Request


  curl --request GET 'https://api.apilayer.com/dns_lookup/api/a/google.com' \
  --header 'apikey: YOUR API KEY'
  

Example Response


{
  "domain": "google.com",
  "processResponseTime": "10ms",
  "requestType": "A",
  "results": [
    {
      "ipAddress": "108.177.122.139"
    },
    {
      "ipAddress": "108.177.122.101"
    },
    {
      "ipAddress": "108.177.122.102"
    },
    {
      "ipAddress": "108.177.122.113"
    },
    {
      "ipAddress": "108.177.122.138"
    },
    {
      "ipAddress": "108.177.122.100"
    }
  ],
  "warnings": []
}