词义词典 API

API ID 14588

按意义分组的同义词和反义词 包含定义 相关词和安全过滤器

API 文档

端点

请求
每个意义一个条目,按WordNet的顺序(最常见的在前)按词性排列:定义、共享相同含义的同义词,和形容词的“相似”形容词群集。“同义词”在顶部是去重后的列表,保持相同的顺序
Endpoint ID: 37375
GET https://zylalabs.com/api/14588/word+sense+thesaurus+api/37375/synonyms+grouped+by+meaning
输入参数

按意义分组的同义词 — 端点功能

对象 描述
word 必需 A word or phrase (up to 64 characters; "ice cream", "run away"). Inflected forms are matched to their base form: ran → run, mice → mouse, dogs → dog.
pos 可选 Only this part of speech: noun, verb, adjective or adverb.
safe 可选 Best-effort family-friendly filter (default false). Drops senses our word list tags as vulgar, derogatory, slur or slang, senses whose definitions describe sexual, excretory or illegal-drug meanings, and a list of profane and slur words, everywhere in the answer. Not a guarantee; see safeNote in the answer.

剩余免费测试请求:3 / 3。


输入参数

word
pos
safe
API 示例响应
JSON
{
    "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"
    ]
}
按意义分组的同义词 — 代码片段

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' 


    
请求
直接反义词在词义之间记录(快乐 ↔ 不快乐);间接反义词来自于形容词集群(快乐的 → 不快乐的通过一个相似的形容词)。没有反义词的词义被省略;没有反义词的词返回一个空列表
Endpoint ID: 37376
GET https://zylalabs.com/api/14588/word+sense+thesaurus+api/37376/antonyms+by+meaning
输入参数

意义的反义词 — 端点功能

对象 描述
word 必需 A word or phrase (up to 64 characters; "ice cream", "run away"). Inflected forms are matched to their base form: ran → run, mice → mouse, dogs → dog.
pos 可选 Only this part of speech: noun, verb, adjective or adverb.
safe 可选 Best-effort family-friendly filter (default false). Drops senses our word list tags as vulgar, derogatory, slur or slang, senses whose definitions describe sexual, excretory or illegal-drug meanings, and a list of profane and slur words, everywhere in the answer. Not a guarantee; see safeNote in the answer.

剩余免费测试请求:3 / 3。


输入参数

word
pos
safe
API 示例响应
JSON
{
    "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 our word list; indirect ones come from the adjective cluster (a similar adjective's antonym)."
}
意义的反义词 — 代码片段

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' 


    
请求
每个感觉相关的意思都由其单词和定义组成 列表超过“限制”将被截断并带有“Total”
Endpoint ID: 37377
GET https://zylalabs.com/api/14588/word+sense+thesaurus+api/37377/broader+narrower+similar+and+other+related+words
输入参数

更广泛 更狭窄 相似 和其他相关词汇 — 端点功能

对象 描述
word 必需 A word or phrase (up to 64 characters; "ice cream", "run away"). Inflected forms are matched to their base form: ran → run, mice → mouse, dogs → dog.
pos 可选 Only this part of speech: noun, verb, adjective or adverb.
safe 可选 Best-effort family-friendly filter (default false). Drops senses our word list tags as vulgar, derogatory, slur or slang, senses whose definitions describe sexual, excretory or illegal-drug meanings, and a list of profane and slur words, everywhere in the answer. Not a guarantee; see safeNote in the answer.
relation 可选 Comma-separated, or "all": hypernyms (broader), hyponyms (narrower), similar, seeAlso, partOf, hasParts, memberOf, hasMembers, substanceOf, madeOf, entails, causes, attributes, topics, derived (word forms like teach → teacher), pertainyms. Default hypernyms,hyponyms,similar.
limit 可选 Items per relation per sense, 1-100 (default 25).

剩余免费测试请求:3 / 3。


输入参数

word
pos
safe
relation
limit
API 示例响应
JSON
{
    "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": []
            }
        }
    ]
}
更广泛 更狭窄 相似 和其他相关词汇 — 代码片段

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' 


    
请求
每个词义及其定义 示例句 词汇类别(例如名词 动物) 同义词和使用标签(例如 英式拼写 口语) IPA 发音如果开放英语词网提供(约28000个词) 不规则变化
Endpoint ID: 37378
GET https://zylalabs.com/api/14588/word+sense+thesaurus+api/37378/definitions+examples+pronunciation+inflections
输入参数

定义 例子 发音 变形 — 端点功能

对象 描述
word 必需 A word or phrase (up to 64 characters; "ice cream", "run away"). Inflected forms are matched to their base form: ran → run, mice → mouse, dogs → dog.
pos 可选 Only this part of speech: noun, verb, adjective or adverb.
safe 可选 Best-effort family-friendly filter (default false). Drops senses our word list tags as vulgar, derogatory, slur or slang, senses whose definitions describe sexual, excretory or illegal-drug meanings, and a list of profane and slur words, everywhere in the answer. Not a guarantee; see safeNote in the answer.

剩余免费测试请求:3 / 3。


输入参数

word
pos
safe
API 示例响应
JSON
{
    "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": []
        }
    ]
}
定义 例子 发音 变形 — 代码片段

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' 


    
请求
与这个词通过WordNet的派生关系(decide - decision - decisive)和相关关系(decisive - decisively)相连的词,最多连接“深度”为2,遵循确切的含义,因此所到达的同义词和其他含义被排除。“family”按词性将它们分组;“members”给出每个词的跳数(0 = 词本身),到达它的关系以及每个词性的定义。用于写作工具 ESL和词汇应用
Endpoint ID: 37379
GET https://zylalabs.com/api/14588/word+sense+thesaurus+api/37379/word+family+derived+forms+grouped+by+part+of+speech
输入参数

按词性分组的词族派生形式 — 端点功能

对象 描述
word 必需 A word or phrase (up to 64 characters; "ice cream", "run away"). Inflected forms are matched to their base form: ran → run, mice → mouse, dogs → dog.
pos 可选 Only this part of speech: noun, verb, adjective or adverb.
safe 可选 Best-effort family-friendly filter (default false). Drops senses our word list tags as vulgar, derogatory, slur or slang, senses whose definitions describe sexual, excretory or illegal-drug meanings, and a list of profane and slur words, everywhere in the answer. Not a guarantee; see safeNote in the answer.
depth 可选 Links to follow, 1-3 (default 2).

剩余免费测试请求:3 / 3。


输入参数

word
pos
safe
depth
API 示例响应
JSON
{
    "word": "happy",
    "found": false,
    "error": "word_not_found",
    "message": "\"happy\" is not in the word list. Check the spelling, or try the base form."
}
按词性分组的词族派生形式 — 代码片段

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' 


    
请求
错误
Endpoint ID: 37380
GET https://zylalabs.com/api/14588/word+sense+thesaurus+api/37380/random+words+for+games+filtered+and+seeded
输入参数

随机游戏词汇经过筛选和种子处理 — 端点功能

对象 描述
pos 可选 Only words that can be this part of speech.
length 可选 Exact length, 2-15.
minLength 可选 Shortest length (default 2).
maxLength 可选 Longest length (default 15).
startsWith 可选 First 1-3 letters.
level 可选 easy, common (default) or all.
safe 可选 Kid-safe words only (best effort, see safeNote).
count 可选 How many words, 1-100 (default 1).
seed 可选 Whole number 0-4294967295 for a repeatable list.

剩余免费测试请求:3 / 3。


输入参数

pos
length
minLength
maxLength
startsWith
level
safe
count
seed
API 示例响应
JSON
{
    "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)",
    "safeNote": "safe=true is a best-effort filter, not a guarantee: it drops senses our word list 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 端点。要使用 词义词典 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。

标头
标头 描述
授权 必需 应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。

无长期承诺。随时升级、降级或取消。

起价
$10,000/年


  • 自定义数量
  • 自定义速率限制
  • 专业客户支持
  • 实时 API 监控

概览

按意义分组的同义词和反义词,包括定义、相关词和安全过滤器

词义词典 API FAQs

每个端点返回与单词相关的结构化数据,包括同义词、反义词、定义、相关词、发音和词形变化。例如,同义词端点提供按意义分组的同义词,而反义词端点列出了直接和间接的反义词

关键字段包括“单词”、“词形”、“意义”、“定义”、“同义词”、“反义词”、“相关”和“发音”每个意义包含详细信息,例如词性和用法示例,以便进行全面理解

参数因端点而异,但可能包括“word”用于查询特定术语,“limit”用于控制响应长度,以及随机单词端点中的词性、单词长度和常见性过滤器 用户可以根据这些参数自定义请求

响应数据以JSON格式组织,主要单词位于顶部,后面是一个意义数组。每个意义包含“定义”、“同义词”和“反义词”等字段,方便浏览和提取相关信息

典型的用例包括增强写作工具 开发用于词汇建设的教育应用程序以及创建需要词汇联想的游戏 该API还可以通过提供同义词和反义词来帮助语言学习以提高理解能力

用户可以通过将数据整合到应用程序中来利用它,例如用于同义词建议 反义词识别或语言学习工具 例如 写作助手可以根据返回的数据建议同义词以提高文本多样性

如果一个词没有同义词或反义词,API将返回这些字段的空列表 用户应在其应用程序中实现检查,以优雅地处理这种情况,例如向用户提供替代建议或提示

一般常见问题

Zyla API Hub 就像一个大型 API 商店,您可以在一个地方找到数千个 API。我们还为所有 API 提供专门支持和实时监控。注册后,您可以选择要使用的 API。请记住,每个 API 都需要自己的订阅。但如果您订阅多个 API,您将为所有这些 API 使用相同的密钥,使事情变得更简单。
价格以 USD(美元)、EUR(欧元)、CAD(加元)、AUD(澳元)和 GBP(英镑)列出。我们接受所有主要的借记卡和信用卡。我们的支付系统使用最新的安全技术,由 Stripe 提供支持,Stripe 是世界上最可靠的支付公司之一。如果您在使用卡片付款时遇到任何问题,请通过 [email protected]

此外,如果您已经以这些货币中的任何一种(USD、EUR、CAD、AUD、GBP)拥有有效订阅,该货币将保留用于后续订阅。只要您没有任何有效订阅,您可以随时更改货币。
定价页面上显示的本地货币基于您 IP 地址的国家/地区,仅供参考。实际价格以 USD(美元)为单位。当您付款时,即使您在我们的网站上看到以本地货币显示的等值金额,您的卡片对账单上也会以美元显示费用。这意味着您不能直接使用本地货币付款。
有时,银行可能会因其欺诈保护设置而拒绝收费。我们建议您首先联系您的银行,检查他们是否阻止了我们的收费。此外,您可以访问账单门户并更改关联的卡片以进行付款。如果这些方法不起作用并且您需要进一步帮助,请通过 [email protected]
价格由月度或年度订阅决定,具体取决于所选计划。
API 调用根据成功请求从您的计划中扣除。每个计划都包含您每月可以进行的特定数量的调用。只有成功的调用(由状态 200 响应指示)才会计入您的总数。这确保失败或不完整的请求不会影响您的月度配额。
Zyla API Hub 采用月度订阅系统。您的计费周期将从您购买付费计划的那一天开始,并在下个月的同一日期续订。因此,如果您想避免未来的费用,请提前取消订阅。
要升级您当前的订阅计划,只需转到 API 的定价页面并选择您要升级到的计划。升级将立即生效,让您立即享受新计划的功能。请注意,您之前计划中的任何剩余调用都不会转移到新计划,因此在升级时请注意这一点。您将被收取新计划的全部金额。
要检查您本月剩余多少 API 调用,请参考响应标头中的 "X-Zyla-API-Calls-Monthly-Remaining" 字段。例如,如果您的计划允许每月 1,000 个请求,而您已使用 100 个,则响应标头中的此字段将显示 900 个剩余调用。
要查看您的计划允许的最大 API 请求数,请检查 "X-Zyla-RateLimit-Limit" 响应标头。例如,如果您的计划包括每月 1,000 个请求,此标头将显示 1,000。
"X-Zyla-RateLimit-Reset" 标头显示您的速率限制重置之前的秒数。这告诉您何时您的请求计数将重新开始。例如,如果它显示 3,600,则意味着还有 3,600 秒直到限制重置。
是的,您可以随时通过访问您的账户并在账单页面上选择取消选项来取消您的计划。请注意,升级、降级和取消会立即生效。此外,取消后,您将不再有权访问该服务,即使您的配额中还有剩余调用。
为了让您有机会在没有任何承诺的情况下体验我们的 API,我们提供 7 天免费试用,允许您免费进行最多 50 次 API 调用。此试用只能使用一次,因此我们建议将其应用于您最感兴趣的 API。虽然我们的大多数 API 都提供免费试用,但有些可能不提供。试用在 7 天后或您进行了 50 次请求后结束,以先发生者为准。如果您在试用期间达到 50 次请求限制,您需要"开始您的付费计划"以继续发出请求。您可以在个人资料中的订阅 -> 选择您订阅的 API -> 定价标签下找到"开始您的付费计划"按钮。或者,如果您在第 7 天之前不取消订阅,您的免费试用将结束,您的计划将自动计费,授予您访问计划中指定的所有 API 调用的权限。请记住这一点以避免不必要的费用。
7 天后,您将被收取试用期间订阅的计划的全额费用。因此,在试用期结束前取消很重要。因忘记及时取消而提出的退款请求不被接受。
当您订阅 API 免费试用时,您可以进行最多 50 次 API 调用。如果您希望超出此限制进行额外的 API 调用,API 将提示您执行"开始您的付费计划"。您可以在个人资料中的订阅 -> 选择您订阅的 API -> 定价标签下找到"开始您的付费计划"按钮。
付款订单在每月 20 日至 30 日之间处理。如果您在 20 日之前提交请求,您的付款将在此时间范围内处理。
您可以通过我们的聊天渠道联系我们以获得即时帮助。我们始终在线,时间为上午 8 点至下午 5 点(EST)。如果您在该时间之后联系我们,我们将尽快回复您。此外,您可以通过 [email protected]

相关 API