🔌 REST API — v2
Integrate DigInterface into your workflow
A clean REST API giving you programmatic access to DNS lookups, WHOIS, SPF expansion, blacklist checks, SSL inspection and more — the same tools powering DigInterface, available in your code.
curl
Python
JavaScript
# DNS lookup with your API key
curl -X POST https://www.diginterface.com/api/v2/dns/lookup \
-H "Authorization: Bearer di_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{ "domain" : "mimecast.com" , "record_types" : ["MX" , "SPF" ] }'
import requests
response = requests.post(
"https://www.diginterface.com/api/v2/dns/lookup" ,
headers={"Authorization" : "Bearer di_your_api_key_here" },
json={"domain" : "mimecast.com" , "record_types" : ["MX" , "SPF" ]}
)
data = response.json()
print(data["data" ]["records" ])
const response = await fetch("https://www.diginterface.com/api/v2/dns/lookup" , {
method: "POST" ,
headers: {
"Authorization" : "Bearer di_your_api_key_here" ,
"Content-Type" : "application/json"
},
body: JSON.stringify({
domain: "mimecast.com" ,
record_types: ["MX" , "SPF" ]
})
});
const data = await response.json();
console.log(data.data.records);
🔍
DNS Lookups
Query any record type across Google, Cloudflare, OpenDNS and Quad9
🌍
Propagation Checks
Verify DNS changes have propagated across multiple global resolvers
🌐
WHOIS / RDAP
Domain registration, expiry dates, nameservers and registrar data
🔓
SPF Expansion
Recursively expand SPF records and retrieve all authorised IP ranges
🚫
Blacklist Checks
Check IPs and domains against 20+ DNSBL and URIBL lists
🔒
SSL Inspection
Certificate expiry, SANs, TLS version and cipher details
📊
Deliverability
Full email health check — SPF, DKIM, DMARC, PTR and overall score
#️⃣
Hashing
Hash text strings or remote URLs using MD5, SHA-1, SHA-256 and more
🔑
Simple Auth
Bearer token authentication — generate and revoke keys from your dashboard