本站是「查字通」小程序的开放数据与接口服务端,为微信小程序与抖音小程序提供汉字字库、笔顺字形、检索与统计接口。 字库共收录 9565 个汉字(含常用字、次常用字与生僻字、繁体字)。
| 接口 | 说明 |
|---|---|
GET /api/v1/ping.php | 健康检查,返回服务与数据版本 |
GET /api/v1/config.php | 客户端配置:公告、数据版本、广告位开关与频次 |
GET /api/v1/zi.php?c=好 | 单字详情(笔顺路径、读音、部首、组词) |
GET /api/v1/suggest.php?type=pinyin&q=hao | 检索:拼音 / 部首 / 笔画 / 关键字,返回候选字 |
POST /api/v1/report.php | 匿名行为与错误上报(不含个人信息) |
单字数据与索引均为静态文件,由 nginx 直接返回,不经过 PHP:
/data/meta.json 数据版本与来源声明
/data/index/common.txt 常用字索引(3500 字)
/data/index/full.txt 全字表索引(9565 字)
/data/index/bushou.json 部首索引
/data/index/bihua.json 笔画数索引
/data/index/pinyin.json 拼音索引
/data/zi/{codepoint}.json 单字详情(十六进制码点,如 597d.json = 好)
完整声明文件位于 /license/ 目录。