API Reference/

Dictionary API

Part of Speech Filter

Pass the pos query parameter to return only entries matching a specific part of speech. Works on both exact match and prefix search modes.

Supported Values

nounverbadjadvnameintjprepconjdetpronnumparticleaffixphrase

GET/api/v1/dictionary/bonnet?pos=noun

Requires API key

Filter by part of speech. Returns only noun entries for “bonnet” (1 result instead of 3).

Query Parameters

NameDescription
pos
stringPart of speech to filter by (e.g. noun, verb, adj). Returns only entries matching the given value. Defaults to (all).

Request

bash
curl "https://api.playanagrama.com/api/v1/dictionary/bonnet?pos=noun" \
  -H "Authorization: Bearer ak_your_key_here"

Response 200 — Nouns only

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."
        }
      ],
      "etymology": "From Middle English bonet, from Middle French bonet...",
      "forms": [
        {
          "form": "bonnets",
          "tags": [
            "plural"
          ]
        }
      ],
      "synonyms": [
        "tam o'shanter",
        "hood"
      ]
    }
  ]
}
Without ?pos=noun, this query returns 3 entries (noun, verb, proper noun). The filter narrows it to just the noun. Also works with prefix search — add ?exact=false&pos=noun to only return nouns matching the prefix.
Was this page helpful?
Anagrama API Docs | Developer Reference