请求地址 http://api.zhyunxi.com/api.php?api=60&key=你的KEY&keyword=搜索关键词
返回示例 搜索:{"code":0,"msg":"success","data":["功能性呕吐[疾病]","神经性呕吐[疾病]","小儿时期常见的呕吐[疾病]","小儿呕吐[疾病]","新生儿呕吐[疾病]","恶心和呕吐[疾病]","妊娠呕吐[疾病]","小儿再发性呕吐[疾病]","胃寒呕吐[疾病]","虚寒呕吐[疾病]","呕吐[症状]","恶心与呕吐[症状]","头痛并呕吐[症状]","神经性呕吐[症状]","腹痛伴恶心、呕吐[症状]","粪样呕吐物[症状]","剧烈运动后呕吐[症状]","进食呕吐[症状]","烧伤后恶心与呕吐[症状]","频繁呕吐及便秘[症状]","反射性呕吐[症状]","小儿进食易呕吐[症状]","右下腹痛伴呕吐[症状]"]} 精确查询:{"code":0,"msg":"success","data":["功能性呕吐[疾病]","神经性呕吐[疾病]","小儿时期常见的呕吐[疾病]","小儿呕吐[疾病]","新生儿呕吐[疾病]","恶心和呕吐[疾病]","妊娠呕吐[疾病]","小儿再发性呕吐[疾病]","胃寒呕吐[疾病]","虚寒呕吐[疾病]","呕吐[症状]","恶心与呕吐[症状]","头痛并呕吐[症状]","神经性呕吐[症状]","腹痛伴恶心、呕吐[症状]","粪样呕吐物[症状]","剧烈运动后呕吐[症状]","进食呕吐[症状]","烧伤后恶心与呕吐[症状]","频繁呕吐及便秘[症状]","反射性呕吐[症状]","小儿进食易呕吐[症状]","右下腹痛伴呕吐[症状]"]}
返回参数
返回参数 类型 说明 code
Int
状态码 msg
String
返回说明 搜索
data[n]
String
搜索结果 精确查询
data[0].entity
String
疾病/症状名称 data[0].result[n].attribute
String
属性 data[0].result[n].value
String
属性值
<br><br>
<table class="mdui-table"><thead><tr>
<th>返回参数</th><th>类型</th><th>说明</th></tr></thead><tbody>
<tr><td><code>code</code></td>
<td>Int</td>
<td>状态码</tr>
<tr><td><code>msg</code></td>
<td>String</td>
<td>返回说明</tr>
<tr><td><code>搜索</code></td>
<td></td>
<td></tr>
<tr><td><code>data[n]</code></td>
<td>String</td>
<td>搜索结果</tr>
<tr><td><code>精确查询</code></td>
<td></td>
<td></tr>
<tr><td><code>data[0].entity</code></td>
<td>String</td>
<td>疾病/症状名称</tr>
<tr><td><code>data[0].result[n].attribute</code></td>
<td>String</td>
<td>属性</tr>
<tr><td><code>data[0].result[n].value</code></td>
<td>String</td>
<td>属性值</tr>
</tbody></table>
请求参数 | 必填 | 类型 | 说明 |
---|---|---|---|
api |
是 | String | 接口id |
key |
是 | String | 你的key |
搜索 |
|||
keyword |
是 | String | 搜索关键词(症状、疾病) |
精确查询 |
|||
entity |
是 | String | 疾病名或症状(可省略搜索内容中的[疾病/症状]) |
attribute |
否 | String | 属性名(为空:返回所有属性及值;属性名:返回指定属性的值) |