Endpoint
GET https://requiems.xyz/v1/text/thesaurus/{word}
Thesaurus Lookup
Returns synonyms and antonyms for the given word.
Parameters
| Name | Type | Required | Location | Description |
|---|---|---|---|---|
word |
string | yes | path | The word to look up in the thesaurus |
Response Example
{
"data": {
"word": "happy",
"synonyms": ["joyful", "cheerful", "content", "pleased", "delighted", "glad", "elated", "blissful"],
"antonyms": ["sad", "unhappy", "miserable", "sorrowful", "dejected", "gloomy", "melancholy"]
},
"metadata": {
"timestamp": "2026-01-01T00:00:00Z"
}
}
Response Fields
| Field | Type | Description |
|---|---|---|
word |
string | The normalized (lowercased) word that was looked up |
synonyms |
array | List of words with similar meaning |
antonyms |
array | List of words with opposite meaning |
Errors
404not_found — The word was not found in the thesaurus dataset.400bad_request — The word path parameter is missing.