Skip to content

汉字全能工具 ​

基于 cnchar 及其插件,提供汉字笔画、拼音、部首、组词、解释等全方位查询。

查询汉字笔画数 ​

  • 方法: GET
  • 路径: /api/web/chinese/cnchar-stroke

请求参数 (Query) ​

参数类型必填说明
textstring是汉字(支持多字)
GET在线测试

查询汉字拼音 (cnchar版) ​

支持多音字识别。

  • 方法: GET
  • 路径: /api/web/chinese/cnchar-spell

请求参数 (Query) ​

参数类型必填说明
textstring是汉字
tonestring否1带声调 / 0不带,默认 1
GET在线测试

查询汉字部首 ​

  • 方法: GET
  • 路径: /api/web/chinese/cnchar-radical

请求参数 (Query) ​

参数类型必填说明
textstring是汉字
GET在线测试

综合单字查询 ​

一站式查询单个汉字:笔画、拼音、部首、组词、解释(推荐使用)。

仅支持单个汉字查询,是最常用的单字信息接口。

  • 方法: GET
  • 路径: /api/web/chinese/cnchar-info

请求参数 (Query) ​

参数类型必填说明
textstring是单个汉字

请求示例 ​

bash
GET /api/web/chinese/cnchar-info?text=龙

响应示例 ​

json
{
  "char": "龙",
  "stroke": 5,
  "spell": "lóng",
  "radical": { "radical": "龙" },
  "words": ["龙王", "龙虾"],
  "explain": "传说中的一种长形、有鳞、有角的神异动物..."
}
GET在线测试