cURL
curl "https://api.ruseo.cn/api/chazd?word=%E9%BE%99"
查询汉字详细信息,包含部首、笔画、拼音、五笔、繁体、五行属性、笔顺等
https://api.ruseo.cn/api/chazd
接口调用前需要确认的核心配置。
/api/chazdchazd必填参数必须传入,示例值可直接用于联调。
免费API不强制要求API Key,但如果您希望统计个人调用次数,请在请求时附加参数 key=您的API_KEY。
注册账号后即可获得API Key。
| 参数名 | 必填 | 类型 | 说明 | 示例值 |
|---|---|---|---|---|
key |
否 | string | 可选参数:携带此参数可统计您的个人调用次数。请注册账号获取API Key。 | YOUR_API_KEY |
word |
是 | string | 要查询的汉字 | 龙 |
优先使用示例地址测试请求参数是否正确。
https://api.ruseo.cn/api/chazd?word=%E9%BE%99
curl "https://api.ruseo.cn/api/chazd?word=%E9%BE%99"
$url = 'https://api.ruseo.cn/api/chazd?word=%E9%BE%99';
$response = file_get_contents($url);
$data = json_decode($response, true);
fetch('https://api.ruseo.cn/api/chazd?word=%E9%BE%99')
.then(res => res.json())
.then(data => console.log(data));
实际返回内容以接口脚本处理结果为准。
{
"code": 0,
"msg": "success",
"data": {
"route": "chazd",
"example": true
}
}
| 参数名 | 类型 | 说明 | 示例值 |
|---|---|---|---|
success |
boolean | 是否成功 | true |
char |
string | 汉字 | 龙 |
radical |
string | 部首 | 龙 |
strokes |
string | 笔画数 | 5 |
pinyin |
string | 拼音 | long |
tone |
string | 音调 | lóng |
bopomofo |
string | 注音 | ㄌㄨㄥˊ |
wubi |
string | 五笔 | dxv |
traditional |
string | 繁体字 | 龍 |
traditional_strokes |
string | 繁体笔画数 | 16 |
wuxing |
string | 五行属性 | 火 |
structure |
string | 结构 | 单体结构 |
unicode |
string | Unicode编码 | U+9F99 |
zhengma |
string | 郑码 | GM |
cangjie |
string | 仓颉 | IKP |
stroke_order |
string | 笔顺 | 13534 |
stroke_order_name |
string | 笔顺名 | 横、撇、横折钩、撇、点 |
image |
string | 字图URL | https://... |
animation |
string | 字动图URL | https://... |
writing_guide |
string | 写法图URL | https://... |
brief |
string | 简介 | 传说中的一种长形... |
explanation |
string | 详细解释 | 【名】象形... |
点击左侧“发送请求”查看结果...