Thesaurus
Find synonyms and antonyms for any word. Perfect for vocabulary building, writing assistance, and educational applications.
Overview
Use Cases
- Writing assistance and enrichment tools
- Vocabulary learning applications
- Word game development
- Educational platforms and flashcards
- Content creation and SEO tools
Features
Synonyms and antonyms in a single request
Case-insensitive lookup
Curated English word dataset
Fast, low-latency in-memory responses
API Endpoints
Thesaurus Lookup
Returns synonyms and antonyms for the given word.
GET
https://api.requiems.xyz/v1/text/thesaurus/{word}
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| word | string |
Required | The word to look up in the thesaurus |
Try it out
Live DemoRequest
The word to look up in the thesaurus
Sending request...
Response Fields
| Field | Type | Description |
|---|---|---|
| word | string |
The normalized (lowercased) word that was looked up |
| synonyms | array of strings |
List of words with similar meaning |
| antonyms | array of strings |
List of words with opposite meaning |
Code Examples
curl https://api.requiems.xyz/v1/text/thesaurus/happy \
-H "requiems-api-key: YOUR_API_KEY"
import requests
url = "https://api.requiems.xyz/v1/text/thesaurus/happy"
headers = {"requiems-api-key": "YOUR_API_KEY"}
response = requests.get(url, headers=headers)
data = response.json()['data']
print(f"Synonyms: {data['synonyms']}")
print(f"Antonyms: {data['antonyms']}")
const response = await fetch('https://api.requiems.xyz/v1/text/thesaurus/happy', {
headers: {
'requiems-api-key': 'YOUR_API_KEY'
}
});
const { data } = await response.json();
console.log('Synonyms:', data.synonyms);
console.log('Antonyms:', data.antonyms);
require 'net/http'
require 'json'
uri = URI('https://api.requiems.xyz/v1/text/thesaurus/happy')
request = Net::HTTP::Get.new(uri)
request['requiems-api-key'] = 'YOUR_API_KEY'
response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) do |http|
http.request(request)
end
data = JSON.parse(response.body)['data']
puts "Synonyms: #{data['synonyms'].join(', ')}"
puts "Antonyms: #{data['antonyms'].join(', ')}"
Error Responses
not_found
The word was not found in the thesaurus dataset.
bad_request
The word path parameter is missing.
Frequently Asked Questions
No, the lookup is case-insensitive. Searching for "Happy", "HAPPY", or "happy" all return the same result.
The API returns a 404 Not Found response with the error code "not_found" if the word is not in the thesaurus dataset.
The dataset contains over 50 curated common English words with their synonyms and antonyms, covering the most frequently used vocabulary.
The endpoint returns both synonyms and antonyms in a single response for efficiency. Both fields are always present in the response.