JavaScript can call the current JSON POST lookup endpoints directly or from a trusted server.
Fetch request
For public domain-only information, send the hostname and inspect HTTP status before interpreting the response. Keep full email addresses off the wire unless your flow explicitly requires address-level hints.
const response = await fetch("https://www.codedeb.com/api/tools/domain-intelligence", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ value: "example.org" }),
});
if (!response.ok) throw new Error("Lookup failed: " + response.status);
const result = await response.json();
console.log(result.disposable.status);
Important
Do not automatically reject an account because a result is unknown. Also handle rate limits and request cancellation in your application.
Machine-readable contract
- Canonical chapter: https://www.codedeb.com/docs/verify/javascript
- Reference: https://www.codedeb.com/docs.md
- Documentation index: https://www.codedeb.com/llms.txt
- OpenAPI: https://www.codedeb.com/api/tools/domain-intelligence/openapi.json