Thesaurus API
The Thesaurus API allows you to look up synonyms (similar words) and antonyms (opposite-meaning words) for any English word.
From 5,075 users
Applications using this API
API Status
API Response Times
Average | P50 | P75 | P90 | P95 |
|---|---|---|---|---|
| 282ms | 301ms | 334ms | 667ms | 1106ms |
Similar APIs
Didn't find what you were looking for? Suggest an improvement
/v1/thesaurus GET
https://api.api-ninjas.com/v1/thesaurus
Returns a list of synonyms and a list of antonyms for a given word.
Parameters
wordrequiredWord to look up.
Headers
X-Api-KeyrequiredAPI Key associated with your account.
Response
wordThe word that was looked up.
synonymsArray of synonym strings (words with similar meanings).
antonymsArray of antonym strings (words with opposite meanings).
Sample Request Live Demo!
Try this API endpoint with all available parameters in our API playground
https://api.api-ninjas.com/v1/thesaurus?word=elegantHeaders
X-Api-KeyLog in or sign up to get your API KeySample Response
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
{
"word": "elegant",
"synonyms": [
"graceful",
"handsome",
"fine",
"luxurious",
"majestic",
"magnificent",
"classy",
"stylish",
"simple",
"tasteful",
"glorious",
"proud",
"royal",
"superb",
"regal",
"refined",
"rich",
"sophisticated",
"aristocratic",
"noble",
"gallant",
"courtly",
"stately",
"fashionable",
"exquisite",
"grand",
"quiet",
"lavish",
"ornate",
"sleek",
"polished",
"heroic",
"splendid",
"classic",
"monumental",
"heroical",
"imposing",
"artful",
"chic",
"conservative",
"restrained",
"understated",
"baronial",
"genteel",
"posh",
"swanky",
"smart",
"patrician",
"august",
"swank",
"grandiose",
"ostentatious",
"pretentious",
"modish",
"in",
"sharp",
"snappy",
"a la mode",
"affected",
"recherché",
"swagger",
"à la mode"
],
"antonyms": [
"inelegant",
"unfashionable",
"tasteless",
"unhandsome",
"dowdy",
"graceless",
"loud",
"grotesque",
"flamboyant",
"flashy",
"gaudy",
"unstylish",
"crude",
"coarse",
"tawdry",
"glitzy",
"tacky",
"garish",
"cheesy",
"raffish",
"splashy",
"styleless",
"vulgar",
"unpolished",
"uncouth",
"trashy",
"unrefined",
"rude",
"uncultivated",
"rough-hewn",
"uncultured",
"ticky-tacky",
"ticky-tack",
"rough-edged"
]
}Code Examples
1
2
curl -X GET "https://api.api-ninjas.com/v1/thesaurus?word=happy" \
-H "X-Api-Key: YOUR_API_KEY"If your programming language is not listed in the Code Example above, you can still make API calls by using a HTTP request library written in your programming language and following the above documentation.