Domain DNS records
POST https://tools.yukai.uk/api/v1/domain/dns
DNS records and e-mail security grade. All common DNS records via DNS-over-HTTPS, plus SPF (includes followed, RFC 7208 lookup limit) and DMARC analysis graded A–F.
Cost
Credits: 18 ($0.0018) per successful call. Failed calls are free. Source price: bulk-domain-whois-dns-lookup/domain-looked-up.
Input
Send a JSON body (POST) or the same fields as a query string (GET).
Required: domain.
| Field | Type | Default | Description |
|---|---|---|---|
domain required | string | Domain, URL or e-mail address. | |
emailSecurity | boolean | true | Grade SPF and DMARC. |
exactHost | boolean | false | Look up the exact host given (e.g. mail.example.com) instead of the registrable domain. |
Examples
Replace tt_live_XXXX with your key from the pricing page.
curl
curl -i -X POST "https://tools.yukai.uk/api/v1/domain/dns" \
-H "Authorization: Bearer tt_live_XXXX" \
-H "Content-Type: application/json" \
-d '{"domain":"github.com"}'JavaScript (fetch)
const res = await fetch("https://tools.yukai.uk/api/v1/domain/dns", {
method: "POST",
headers: { "Authorization": "Bearer tt_live_XXXX", "Content-Type": "application/json" },
body: JSON.stringify({"domain":"github.com"}),
});
console.log(res.status, res.headers.get("x-credits-charged"), res.headers.get("x-credits-balance"));
console.log(await res.json());Python (requests)
import requests
r = requests.post(
"https://tools.yukai.uk/api/v1/domain/dns",
headers={"Authorization": "Bearer tt_live_XXXX"},
json={"domain": "github.com"},
timeout=120,
)
print(r.status_code, r.headers.get("x-credits-charged"), r.headers.get("x-credits-balance"))
print(r.json())
Response
JSON with "success": true and the result fields; on failure {"success": false, "error": {"code", "message", "retryable"}} and no credits are used. Every answer carries x-credits-charged (credits used) and x-credits-balance (balance after the call); check the balance any time with GET https://tools.yukai.uk/v1/billing/balance.
Full field list and response schema: OpenAPI spec domain-whois-dns (its servers entry is the marketplace gateway; call https://tools.yukai.uk with your key).