新华字典

最后更新于:2022-04-02 08:21:41

## 新华字典 >[danger]### 免费接口,每日100次免费调用,会员可不限次数调用,购买[API会员](https://market.topthink.com/product/210) ![](https://docs.gechiui.com/gc-content/uploads/sites/kancloud/de/53/de53be3262abee5f94f22ea60f529559_164x173.png) > 最大最全的新华汉语词典,按拼音查、按部首查、按笔画查 ## 接口调用([调用须知](https://docs.topthink.com/think-api/1835086)) ## 接口1:根据汉字查字典 ### 请求地址 ``` GET https://api.topthink.com/xinhua/query ``` ### 请求参数 | 名称 | 必填 | 类型 | 说明 | | --- | --- | --- | --- | | appCode| 是| string|用户授权码,参考[API调用](https://docs.topthink.com/think-api/1835086) | | word | 是 | string | 填写需要查询的汉字,UTF8 urlencode编码 | ### 返回参数 | 名称 | 类型 | 说明 | | --- | --- | --- | | zi | string | 查询的汉字 | | py | string | 拼音 | | pinyin | string | 读音 | | wubi | string | 五笔 | | bushou | string | 部首 | | bihua | string | 笔画数 | | jijie | list | 简解 | | xiangjie | list | 详解 | ## SDK调用 ``` $client = new Client("YourAppCode"); $result = $client->xinhuaQuery() ->withWord('想') ->request(); ``` 返回示例: ~~~ { "code":0, "message": "成功的返回", "data": [ "id":"8371fa05e7e85b81", "zi":"想", "py":"xiang", "wubi":"shnu", "pinyin":"xiǎng", "bushou":"心", "bihua":"13", "jijie":[ "想", "xiǎng", "动脑筋,思索:感想。思想。想法。想象(配置组合而创造出新形象的心理过程)。想入非非。异想天开。幻想。", "推测,认为:想必。想见(由推想而知道)。想来(表示只是根据推测,不敢完全肯定)。想当然(凭主观推测,认为事情应该是这样)。不堪设想。", "希望,打算:休想。理想。想望。妄想。", "怀念,惦记:想念。朝思暮想。", "像:云想衣裳花想容。", "念思", "", "笔画数:13;", "部首:心;", "笔顺编号:1234251114544" ], "xiangjie":[ "想", "xiǎng", "【动】", "(形声。心形相声。本义:想念;怀念;羡慕)", "同本义〖think;miss〗", "想,冀思也。——《说文》", "览物想故国。——杜甫《客居》", "遥想公瑾当年,小乔初嫁了,雄姿英发。——苏轼《念奴娇》", "又如:想似(深切的怀念);想思(想念)", "思考,思索〖thinkdeeply;ponder〗", "入景响之无应兮,闻省想而不可得。——《楚辞·九章·悲回风》", "后来还亏得文琴替我竭力想法,找了原经手人,向周中堂讨主意。——《二十年目睹之怪现状》", "又如:冥思苦想;想来想去(反复的多方思考);想度(考虑,衡量)", "希望,想要〖hope;want〗", "那时他老人家正在用功,想中那名进士。——《儿女英雄传》", "又如:想闻(想望,仰慕)", "料想;猜想〖anticipate〗", "余读孔氏书,想见其本人。——《史记·孔子世家论》", "又如:想料(料想)", "想象〖imagine〗", "想早励良规。——南朝梁·丘迟《与陈伯之书》", "思念存想,自见异物也。——王充《论衡》", "好像,如同〖seem〗", "云想衣裳花容,春风指槛露华浓。——李白《清平调词三首》", "怀念、回想〖miss;recall〗", "想当年。——宋·辛弃疾《永遇乐·京口北固亭怀古》", "以慰长想。——明·宗臣《报刘一丈书》", "", "想必", "xiǎngbì", "〖presumably;mostprobably〗表示比较肯定的判断、猜测", "想必你赢了", "想不到", "xiǎngbudào", "〖unexpected〗没有思想准备,出乎意外", "想不开", "xiǎngbukāi", "〖takeamattertoheart;takethingstoohard(serious)〗把心中不如意、烦恼的事看得很重,放不下", "别为这些小事想不开", "想当然", "xiǎngdāngrán", "〖take(sth.)forgranted〗凭主观想象,以为事情应当是如此", "后问出何经典,对曰:“以今度之,想当然耳。”——《后汉书·孔融传》", "想到", "xiǎngdào", "〖thinkof;calltomind〗〖脑子里〗有一个想法;〖心里〗产生一个想法", "当他看见那座房子的时候,他就想到了他的老家", "想法", "xiǎngfǎ", "〖thinkofaway〗考虑办法,设法", "想法给大家弄点水", "想法", "xiǎngfa", "〖idea;opinion〗意见", "按我的想法", "想方设法", "xiǎngfāng-shèfǎ", "〖devisemeans〗多方面想办法", "想方设法逃出去", "想见", "xiǎngjiàn", "〖gather;infer〗经过推测得出结论", "从中可以想见生活的艰难", "想见当日围城光景。——清·全祖望《梅花岭记》", "想来", "xiǎnglái", "〖itmaybeassumedthat〗犹料想", "他这话想来是不错的", "想念", "xiǎngniàn", "〖longtoseeagain;miss〗∶思念,怀念", "他非常想念他的妻子", "〖souvenir〗∶纪念品", "这个与你作个想念吧。——《红楼梦》", "想前顾后", "xiǎngqián-gùhòu", "〖ponder〗想着前面,又顾虑后面。形容犹豫不决、矛盾重重的状态", "想儿", "xiǎngr", "〖hope〗[方言]∶希望,愿望", "没有想儿", "想入非非", "xiǎngrù-fēifēi", "〖indulgeinfantasy;neurotic;allowone'sfancytorunwild〗指意念进入玄妙境界。亦喻不切实际的胡思乱想", "一个想入非非的探险家", "想头", "xiǎngtou", "〖idea〗∶想法,念头", "老李有个想头", "〖hope〗∶指望", "没想头了", "想望", "xiǎngwàng", "〖desire;longfor〗希望,企求", "她生平第一次停止了想望,停止了奋斗", "想想", "xiǎngxiǎng", "〖see〗∶考虑", "让我想想", "〖think〗∶思考一下", "想想他们的孩子将成为什么样的人", "〖fancy〗", "想像,设想,用祈使语气暗示惊讶", "想想看吧", "引起注意(如对某一观点)", "想想我们的狼狈局面吧", "想像", "xiǎngxiàng", "〖imagine;fancy;visualize〗设想", "把原子专家们想像成长胡子的老头", "想像力", "xiǎngxiànglì", "〖imagination〗〖心〗∶为了艺术的或知识的创造的目的而形成有意识的观念或心理意象的能力", "想要", "xiǎngyào", "〖want;intend;feelliketo〗一心向往;热切地希望", "想要回家" ] ] } ~~~ ## 接口2:汉字部首列表 ### 请求地址 ``` GET https://api.topthink.com/xinhua/bushou ``` ### 请求参数 无 ### 返回参数 | 名称 | 类型 | 说明 | | --- | --- | --- | | bushou | string | 部首 | | bihua | int | 笔画数 | ## SDK调用 ``` $client = new Client("YourAppCode"); $result = $client->xinhuaBushou() ->request(); ``` 返回示例: ~~~ { "code":0, "message": "成功的返回", "data": [ { "id": "1", "bihua": "1", "bushou": "丨" }, { "id": "2", "bihua": "1", "bushou": "亅" }, { "id": "3", "bihua": "1", "bushou": "丿" } ... ] } ~~~ ## 接口3:汉字拼音列表 ### 请求地址 ``` GET https://api.topthink.com/xinhua/pinyin ``` ### 请求参数 无 ### 返回参数 | 名称 | 类型 | 说明 | | --- | --- | --- | | pinyin\_key | string | 拼音首字母 | | pinyin | string | 拼音 | ## SDK调用 ``` $client = new Client("YourAppCode"); $result = $client->xinhuaPinyin() ->request(); ``` 返回示例: ~~~ { "code":0, "message": "成功的返回", "data": [ { "id": "1", "pinyin_key": "A", "pinyin": "a" }, { "id": "2", "pinyin_key": "A", "pinyin": "ai" } ] } ~~~ ## 接口4:根据部首查汉字 ### 请求地址 ``` GET https://api.topthink.com/xinhua/querybs ``` ### 请求参数 | 名称 | 必填 | 类型 | 说明 | | --- | --- | --- |--- | | appCode| 是| string|用户授权码,参考[API调用](https://docs.topthink.com/think-api/1835086) | | word | 是 | string | 填写需要查询的汉字部首,UTF8 urlencode编码 | | page | 否 | int | 页数,默认1 | | pagesize | 否 | int | 每页返回条数,默认10 最大50 | | isjijie | 否 | int | 是否显示简解,1显示 0不显示 默认1 | | isxiangjie | 否 | int | 是否显示详解,1显示 0不显示 默认1 | ### 返回参数 | 名称 | 类型 | 说明 | | --- | --- | --- | | zi | string | 查询的汉字 | | py | string | 拼音 | | pinyin | string | 读音 | | wubi | string | 五笔 | | bushou | string | 部首 | | bihua | int | 笔画数 | | jijie | list | 简解 | | xiangjie | list | 详解 | ## SDK调用 ``` $client = new Client("YourAppCode"); $result = $client->xinhuaQuerybs() ->withWord('人') ->withPagesize(2) ->request(); ``` 返回示例: ~~~ { "code":0, "message": "成功的返回", "data": [ "list":[ { "id":"43d0f0ea6d432f5e", "zi":"人", "py":"ren", "wubi":"wwww", "pinyin":"rén", "bushou":"人", "bihua":"2" }, { "id":"689020be45a37a77", "zi":"个", "py":"ge", "wubi":"whj", "pinyin":"gè,gě", "bushou":"人", "bihua":"3" } ], "page":1, "pagesize":2, "totalpage":19, "totalcount":37 ] } ~~~ ## 接口5:根据拼音查汉字 ### 请求地址 ``` GET https://api.topthink.com/xinhua/querypy ``` ### 请求参数 |名称 | 必填 | 类型 | 说明 | | --- | --- | --- | --- | | word | 是 | string | 填写需要查询的拼音 | | page | 否 | int | 页数,默认1 | | pagesize | 否 | int | 每页返回条数,默认10 最大50 | | isjijie | 否 | int | 是否显示简解,1显示 0不显示 默认1 | | isxiangjie | 否 | int | 是否显示详解,1显示 0不显示 默认1 | ### 返回参数 |名称 | 类型 | 说明 | | --- | --- | --- | | zi | string | 查询的汉字 | | py | string | 拼音 | | pinyin | string | 读音 | | wubi | string | 五笔 | | bushou | string | 部首 | | bihua | int | 笔画数 | | jijie | list | 简解 | | xiangjie | list | 详解 | ## SDK调用 ``` $client = new Client("YourAppCode"); $result = $client->xinhuaQuerypy() ->withWord('ju') ->withPagesize(2) ->request(); ``` 返回示例: ~~~ { "code":0, "message": "成功的返回", "data": [ "list":[ { "id":"e204a7a91594ce5b", "zi":"且", "py":"ju,qie", "wubi":"egd", "pinyin":"jū,qiě", "bushou":"一", "bihua":"5" }, { "id":"931b59df4a1646bc", "zi":"举", "py":"ju", "wubi":"iwfh", "pinyin":"jǔ", "bushou":"丶", "bihua":"9" } ], "page":1, "pagesize":2, "totalpage":83, "totalcount":166 ] } ~~~ ## 接口6:根据汉字ID查询详细信息 ### 请求地址 ``` GET https://api.topthink.com/xinhua/queryid ``` ### 请求参数 |名称 | 必填 | 类型 | 说明 | | --- | --- | --- | --- | | word | 是 | string | 填写需要查询的汉字id | ### 返回参数 | 名称 | 类型 | 说明 | | --- | --- | --- | | zi | string | 查询的汉字 | | py | string | 拼音 | | pinyin | string | 读音 | | wubi | string | 五笔 | | bushou | string | 部首 | | bihua | int | 笔画数 | | jijie | list | 简解 | | xiangjie | list | 详解 | ## SDK调用 ``` $client = new Client("YourAppCode"); $result = $client->xinhuaQueryid() ->withWord('931b59df4a1646bc') ->request(); ```
';