Dictionary API
Usage Examples
By default, definitions only contain the gloss field to keep responses lean. Pass examples=true to include usage examples where available.
GET/api/v1/dictionary/hola?lang=es&examples=true
Requires API key
Include usage examples inside definitions. When examples=true, each definition may include an examples array of example sentences.
Query Parameters
| Name | Description |
|---|---|
examples | booleanInclude usage examples inside definitions. Defaults to false. |
Request
bash
curl "https://api.playanagrama.com/api/v1/dictionary/hola?lang=es&examples=true" \
-H "Authorization: Bearer ak_your_key_here"Response 200 — With examples
JSON
{
"word": "hola",
"lang": "es",
"results": [
{
"pos": "intj",
"definitions": [
{
"gloss": "hello, hi, hey",
"examples": [
"¡Hola! ¿Cómo estás?"
]
}
],
"etymology": "Probably from French hola (\"hey! stop!\")..."
}
]
}Not all definitions have examples. When
examples=false (default), the examples key is omitted entirely from definitions. This keeps responses significantly smaller for words with many definitions.Was this page helpful?