Documentation

API URL


GET /api/v1/dns

Headers
Code
Content-Type: application/json
Query Parameters


Example GET Request

Code
GET https://datpaq.com/api/v1/dns-lookup?api_key=your-api-key&domain=example.com&type=A

Successful Response

Status
HTML
200 OK
Body
Code
[
  {
    "domain": "example.com",
    "records": {
      "A": [
        "93.184.216.34"
      ]
    }
  }
]

Error Response

Example
Code
400 ValidationError - Missing both domain and ip query inputs: Request rejected because no lookup target was provided
401 AuthenticationError - Gateway authentication failure: Request rejected due to missing or invalid API credentials
500 InternalError - Unhandled request-level failure in lookup route: Lookup processing failed and service returned diagnostic details

Last Updated:  May 4, 2026