Documentation

API URL


GET /domain

Headers
Code
Content-Type: application/json
Query Parameters


Example GET Request

Code
GET /dns?domain=example.com&type=MX

Successful Response

Status
HTML
200 OK
Body
Code
[
  {
    "domain": "example.com",
    "records": {
      "MX": [
        {
          "exchange": "mail.example.com",
          "priority": 10
        }
      ]
    }
  }
]

Error Response

Example
Code
400 MISSING_INPUT – If neither domain nor ip is provided
200 ENODATA – When a record type has no data
200 ENOTFOUND – Reverse lookup failed
500 LOOKUP_FAILED – Unexpected internal error

Last Updated:  May 4, 2026