Find close spellings
GEThttps://api.lexema.fyi/v1/nearby
Spellings close to q, in the not-found page's order: the same letters with accents (accent), one edit away (edit), or words that begin with q (prefix).
Query parameters
qstringrequired
The word, 1 to 128 characters.
Responses
- 200
resultsholds the spellings, and is empty when none is close.
Request
curl -G -H "X-API-Key: lx_…" \
--data-urlencode "q=mangare" \
"https://api.lexema.fyi/v1/nearby"const params = new URLSearchParams({ "q": "mangare" });
const response = await fetch(`https://api.lexema.fyi/v1/nearby?${params}`, {
headers: { "X-API-Key": "lx_…" },
});
const data = await response.json();import requests
response = requests.get(
"https://api.lexema.fyi/v1/nearby",
params={ "q": "mangare" },
headers={ "X-API-Key": "lx_…" },
)
data = response.json()Response
200{
"query": "mangare",
"release_id": "it-0c432803",
"results": [
{
"word": "mangiare",
"kind": "edit",
"attribution": {
"licence": "CC BY-SA 4.0",
"licence_url": "https://creativecommons.org/licenses/by-sa/4.0/",
"source": "Wikizionario",
"source_url": "https://it.wiktionary.org/wiki/mangiare"
}
}
]
}