cURL
curl "https://api.ruseo.cn/api/kangxi?word=192ab072cf0dee513c0ca43964d1031d"
查询康熙字典中的文字解释(部首、笔画、出处等),支持传中文或32位小写MD5
https://api.ruseo.cn/api/kangxi
接口调用前需要确认的核心配置。
/api/kangxikangxi必填参数必须传入,示例值可直接用于联调。
免费API不强制要求API Key,但如果您希望统计个人调用次数,请在请求时附加参数 key=您的API_KEY。
注册账号后即可获得API Key。
| 参数名 | 必填 | 类型 | 说明 | 示例值 |
|---|---|---|---|---|
key |
否 | string | 可选参数:携带此参数可统计您的个人调用次数。请注册账号获取API Key。 | YOUR_API_KEY |
word |
是 | string | 要查询的文字或32位小写MD5,建议生僻字用MD5 | 192ab072cf0dee513c0ca43964d1031d |
优先使用示例地址测试请求参数是否正确。
https://api.ruseo.cn/api/kangxi?word=192ab072cf0dee513c0ca43964d1031d
curl "https://api.ruseo.cn/api/kangxi?word=192ab072cf0dee513c0ca43964d1031d"
$url = 'https://api.ruseo.cn/api/kangxi?word=192ab072cf0dee513c0ca43964d1031d';
$response = file_get_contents($url);
$data = json_decode($response, true);
fetch('https://api.ruseo.cn/api/kangxi?word=192ab072cf0dee513c0ca43964d1031d')
.then(res => res.json())
.then(data => console.log(data));
实际返回内容以接口脚本处理结果为准。
{
"code": 0,
"msg": "success",
"data": {
"route": "kangxi",
"example": true
}
}
| 参数名 | 类型 | 说明 | 示例值 |
|---|---|---|---|
code |
integer | 状态码,200成功,400失败 | 200 |
msg |
string | 返回提示信息 | success |
word |
string | 查询文字 | 㵸 |
urlword |
string | URL编码的查询文字 | %E3%B5%B8 |
content |
string | 文字解释(部首、笔画、出处) | 㵸 15062... |
urlcontent |
string | URL编码的解释 | %E3%B5%B8+... |
点击左侧“发送请求”查看结果...