Thesaurus
Find synonyms and antonyms for any word. Perfect for vocabulary building, writing assistance, and educational applications.
Vue d'ensemble
Cas d'utilisation
- Writing assistance and enrichment tools
- Vocabulary learning applications
- Word game development
- Educational platforms and flashcards
- Content creation and SEO tools
Fonctionnalités
Synonyms and antonyms in a single request
Case-insensitive lookup
Curated English word dataset
Fast, low-latency in-memory responses
Points de terminaison de l'API
Thesaurus Lookup
Returns synonyms and antonyms for the given word.
GET
https://requiems.xyz/v1/text/thesaurus/{word}
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| word | string |
Requis | The word to look up in the thesaurus |
Essayez-le
Démo en directRequête
The word to look up in the thesaurus
Sending request...
Champs de réponse
| Champ | Type | Description |
|---|---|---|
| word | string |
The normalized (lowercased) word that was looked up |
| synonyms | array<string> |
List of words with similar meaning |
| antonyms | array<string> |
List of words with opposite meaning |
Exemples de code
curl https://requiems.xyz/v1/text/thesaurus/happy \
-H "requiems-api-key: YOUR_API_KEY"
import requests
url = "https://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://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://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(', ')}"
Réponses d'erreur
not_found
The word was not found in the thesaurus dataset.
bad_request
The word path parameter is missing.
Foire aux 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.