Dictionary API
Available Languages
GET/api/v1/dictionary/languages
Requires API key
Returns a list of all available dictionary languages with the number of entries in each. Languages are sorted by entry count (largest first). The response is cached server-side for 5 minutes with Cache-Control: public, s-maxage=300.
Request
bash
curl "https://api.playanagrama.com/api/v1/dictionary/languages" \
-H "Authorization: Bearer ak_your_key_here"Response Fields
| Name | Description |
|---|---|
languages | object[]Array of language objects, sorted by entry count descending. |
languages[].code | stringISO 639 language code. Pass this as the lang parameter to GET /v1/dictionary/:word. |
languages[].entries | integerTotal number of dictionary entries for this language. |
count | integerTotal number of available languages. |
Response 200
JSON
{
"languages": [
{
"code": "en",
"entries": 1440974
},
{
"code": "la",
"entries": 878330
},
{
"code": "es",
"entries": 796482
},
{
"code": "it",
"entries": 620479
},
{
"code": "ru",
"entries": 439895
},
{
"code": "fr",
"entries": 398236
},
{
"code": "de",
"entries": 362384
}
],
"count": 871
}Response 401 — Missing API key
JSON
{
"error": {
"code": "UNAUTHORIZED",
"message": "A valid API key is required. Pass it as a Bearer token."
}
}The full response includes all 871 languages. The example above shows only the top 7 by entry count. This endpoint is ideal for building language selection UIs or validating language codes before making lookup requests.
Was this page helpful?