Suggest words
GEThttps://api.lexema.fyi/v1/suggest
Up to 10 words that begin with q, as the search field suggests them.
Query parameters
qstringrequired
The beginning of a word, 1 to 128 characters.
Responses
- 200
resultsholds the words, and is empty when none begins withq.
Request
curl -G -H "X-API-Key: lx_…" \
--data-urlencode "q=sal" \
"https://api.lexema.fyi/v1/suggest"const params = new URLSearchParams({ "q": "sal" });
const response = await fetch(`https://api.lexema.fyi/v1/suggest?${params}`, {
headers: { "X-API-Key": "lx_…" },
});
const data = await response.json();import requests
response = requests.get(
"https://api.lexema.fyi/v1/suggest",
params={ "q": "sal" },
headers={ "X-API-Key": "lx_…" },
)
data = response.json()Response
200{
"query": "sal",
"release_id": "it-0c432803",
"results": [
{
"word": "sala",
"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/sala"
}
},
{
"word": "salare",
"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/salare"
}
},
{
"word": "sale",
"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/sale"
}
},
{
"word": "salire",
"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/salire"
}
}
]
}