API Reference/

Dictionary API

Combining Filters

All filtering parameters can be combined in a single request for precise control over the response. This is ideal for building focused UIs that only need specific data.

GET/api/v1/dictionary/bonnet?pos=noun&fields=definitions,synonyms&definitions=3

Requires API key

Combine pos, fields, and definitions for precise control. This returns only the noun entry, with only definitions (capped at 3) and synonyms — no etymology, forms, derived words, etc.

Request

bash
curl "https://api.playanagrama.com/api/v1/dictionary/bonnet?pos=noun&fields=definitions,synonyms&definitions=3" \
  -H "Authorization: Bearer ak_your_key_here"

Response 200 — Combined filters

JSON
{
  "word": "Bonnet",
  "lang": "en",
  "results": [
    {
      "pos": "noun",
      "definitions": [
        {
          "gloss": "A type of hat, once worn by women or children, held in place by ribbons tied under the chin."
        },
        {
          "gloss": "The hinged cover over the engine of a motor car, also known as a hood in chiefly Canada and the US."
        }
      ],
      "synonyms": [
        "tam o'shanter",
        "hood"
      ]
    }
  ]
}
The parameters used here: pos=noun filters to nouns only, fields=definitions,synonyms returns only those two fields, and definitions=3 caps at 3 glosses per entry. Add examples=true to also include usage examples.
Was this page helpful?
Anagrama API Docs | Developer Reference