cURL
curl "https://api.ruseo.cn/api/disease?word=%E4%B9%99%E8%82%9D"
根据疾病名称查询疾病相关信息,包括病因、症状、治疗方案、推荐药物等。
https://api.ruseo.cn/api/disease
接口调用前需要确认的核心配置。
/api/diseasedisease必填参数必须传入,示例值可直接用于联调。
免费API不强制要求API Key,但如果您希望统计个人调用次数,请在请求时附加参数 key=您的API_KEY。
注册账号后即可获得API Key。
| 参数名 | 必填 | 类型 | 说明 | 示例值 |
|---|---|---|---|---|
key |
否 | string | 可选参数:携带此参数可统计您的个人调用次数。请注册账号获取API Key。 | YOUR_API_KEY |
word |
是 | string | 需要查询的疾病名称 | 乙肝 |
优先使用示例地址测试请求参数是否正确。
https://api.ruseo.cn/api/disease?word=%E4%B9%99%E8%82%9D
curl "https://api.ruseo.cn/api/disease?word=%E4%B9%99%E8%82%9D"
$url = 'https://api.ruseo.cn/api/disease?word=%E4%B9%99%E8%82%9D';
$response = file_get_contents($url);
$data = json_decode($response, true);
fetch('https://api.ruseo.cn/api/disease?word=%E4%B9%99%E8%82%9D')
.then(res => res.json())
.then(data => console.log(data));
实际返回内容以接口脚本处理结果为准。
{
"code": 0,
"msg": "success",
"data": {
"route": "disease",
"example": true
}
}
| 参数名 | 类型 | 说明 | 示例值 |
|---|---|---|---|
name |
string | 疾病名称 | 变异性哮喘 |
desc |
string | 疾病描述 | 变异性哮喘(CVA)是一种特殊类型的哮喘... |
category |
array | 疾病分类 | ["疾病百科","内科","呼吸内科"] |
cause |
string | 病因 | 现代人最大的奢望就是吃好睡好... |
cure_department |
array | 治疗科室 | ["内科","呼吸内科"] |
cure_way |
array | 治疗方式 | ["药物治疗","支持性治疗"] |
cured_prob |
string | 治愈概率 | 60% |
cost_money |
string | 治疗费用 | 市三甲医院约1000-5000元 |
recommand_drug |
array | 推荐药物 | ["枸橼酸喷托维林片","苏黄止咳胶囊"] |
check |
array | 检查项目 | ["纤维支气管镜检查","胸部CT检查"] |
prevent |
string | 预防措施 | 专业指导... |
source |
string | 数据来源 | xxapi |
点击左侧“发送请求”查看结果...