基于本地词典索引提供 字(19241 条(部首/笔画/拼音/释义)) / 词(271155 条(拼音/释义)) / 成语(49821 条(释义/拼音/出处/例句)) / 歇后语(14026 条(谜面/谜底))的快速查询。
| 参数名 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| key | string | 是 | 接口调用密钥 | |
| q | string | 是 | 要查询的字/词/成语/歇后语谜面 | 慕名 |
| type | string | 否 | 检索类型:全部|字|词|成语|歇后语(all|char|word|idiom|xiehouyu),默认 全部(all) | all |
| mode | string | 否 | exact|prefix|suffix|contains,默认 exact | exact |
| limit | string | 否 | 每类最多返回条数 1-50,默认 10 | 10 |
[
{
"name": "key",
"type": "string",
"required": true,
"description": "接口调用密钥",
"example": ""
},
{
"name": "q",
"type": "string",
"required": true,
"description": "要查询的字/词/成语/歇后语谜面",
"example": "慕名"
},
{
"name": "type",
"type": "string",
"required": false,
"description": "检索类型:全部|字|词|成语|歇后语(all|char|word|idiom|xiehouyu),默认 全部(all)",
"example": "all"
},
{
"name": "mode",
"type": "string",
"required": false,
"description": "exact|prefix|suffix|contains,默认 exact",
"example": "exact"
},
{
"name": "limit",
"type": "string",
"required": false,
"description": "每类最多返回条数 1-50,默认 10",
"example": "10"
}
]
{
"openapi": "3.1.1",
"info": {
"title": "字词成语综合查询",
"description": "基于本地词典索引提供 字(19241 条(部首/笔画/拼音/释义)) / 词(271155 条(拼音/释义)) / 成语(49821 条(释义/拼音/出处/例句)) / 歇后语(14026 条(谜面/谜底))的快速查询。",
"version": "1.0.0"
},
"paths": {
"/v1/dict_lookup.php": {
"get": {
"summary": "字词成语综合查询",
"description": "基于本地词典索引提供 字(19241 条(部首/笔画/拼音/释义)) / 词(271155 条(拼音/释义)) / 成语(49821 条(释义/拼音/出处/例句)) / 歇后语(14026 条(谜面/谜底))的快速查询。",
"parameters": [
{
"name": "key",
"in": "query",
"required": true,
"schema": {
"type": "string"
},
"description": "接口调用密钥"
},
{
"name": "q",
"in": "query",
"required": true,
"schema": {
"type": "string",
"example": "慕名"
},
"description": "要查询的字/词/成语/歇后语谜面"
},
{
"name": "type",
"in": "query",
"required": false,
"schema": {
"type": "string",
"example": "all"
},
"description": "检索类型:全部|字|词|成语|歇后语(all|char|word|idiom|xiehouyu),默认 全部(all)"
},
{
"name": "mode",
"in": "query",
"required": false,
"schema": {
"type": "string",
"example": "exact"
},
"description": "exact|prefix|suffix|contains,默认 exact"
},
{
"name": "limit",
"in": "query",
"required": false,
"schema": {
"type": "string",
"example": "10"
},
"description": "每类最多返回条数 1-50,默认 10"
}
],
"responses": {
"200": {
"description": "成功",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
},
"post": {
"summary": "字词成语综合查询",
"description": "基于本地词典索引提供 字(19241 条(部首/笔画/拼音/释义)) / 词(271155 条(拼音/释义)) / 成语(49821 条(释义/拼音/出处/例句)) / 歇后语(14026 条(谜面/谜底))的快速查询。",
"parameters": [
{
"name": "key",
"in": "query",
"required": true,
"schema": {
"type": "string"
},
"description": "接口调用密钥"
},
{
"name": "q",
"in": "query",
"required": true,
"schema": {
"type": "string",
"example": "慕名"
},
"description": "要查询的字/词/成语/歇后语谜面"
},
{
"name": "type",
"in": "query",
"required": false,
"schema": {
"type": "string",
"example": "all"
},
"description": "检索类型:全部|字|词|成语|歇后语(all|char|word|idiom|xiehouyu),默认 全部(all)"
},
{
"name": "mode",
"in": "query",
"required": false,
"schema": {
"type": "string",
"example": "exact"
},
"description": "exact|prefix|suffix|contains,默认 exact"
},
{
"name": "limit",
"in": "query",
"required": false,
"schema": {
"type": "string",
"example": "10"
},
"description": "每类最多返回条数 1-50,默认 10"
}
],
"responses": {
"200": {
"description": "成功",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
}
},
"servers": [
{
"url": "https://xiaoapi.cn",
"description": "当前访问入口(https)"
}
]
}
{
"code": 0,
"q": "慕名",
"type": "all",
"mode": "prefix",
"message": "查询成功",
"data": {
"char": {
"total": 0,
"items": []
},
"word": {
"total": 2,
"items": [
{
"word": "慕名",
"explanation": "追求名声好事慕名; 仰慕别人的名声慕名而来|慕名求教。",
"pinyin": "mù míng"
},
{
"word": "慕名而来",
"explanation": "指仰慕名声而来。",
"pinyin": "mù míng ér lái"
}
]
},
"idiom": {
"total": 1,
"items": [
{
"word": "慕名而来",
"meaning": "指仰慕名声而来。",
"pinyin": "mù míng ér lái",
"source": "《人民日报》1982.3.14:“不少中外旅游者纷纷慕名而来,西安更成了世人瞩目的地方。”",
"example": ""
}
]
},
"xiehouyu": {
"total": 0,
"items": []
}
},
"cost_ms": 0
}
暂无详细文档
暂无代码示例。管理员可在后台用 AI 生成或手动编写。
// 结果将在此处显示
生效日期:2026年7月22日
欢迎使用 xiaoapi.cn(以下简称"本平台")。在使用本平台提供的 API 服务(以下简称"本服务")前,请务必仔细阅读并充分理解本免责声明。您以任何方式调用、访问或使用本服务,即视为您已阅读、理解并同意接受本声明的全部内容。
本平台作为 API 技术服务的提供方,仅提供技术接口与数据分发服务。本声明的目的在于明确平台与用户之间的责任边界,督促用户合法、合规地使用本服务,防范违法违规行为的发生。
用户在使用本服务时,明确禁止从事以下行为:
在法律法规允许的最大范围内,本平台对以下情形不承担责任:
因用户违反本声明或相关法律法规,导致本平台及其关联方、合作方遭受任何损失(包括但不限于赔偿款、罚款、律师费、诉讼费等),用户同意向本平台及相关方承担全部赔偿责任。
本平台有权根据法律法规变化、业务调整或监管要求,随时修改本声明。修改后的声明将在本页面公布,自公布之日起生效。您继续使用本服务,即视为接受更新后的声明。
如您对本声明有任何疑问,或发现他人存在违规使用本服务的行为,欢迎通过本平台公示的联系方式与我们联系,我们将及时处理。