Dictionary API
NewBatch Lookup
Look up up to 25 words in a single HTTP request and a single rate-limit unit. Supports the same lang, fields, definitions, and examples shaping options as Word Lookup.
GET/api/v1/dictionary
Requires API key
Returns dictionary entries for 1–25 comma-separated words in input order. Missing words are returned inline with found: false instead of failing the request with 404.
Query Parameters
| Name | Description |
|---|---|
wordsrequired | stringComma-separated list of 1–25 words to look up (e.g. serendipity,ephemeral,bonnet). |
lang | stringISO 639 language code (e.g. en, es, fr, de, ja). Defaults to en. |
fields | stringComma-separated fields to include: definitions, pronunciation, etymology, forms, synonyms, antonyms, derived, related, hyponyms, hypernyms. Defaults to (all). |
definitions | integerCap definitions per part-of-speech entry (1–50). Defaults to (all). |
examples | booleanInclude usage examples inside definitions. Defaults to false. |
Request
bash
curl "https://api.playanagrama.com/api/v1/dictionary?words=serendipity,ephemeral,bonnet&fields=definitions,pronunciation&definitions=2" \
-H "Authorization: Bearer ak_your_key_here"Response Fields
| Name | Description |
|---|---|
lang | stringThe language code used for all lookups. |
results | object[]Results in the same order as the input words. |
results[].word | stringCanonical headword when found, or the requested word when not found. |
results[].found | booleanWhether at least one dictionary entry was found. |
results[].results | object[]Array of shaped dictionary entries (one per part of speech), or empty array when not found. |
count | integerTotal number of words processed in this batch. |
foundCount | integerNumber of requested words that matched dictionary entries. |
Response 200
JSON
{
"lang": "en",
"results": [
{
"word": "serendipity",
"found": true,
"results": [
{
"pos": "noun",
"pronunciation": "/ˌsɛɹənˈdɪpɪti/",
"definitions": [
{
"gloss": "A combination of events which have come together by chance to make a surprisingly good or wonderful outcome."
}
]
}
]
},
{
"word": "ephemeral",
"found": true,
"results": [
{
"pos": "adj",
"pronunciation": "/ɪˈfɛm.ə.ɹəl/",
"definitions": [
{
"gloss": "Lasting for a short period of time."
}
]
}
]
},
{
"word": "notawordxyz",
"found": false,
"results": []
}
],
"count": 3,
"foundCount": 2
}Response 400 — Missing or too many words
JSON
{
"error": {
"code": "INVALID_PARAMS",
"message": "words query parameter is required (1-25 comma-separated words)."
}
}Batch lookup executes a single batched MongoDB query backed by the shared in-memory LRU dictionary cache, making it dramatically faster than issuing sequential
/dictionary/:word requests. Supports weak ETag / 304 Not Modified.Was this page helpful?