Look up many words
POSThttps://api.lexema.fyi/v1/lookup/batch
Up to 200 words at once, each answered light: one entry per candidate with its lemma and part of speech, or one found: false entry for a word not in the release.
Body
qstring[]required
In the JSON body,
{"q": [...]}: 1 to 200 words, each 1 to 128 characters.
Responses
- 200
resultsholds the entries, word by word in the order sent.
Request
curl -H "X-API-Key: lx_…" \
-H "content-type: application/json" \
-d '{"q":["sale","mangare"]}' \
"https://api.lexema.fyi/v1/lookup/batch"const response = await fetch("https://api.lexema.fyi/v1/lookup/batch", {
method: "POST",
headers: { "X-API-Key": "lx_…", "content-type": "application/json" },
body: JSON.stringify({ "q": ["sale", "mangare"] }),
});
const data = await response.json();import requests
response = requests.post(
"https://api.lexema.fyi/v1/lookup/batch",
json={ "q": ["sale", "mangare"] },
headers={ "X-API-Key": "lx_…" },
)
data = response.json()Response
200{
"release_id": "it-0c432803",
"results": [
{
"query": "sale",
"found": true,
"id": "it-0c432803:21651",
"lemma": "sale",
"pos": "noun",
"pos_title": "Sostantivo",
"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"
}
},
{
"query": "sale",
"found": true,
"id": "it-0c432803:41460",
"lemma": "sala",
"pos": "noun",
"pos_title": "Sostantivo",
"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"
}
},
{
"query": "sale",
"found": true,
"id": "it-0c432803:49483",
"lemma": "salire",
"pos": "verb",
"pos_title": "Verbo",
"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"
}
},
{
"query": "mangare",
"found": false,
"lemma": null,
"pos": null,
"pos_title": null
}
]
}