API Reference/

Thesaurus API

New

Word Relations

Retrieve aggregated, deduplicated synonyms, antonyms, related words, derived words, hypernyms (broader terms), hyponyms (more specific terms), and inflected forms for any headword.

GET/api/v1/thesaurus/:word

Requires API key

Returns a flat thesaurus summary aggregated across all parts of speech for :word. Supports all multilingual dictionary collections via lang.

Path Parameters

NameDescription
:wordrequired
stringThe headword to look up (1–64 valid headword characters).

Query Parameters

NameDescription
lang
stringISO 639 language code (e.g. en, es, fr, de). Defaults to en.
limit
integerMaximum items returned per relation list (1–100). Defaults to 30.

Request

bash
curl "https://api.playanagrama.com/api/v1/thesaurus/happy?limit=20" \
  -H "Authorization: Bearer ak_your_key_here"

Response Fields

NameDescription
word
stringCanonical headword.
lang
stringISO 639 language code used.
partsOfSpeech
string[]All parts of speech found for this word.
frequencyBand
string | nullEnglish usage tier (basic, common, known, or rare). null for non-English lookups.
pronunciation
string | nullIPA pronunciation string when available.
synonyms
string[]Words with similar meanings.
antonyms
string[]Words with opposite meanings.
related
string[]Topically or etymologically related terms.
derived
string[]Derived phrases and compound words.
hypernyms
string[]Broader category terms.
hyponyms
string[]More specific sub-terms.
forms
string[]Inflected forms (plurals, tenses, comparatives).

Response 200

JSON
{
  "word": "happy",
  "lang": "en",
  "partsOfSpeech": [
    "adj",
    "noun",
    "verb"
  ],
  "frequencyBand": "basic",
  "pronunciation": "/ˈhæpi/",
  "synonyms": [
    "cheerful",
    "content",
    "delighted",
    "glad",
    "joyful",
    "merry"
  ],
  "antonyms": [
    "sad",
    "unhappy",
    "miserable"
  ],
  "related": [
    "happiness",
    "happily"
  ],
  "derived": [
    "happy-go-lucky",
    "trigger-happy"
  ],
  "hypernyms": [],
  "hyponyms": [],
  "forms": [
    "happier",
    "happiest"
  ]
}

Response 404 — Word not found

JSON
{
  "error": {
    "code": "WORD_NOT_FOUND",
    "message": "No thesaurus entries found for 'zzzzz' in en."
  }
}
Responses are cached at the edge and support conditional If-None-Match / 304 Not Modified requests via weak ETag headers.
Was this page helpful?
Anagrama API Docs | Developer Reference