Check a word
GEThttps://api.lexema.fyi/v1/exists
Whether /lookup finds q.
Query parameters
qstringrequired
The word, 1 to 128 characters.
Responses
- 200
existsistruewith the word'sattribution, orfalsewithattributionnull.
Request
curl -G -H "X-API-Key: lx_…" \
--data-urlencode "q=sale" \
"https://api.lexema.fyi/v1/exists"const params = new URLSearchParams({ "q": "sale" });
const response = await fetch(`https://api.lexema.fyi/v1/exists?${params}`, {
headers: { "X-API-Key": "lx_…" },
});
const data = await response.json();import requests
response = requests.get(
"https://api.lexema.fyi/v1/exists",
params={ "q": "sale" },
headers={ "X-API-Key": "lx_…" },
)
data = response.json()Response
200{
"query": "sale",
"release_id": "it-0c432803",
"exists": true,
"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"
}
}