聚美智数


字典查询

<p>[TOC]</p> <h3>1 接口调用说明</h3> <p>是一款便捷的汉字查询工具,它能够帮助你快速找到汉字的拼音、部首、笔划、注解以及出处。用户不仅可以通过输入准确的汉字进行检索,还可以根据笔划数或部首来查找相应的汉字。非常适合学生、教师、研究人员以及对汉字学习感兴趣的人士使用。</p> <h4>1.1 请求方式</h4> <p>如接口没有单独说明,所有接口均为:<strong>POST</strong></p> <h4>1.2 请求格式</h4> <p>如接口没有单独说明,所有接口均为:<strong>application/x-www-form-urlencoded</strong></p> <h4>1.3 请求参数</h4> <p>请求参数包括公共参数和业务参数(业务参数见具体接口说明) 调用接口时,需要把<strong>公共参数</strong>和<strong>业务参数</strong>一并放在<strong>请求参数</strong>中提交</p> <h5>1.3.1 公共请求参数</h5> <table> <thead> <tr> <th>名称</th> <th>类型</th> <th>必须</th> <th>&lt;div style=&quot;width:420px;&quot;&gt;说明&lt;/div&gt;</th> </tr> </thead> <tbody> <tr> <td>appId</td> <td>String</td> <td>是</td> <td>服务商分配的唯一标识</td> </tr> <tr> <td>timestamp</td> <td>Long</td> <td>是</td> <td>当前时间戳(毫秒)</td> </tr> <tr> <td>sign</td> <td>String</td> <td>是</td> <td>签名,详见&lt;a href=&quot;#签名算法&quot;&gt;签名算法说明&lt;/a&gt;</td> </tr> </tbody> </table> <p>&lt;a name=&quot;签名算法&quot;&gt;&lt;/a&gt;</p> <h5>1.3.2 签名算法说明</h5> <pre><code>sign = sha256(appId + appSecret + timestamp)</code></pre> <p>用服务商分配的 <strong>appId</strong>、服务商分配的 <strong>appSecret</strong>,当前时间戳(毫秒) <strong>timestamp</strong>,按上述顺序拼接成字符串,再进行 <strong>sha256</strong> 哈希得到。如下:</p> <pre><code class="language-java">String appId = &amp;quot;xyzxy2121zxyz&amp;quot;; String timestamp = &amp;quot;1555378976238&amp;quot;; String appSecret = &amp;quot;efcefcef1121cefcefc1212121&amp;quot;; String str = appId + appSecret + timestamp; String sign = sha256(str);</code></pre> <h4>1.4 返回说明</h4> <h5>1.4.1 公共返回字段说明</h5> <p>所有接口均返回以下公共字段:</p> <table> <thead> <tr> <th>字段名</th> <th>&lt;div style=&quot;width:420px&quot;&gt;说明&lt;/div&gt;</th> </tr> </thead> <tbody> <tr> <td>code</td> <td>返回码,详见:code返回码说明</td> </tr> <tr> <td>msg</td> <td>code对应的描述</td> </tr> <tr> <td>charge</td> <td>计费标志 true为计费,false为不计费</td> </tr> <tr> <td>taskNo</td> <td>本次请求号</td> </tr> <tr> <td>data</td> <td>返回具体结果,object类型,详见data返回字段描述</td> </tr> </tbody> </table> <p>&lt;a name=&quot;code返回码说明&quot;&gt;&lt;/a&gt;</p> <h5>1.4.2 code返回码说明</h5> <table> <thead> <tr> <th>code</th> <th>&lt;div style=&quot;width:420px;&quot;&gt;说明&lt;/div&gt;</th> </tr> </thead> <tbody> <tr> <td>200</td> <td>成功</td> </tr> <tr> <td>400</td> <td>参数错误</td> </tr> <tr> <td>404</td> <td>接口地址不正确</td> </tr> <tr> <td>500</td> <td>系统维护,请稍候再试</td> </tr> <tr> <td>601</td> <td>接口未开通</td> </tr> <tr> <td>602</td> <td>账号停用</td> </tr> <tr> <td>604</td> <td>接口停用</td> </tr> <tr> <td>606</td> <td>调用超限,请稍候再试</td> </tr> <tr> <td>607</td> <td>ip不在白名单</td> </tr> <tr> <td>609</td> <td>请求过于频繁,请稍候再试</td> </tr> <tr> <td>610</td> <td>请求超时</td> </tr> <tr> <td>999</td> <td>其他,以实际返回为准</td> </tr> </tbody> </table> <hr /> <h3>2 字典查询-拼音列表</h3> <h4>2.1 接口描述</h4> <ul> <li>查询所有拼音的列表。</li> </ul> <h4>2.2 请求地址</h4> <p><code>https://api.jumdata.com/dictionary/pinyin/list</code></p> <h4>2.3 业务参数</h4> <p>无</p> <h4>2.4 成功返回样例</h4> <pre><code class="language-json">{ &amp;quot;code&amp;quot;: 200,// 返回码,详见返回码说明 &amp;quot;msg&amp;quot;: &amp;quot;成功&amp;quot;,// 返回码对应描述 &amp;quot;taskNo&amp;quot;: &amp;quot;723749872167947237115637&amp;quot;,// 本次请求号 &amp;quot;charge&amp;quot;: true,// 计费标志 &amp;quot;data&amp;quot;: { &amp;quot;items&amp;quot;: [ { &amp;quot;pinyin&amp;quot;: &amp;quot;a&amp;quot;,//拼音 &amp;quot;py_initial&amp;quot;: &amp;quot;A&amp;quot; //拼音首字母 }, ...... { &amp;quot;pinyin&amp;quot;: &amp;quot;zuo&amp;quot;, &amp;quot;py_initial&amp;quot;: &amp;quot;Z&amp;quot; } ] } }</code></pre> <hr /> <h3>3 字典查询-部首列表</h3> <h4>3.1 接口描述</h4> <ul> <li>查询所有部首列表。</li> </ul> <h4>3.2 请求地址</h4> <p><code>https://api.jumdata.com/dictionary/radical/list</code></p> <h4>3.3 业务参数</h4> <p>无</p> <h4>3.4 成功返回样例</h4> <pre><code class="language-json">{ &amp;quot;code&amp;quot;: 200,// 返回码,详见返回码说明 &amp;quot;msg&amp;quot;: &amp;quot;成功&amp;quot;,// 返回码对应描述 &amp;quot;taskNo&amp;quot;: &amp;quot;640817345176240490515749&amp;quot;,// 本次请求号 &amp;quot;charge&amp;quot;: true,// 计费标志 &amp;quot;data&amp;quot;: { &amp;quot;items&amp;quot;: [ { &amp;quot;bihua&amp;quot;: &amp;quot;笔画一&amp;quot;,//笔画 &amp;quot;bushou&amp;quot;: &amp;quot;丨&amp;quot;//部首 }, ..... { &amp;quot;bihua&amp;quot;: &amp;quot;笔画十五&amp;quot;, &amp;quot;bushou&amp;quot;: &amp;quot;龍&amp;quot; }, { &amp;quot;bihua&amp;quot;: &amp;quot;笔画十五&amp;quot;, &amp;quot;bushou&amp;quot;: &amp;quot;龠&amp;quot; } ] } }</code></pre> <hr /> <h3>4 字典查询-拼音查询汉字</h3> <h4>4.1 接口描述</h4> <ul> <li>根据拼音查询返回该拼音下汉字的列表。</li> </ul> <h4>4.2 请求地址</h4> <p><code>https://api.jumdata.com/dictionary/pinyin/query-chinese/list</code></p> <h4>4.3 业务参数</h4> <table> <thead> <tr> <th>名称</th> <th>类型</th> <th>必须</th> <th>&lt;div style=&quot;width:420px;&quot;&gt;说明&lt;/div&gt;</th> </tr> </thead> <tbody> <tr> <td>pinyin</td> <td>String</td> <td>是</td> <td>拼音</td> </tr> </tbody> </table> <h4>4.4 成功返回样例</h4> <pre><code class="language-json">{ &amp;quot;code&amp;quot;: 200,// 返回码,详见返回码说明 &amp;quot;msg&amp;quot;: &amp;quot;成功&amp;quot;,// 返回码对应描述 &amp;quot;taskNo&amp;quot;: &amp;quot;574181804182904045116513&amp;quot;,// 本次请求号 &amp;quot;charge&amp;quot;: true,// 计费标志 &amp;quot;data&amp;quot;: { &amp;quot;items&amp;quot;: [ { &amp;quot;hanzi&amp;quot;: &amp;quot;仴&amp;quot;,//汉字 &amp;quot;pinyin&amp;quot;: &amp;quot;wo&amp;quot;,//拼音 &amp;quot;bihua&amp;quot;: &amp;quot;6&amp;quot;,//汉字笔画 &amp;quot;py_tone&amp;quot;: &amp;quot;wò,&amp;quot; }, ...... { &amp;quot;hanzi&amp;quot;: &amp;quot;我&amp;quot;, &amp;quot;pinyin&amp;quot;: &amp;quot;wo&amp;quot;, &amp;quot;bihua&amp;quot;: &amp;quot;7&amp;quot;, &amp;quot;py_tone&amp;quot;: &amp;quot;wǒ,&amp;quot; } ] } }</code></pre> <h4>4.5 失败返回样例</h4> <pre><code class="language-json">{ &amp;quot;msg&amp;quot;: &amp;quot;拼音不能为空&amp;quot;, &amp;quot;code&amp;quot;: 400 }</code></pre> <hr /> <h3>5 字典查询-部首查询汉字</h3> <h4>5.1 接口描述</h4> <ul> <li>根据部首查询该部首下汉字的列表。</li> </ul> <h4>5.2 请求地址</h4> <p><code>https://api.jumdata.com/dictionary/radical/query-chinese/list</code></p> <h4>5.3 业务参数</h4> <table> <thead> <tr> <th>名称</th> <th>类型</th> <th>必须</th> <th>&lt;div style=&quot;width:420px;&quot;&gt;说明&lt;/div&gt;</th> </tr> </thead> <tbody> <tr> <td>radical</td> <td>String</td> <td>是</td> <td>部首</td> </tr> </tbody> </table> <h4>5.4 成功返回样例</h4> <pre><code class="language-json">{ &amp;quot;code&amp;quot;: 200,// 返回码,详见返回码说明 &amp;quot;msg&amp;quot;: &amp;quot;成功&amp;quot;,// 返回码对应描述 &amp;quot;taskNo&amp;quot;: &amp;quot;865074777153814744844679&amp;quot;,// 本次请求号 &amp;quot;charge&amp;quot;: true,//计费标志 &amp;quot;data&amp;quot;: { &amp;quot;items&amp;quot;: [ { &amp;quot;hanzi&amp;quot;: &amp;quot;力&amp;quot;,//汉字 &amp;quot;pinyin&amp;quot;: &amp;quot;lì&amp;quot;,//拼音 &amp;quot;bihua&amp;quot;: &amp;quot;2&amp;quot;,//笔画 &amp;quot;bushou&amp;quot;: &amp;quot;力&amp;quot;//汉字首部 } ] } }</code></pre> <h4>5.5 失败返回样例</h4> <pre><code class="language-json">{ &amp;quot;msg&amp;quot;: &amp;quot;部首不能为空&amp;quot;, &amp;quot;code&amp;quot;: 400 }</code></pre> <hr /> <h3>6 字典查询-汉字详细信息</h3> <h4>6.1 接口描述</h4> <ul> <li>根据汉字查询该汉字的详细信息。</li> </ul> <h4>6.2 请求地址</h4> <p><code>https://api.jumdata.com/dictionary/chinese/detail</code></p> <h4>6.3 业务参数</h4> <table> <thead> <tr> <th>名称</th> <th>类型</th> <th>必须</th> <th>&lt;div style=&quot;width:420px;&quot;&gt;说明&lt;/div&gt;</th> </tr> </thead> <tbody> <tr> <td>chinese</td> <td>String</td> <td>是</td> <td>汉字</td> </tr> </tbody> </table> <h4>6.4 成功返回样例</h4> <pre><code class="language-json">{ &amp;quot;code&amp;quot;: 200,// 返回码,详见返回码说明 &amp;quot;msg&amp;quot;: &amp;quot;成功&amp;quot;,// 返回码对应描述 &amp;quot;taskNo&amp;quot;: &amp;quot;894812619150840968931577&amp;quot;,// 本次请求号 &amp;quot;charge&amp;quot;: true,//计费标志 &amp;quot;data&amp;quot;: { &amp;quot;wubi&amp;quot;: &amp;quot;&amp;quot;,//五笔 &amp;quot;hanzi&amp;quot;: &amp;quot;好&amp;quot;,//汉字 &amp;quot;pinyin&amp;quot;: &amp;quot;hào hǎo&amp;quot;,//拼音 &amp;quot;basic_explain&amp;quot;: [//基本解释 &amp;quot;好&amp;quot;, &amp;quot;hǎo&amp;quot;, &amp;quot;优点多或使人满意的,与“坏”相对:好人。好汉。好歹。好事多磨。&amp;quot;, &amp;quot;身体康健,疾病消失,生活幸福:您好。安好。&amp;quot; &amp;quot;笔画数:6&amp;quot;, &amp;quot;部首:女&amp;quot;, &amp;quot;笔顺编号:531521&amp;quot; ], &amp;quot;words&amp;quot;: &amp;quot;好艾 好了疮疤忘了痛 好心办坏事 好办 好力宝 &amp;quot;,//组词 &amp;quot;detail_explain&amp;quot;: [ //详细解释 &amp;quot;详细字义&amp;quot;, &amp;quot;好 hǎo&amp;quot;, &amp;quot;〈形〉&amp;quot;, &amp;quot;(1) (会意。从女,从子。本义:美,貌美)&amp;quot;, &amp;quot;(2) 指女子貌美 [beautiful]&amp;quot;, &amp;quot;好,美也。——《说文》&amp;quot;, &amp;quot;凡美色或谓之好。——《方言二》&amp;quot;, &amp;quot;不可谓好。——《国语·晋语》。注:“美也。”&amp;quot;, &amp;quot;是女子不好。——《史记·滑稽列传》&amp;quot;, &amp;quot;鬼侯有子而好。——《战国策·赵策》&amp;quot;, &amp;quot;秦氏有好女。——《乐府诗集·陌上桑》&amp;quot;, &amp;quot;(3) 又如:好皮囊(好看的外貌);好鸟(美丽的鸟);好不丑(反语。即好不俊,俊得很);好美(美貌);好闲(容貌美丽,举止闲雅);好妇(美貌的妇女)&amp;quot; ], &amp;quot;bushou&amp;quot;: &amp;quot;&amp;quot;,//部首 &amp;quot;bihua&amp;quot;: &amp;quot;6&amp;quot; //笔画 } }</code></pre> <h4>6.5 失败返回样例</h4> <pre><code class="language-json">{ &amp;quot;msg&amp;quot;: &amp;quot;汉字不能为空&amp;quot;, &amp;quot;code&amp;quot;: 400 }</code></pre> <h3>7 字典查询-词语或成语解释</h3> <h4>7.1 接口描述</h4> <ul> <li>根据词语或成语查询该词语或成语的解释。</li> </ul> <h4>7.2 请求地址</h4> <p><code>https://api.jumdata.com/dictionary/idiom/explain</code></p> <h4>7.3 业务参数</h4> <table> <thead> <tr> <th>名称</th> <th>类型</th> <th>必须</th> <th>&lt;div style=&quot;width:420px;&quot;&gt;说明&lt;/div&gt;</th> </tr> </thead> <tbody> <tr> <td>idiom</td> <td>String</td> <td>是</td> <td>词语或成语</td> </tr> </tbody> </table> <h4>7.4 成功返回样例</h4> <pre><code class="language-json">{ &amp;quot;code&amp;quot;: 200,// 返回码,详见返回码说明 &amp;quot;msg&amp;quot;: &amp;quot;成功&amp;quot;,// 返回码对应描述 &amp;quot;taskNo&amp;quot;: &amp;quot;673828036172939428121036&amp;quot;,// 本次请求号 &amp;quot;charge&amp;quot;: true,//计费标志 &amp;quot;data&amp;quot;: { &amp;quot;pinyin&amp;quot;: &amp;quot;zhēn biān shí bì&amp;quot;,//拼音 &amp;quot;cidian_explain&amp;quot;: &amp;quot;(1)像医病一样,指出时代和社会问题,又针又砭,求得改正向善。&amp;quot;,//词典对词语或成语的解释 &amp;quot;allusion_explain&amp;quot;: &amp;quot;&amp;quot;,//成语字典对成语的解释 &amp;quot;ciyu&amp;quot;: &amp;quot;针砭时弊&amp;quot;//词语或成语 } }</code></pre> <h4>7.5 失败返回样例</h4> <pre><code class="language-json">{ &amp;quot;msg&amp;quot;: &amp;quot;词语或成语不能为空&amp;quot;, &amp;quot;code&amp;quot;: 400 }</code></pre>

页面列表

ITEM_HTML