API URL
GET /api/v1/dns
Headers
Code
Content-Type: application/jsonQuery Parameters
Param
Type
Description
domain
optional
string
Domain target or repeated domain inputs for forward lookup
ip
optional
string
IP target for reverse PTR lookup
type
optional
string
Record type selector including ALL expansion
Example GET Request
Code
GET https://datpaq.com/api/v1/dns-lookup?api_key=your-api-key&domain=example.com&type=ASuccessful Response
Status
HTML
200 OKBody
Code
[
{
"domain": "example.com",
"records": {
"A": [
"93.184.216.34"
]
}
}
]Field
Type
domain
string
records
object
records.A
string
records.AAAA
string
records.MX
string
records.TXT
string
records.NS
string
records.CNAME
string
records.SOA
object
ip
string
PTR
string
error
string
details
string
correlationId
string
status
string
service
string
timestamp
string
uptime
number
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 detailsLast Updated: May 4, 2026