{
"word": "happy",
"lemmas": [
"happy"
],
"safe": false,
"senses": [
{
"id": "oewn-01151786-a",
"partOfSpeech": "adjective",
"definition": "enjoying or showing or marked by joy or pleasure",
"synonyms": [],
"similar": [
"blessed",
"blissful",
"bright",
"golden",
"halcyon",
"prosperous",
"laughing",
"riant"
],
"usage": []
},
{
"id": "oewn-01052105-s",
"partOfSpeech": "adjective",
"satellite": true,
"definition": "marked by good fortune",
"synonyms": [
"felicitous"
],
"similar": [
"fortunate"
],
"usage": []
},
{
"id": "oewn-02576313-s",
"partOfSpeech": "adjective",
"satellite": true,
"definition": "eagerly disposed to act or to be of service",
"synonyms": [
"glad"
],
"similar": [
"willing"
],
"usage": []
},
{
"id": "oewn-01003861-s",
"partOfSpeech": "adjective",
"satellite": true,
"definition": "well expressed and to the point",
"synonyms": [
"well-chosen"
],
"similar": [
"felicitous"
],
"usage": []
}
],
"synonyms": [
"felicitous",
"glad",
"well-chosen",
"blessed",
"blissful",
"bright",
"golden",
"halcyon",
"prosperous",
"laughing",
"riant",
"fortunate",
"willing"
],
"source": {
"data": "Open English WordNet 2025 (en-word.net), CC BY 4.0, derived from Princeton WordNet 3.0; changed by us (see /attribution)",
"license": "https://creativecommons.org/licenses/by/4.0/",
"attribution": "/attribution"
}
}
curl --location --request GET 'https://zylalabs.com/api/14588/word+sense+thesaurus+api/37375/synonyms+grouped+by+meaning?word=happy&safe=false' --header 'Authorization: Bearer YOUR_API_KEY'
{
"word": "happy",
"lemmas": [
"happy"
],
"safe": false,
"senses": [
{
"id": "oewn-01151786-a",
"partOfSpeech": "adjective",
"definition": "enjoying or showing or marked by joy or pleasure",
"antonyms": [
{
"word": "unhappy",
"kind": "direct",
"id": "oewn-01152997-a",
"definition": "experiencing or marked by or causing sadness or sorrow or discontent"
}
]
},
{
"id": "oewn-01052105-s",
"partOfSpeech": "adjective",
"satellite": true,
"definition": "marked by good fortune",
"antonyms": [
{
"word": "unfortunate",
"kind": "indirect",
"id": "oewn-01053161-a",
"definition": "not favored by fortune; marked or accompanied by or resulting in ill fortune"
}
]
},
{
"id": "oewn-02576313-s",
"partOfSpeech": "adjective",
"satellite": true,
"definition": "eagerly disposed to act or to be of service",
"antonyms": [
{
"word": "unwilling",
"kind": "indirect",
"id": "oewn-02576745-a",
"definition": "not disposed to and refusing to do something"
}
]
},
{
"id": "oewn-01003861-s",
"partOfSpeech": "adjective",
"satellite": true,
"definition": "well expressed and to the point",
"antonyms": [
{
"word": "infelicitous",
"kind": "indirect",
"id": "oewn-01004300-a",
"definition": "not appropriate in application; defective"
}
]
}
],
"antonyms": [
"unhappy",
"unfortunate",
"unwilling",
"infelicitous"
],
"note": "Direct antonyms are recorded between word senses in WordNet; indirect ones come from the adjective cluster (a similar adjective's antonym).",
"source": {
"data": "Open English WordNet 2025 (en-word.net), CC BY 4.0, derived from Princeton WordNet 3.0; changed by us (see /attribution)",
"license": "https://creativecommons.org/licenses/by/4.0/",
"attribution": "/attribution"
}
}
curl --location --request GET 'https://zylalabs.com/api/14588/word+sense+thesaurus+api/37376/antonyms+by+meaning?word=happy&safe=false' --header 'Authorization: Bearer YOUR_API_KEY'
{
"word": "happy",
"lemmas": [
"happy"
],
"safe": false,
"relations": [
"hypernyms",
"hyponyms"
],
"senses": [
{
"id": "oewn-01151786-a",
"partOfSpeech": "adjective",
"definition": "enjoying or showing or marked by joy or pleasure",
"words": [],
"related": {
"hypernyms": [],
"hyponyms": []
}
},
{
"id": "oewn-01052105-s",
"partOfSpeech": "adjective",
"satellite": true,
"definition": "marked by good fortune",
"words": [
"felicitous"
],
"related": {
"hypernyms": [],
"hyponyms": []
}
},
{
"id": "oewn-02576313-s",
"partOfSpeech": "adjective",
"satellite": true,
"definition": "eagerly disposed to act or to be of service",
"words": [
"glad"
],
"related": {
"hypernyms": [],
"hyponyms": []
}
},
{
"id": "oewn-01003861-s",
"partOfSpeech": "adjective",
"satellite": true,
"definition": "well expressed and to the point",
"words": [
"well-chosen"
],
"related": {
"hypernyms": [],
"hyponyms": []
}
}
],
"source": {
"data": "Open English WordNet 2025 (en-word.net), CC BY 4.0, derived from Princeton WordNet 3.0; changed by us (see /attribution)",
"license": "https://creativecommons.org/licenses/by/4.0/",
"attribution": "/attribution"
}
}
curl --location --request GET 'https://zylalabs.com/api/14588/word+sense+thesaurus+api/37377/broader+narrower+similar+and+other+related+words?word=happy&safe=false&relation=hypernyms,hyponyms&limit=3' --header 'Authorization: Bearer YOUR_API_KEY'
{
"word": "happy",
"lemmas": [
"happy"
],
"safe": false,
"pronunciations": {
"happy": [
{
"ipa": "ˈhæpi",
"variety": "US"
},
{
"ipa": "ˈhæpiː",
"variety": "GB"
}
]
},
"inflections": {
"happy": [
"happier",
"happiest"
]
},
"senses": [
{
"id": "oewn-01151786-a",
"partOfSpeech": "adjective",
"definition": "enjoying or showing or marked by joy or pleasure",
"lexicalCategory": "adj.all",
"examples": [
"a happy smile",
"spent many happy days on the beach",
"a happy marriage"
],
"synonyms": [],
"usage": []
},
{
"id": "oewn-01052105-s",
"partOfSpeech": "adjective",
"satellite": true,
"definition": "marked by good fortune",
"lexicalCategory": "adj.all",
"examples": [
"a felicitous life",
"a happy outcome"
],
"synonyms": [
"felicitous"
],
"usage": []
},
{
"id": "oewn-02576313-s",
"partOfSpeech": "adjective",
"satellite": true,
"definition": "eagerly disposed to act or to be of service",
"lexicalCategory": "adj.all",
"examples": [
"glad to help"
],
"synonyms": [
"glad"
],
"usage": []
},
{
"id": "oewn-01003861-s",
"partOfSpeech": "adjective",
"satellite": true,
"definition": "well expressed and to the point",
"lexicalCategory": "adj.all",
"examples": [
"a happy turn of phrase",
"a few well-chosen words"
],
"synonyms": [
"well-chosen"
],
"usage": []
}
],
"source": {
"data": "Open English WordNet 2025 (en-word.net), CC BY 4.0, derived from Princeton WordNet 3.0; changed by us (see /attribution)",
"license": "https://creativecommons.org/licenses/by/4.0/",
"attribution": "/attribution"
}
}
curl --location --request GET 'https://zylalabs.com/api/14588/word+sense+thesaurus+api/37378/definitions+examples+pronunciation+inflections?word=happy&safe=false' --header 'Authorization: Bearer YOUR_API_KEY'
{
"word": "happy",
"found": false,
"error": "word_not_found",
"message": "\"happy\" is not in the word list (Open English WordNet 2025). Check the spelling, or try the base form.",
"source": {
"data": "Open English WordNet 2025 (en-word.net), CC BY 4.0, derived from Princeton WordNet 3.0; changed by us (see /attribution)",
"license": "https://creativecommons.org/licenses/by/4.0/",
"attribution": "/attribution"
}
}
curl --location --request GET 'https://zylalabs.com/api/14588/word+sense+thesaurus+api/37379/word+family+derived+forms+grouped+by+part+of+speech?word=happy&pos=noun&safe=false&depth=2' --header 'Authorization: Bearer YOUR_API_KEY'
{
"seed": 42,
"count": 5,
"matching": 1506,
"filters": {
"pos": "noun",
"minLength": 5,
"maxLength": 5,
"level": "common",
"safe": true
},
"words": [
{
"word": "pixie",
"partsOfSpeech": [
"noun"
],
"length": 5
},
{
"word": "labor",
"partsOfSpeech": [
"noun",
"verb"
],
"length": 5
},
{
"word": "sweat",
"partsOfSpeech": [
"noun",
"verb"
],
"length": 5
},
{
"word": "rerun",
"partsOfSpeech": [
"noun",
"verb"
],
"length": 5
},
{
"word": "close",
"partsOfSpeech": [
"noun",
"verb",
"adjective",
"adverb"
],
"length": 5
}
],
"level": "words with 2 or more meanings (default)",
"source": {
"data": "Open English WordNet 2025 (en-word.net), CC BY 4.0, derived from Princeton WordNet 3.0; changed by us (see /attribution)",
"license": "https://creativecommons.org/licenses/by/4.0/",
"attribution": "/attribution"
},
"safeNote": "safe=true is a best-effort filter, not a guarantee: it drops senses WordNet tags as vulgar, derogatory, slur or slang, senses whose definitions describe sexual, excretory or illegal-drug meanings or call themselves offensive, and a list of profane and slur words. It can miss some offensive meanings and also hides some harmless ones."
}
curl --location --request GET 'https://zylalabs.com/api/14588/word+sense+thesaurus+api/37380/random+words+for+games+filtered+and+seeded?pos=noun&length=5&level=common&safe=true&count=5&seed=42' --header 'Authorization: Bearer YOUR_API_KEY'
注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 词义词典 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。
| 标头 | 描述 |
|---|---|
授权
|
必需
应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。
|
按意义分组的同义词和反义词,包括定义、相关词和安全过滤器
每个端点返回与单词相关的结构化数据,包括同义词、反义词、定义、相关词、发音和词形变化。例如,同义词端点提供按意义分组的同义词,而反义词端点列出了直接和间接的反义词
关键字段包括“单词”、“词形”、“意义”、“定义”、“同义词”、“反义词”、“相关”和“发音”每个意义包含详细信息,例如词性和用法示例,以便进行全面理解
参数因端点而异,但可能包括“word”用于查询特定术语,“limit”用于控制响应长度,以及随机单词端点中的词性、单词长度和常见性过滤器 用户可以根据这些参数自定义请求
响应数据以JSON格式组织,主要单词位于顶部,后面是一个意义数组。每个意义包含“定义”、“同义词”和“反义词”等字段,方便浏览和提取相关信息
数据来源于Open English WordNet,特别是来自普林斯顿WordNet 3.0。这确保了丰富的词汇和可靠的定义,更新反映最新的语言标准
典型的用例包括增强写作工具 开发用于词汇建设的教育应用程序以及创建需要词汇联想的游戏 该API还可以通过提供同义词和反义词来帮助语言学习以提高理解能力
用户可以通过将数据整合到应用程序中来利用它,例如用于同义词建议 反义词识别或语言学习工具 例如 写作助手可以根据返回的数据建议同义词以提高文本多样性
如果一个词没有同义词或反义词,API将返回这些字段的空列表 用户应在其应用程序中实现检查,以优雅地处理这种情况,例如向用户提供替代建议或提示