Autocomplete email domains by prefix from the offline MX-verified list. Returns popular domains such as gmail.com and btinternet.com. Confidence is always low: the list is a ranked extract, not proof that no other domain exists, so a typed typo is not auto-selected.
/v1/email-domain/<query>https://autocomplete.namedone.com1import { createClient } from "@namedone/autocomplete"23const nd = createClient("nd_...")4const { results } = await nd.emailDomains("")1# Exchange your API key for a token2curl -X POST https://token.namedone.com/v1 \3 -H "Content-Type: application/json" \4 -d '{"apiKey":"nd_..."}'56# Query the email domains endpoint7curl "https://autocomplete.namedone.com/v1/email-domain/?token=<jwt>"{ "results": [ { "id": "email-domain-0", "text": "gmail.com", } ], "query": "", "confidence": "low"}Sent as query string parameters on the HTTP request to the API.
| Parameter | Type | Default | Description |
|---|---|---|---|
| token | string | — | JWT obtained from the token API. Required for authentication. |
Passed to the SDK methods (e.g. firstNames(query, opts)). These are processed client-side and never sent to the API.
| Option | Type | Default | Description |
|---|---|---|---|
| limit | number | 10 | Maximum number of results (1–50). Applied client-side by the SDK. |
| simple | boolean | false | Simplify response: deduplicate by text and strip to {text, type}. |
Query:
{ "results": [ { "id": "email-domain-0", "text": "gmail.com" }, { "id": "email-domain-1", "text": "hotmail.com" }, { "id": "email-domain-2", "text": "outlook.com" }, { "id": "email-domain-3", "text": "yahoo.com" }, { "id": "email-domain-4", "text": "btinternet.com" } ], "query": "", "confidence": "low"}Query: gm
{ "results": [ { "id": "email-domain-0", "text": "gmail.com" }, { "id": "email-domain-1", "text": "gmx.com" }, { "id": "email-domain-2", "text": "gmx.co.uk" } ], "query": "gm", "confidence": "low"}