Autocomplete personal titles and honorifics by prefix. Returns the most common titles matching the query, sorted by popularity.
/v1/title/<query>https://autocomplete.namedone.com1import { createClient } from "@namedone/autocomplete"23const nd = createClient("nd_...")4const { results } = await nd.titles("m")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 titles endpoint7curl "https://autocomplete.namedone.com/v1/title/m?token=<jwt>"{ "results": [ { "id": "title-0", "text": "Mr", "type": "title" } ], "query": "m"}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: m
{ "results": [ { "id": "title-0", "text": "Mr", "type": "title" }, { "id": "title-1", "text": "Mrs", "type": "title" }, { "id": "title-2", "text": "Miss", "type": "title" }, { "id": "title-3", "text": "Ms", "type": "title" }, { "id": "title-4", "text": "Mx", "type": "title" }, { "id": "title-5", "text": "Master", "type": "title" } ], "query": "m"}Query: dr
{ "results": [ { "id": "title-0", "text": "Dr", "type": "title" } ], "query": "dr"}