稳定、快速、免费的 API 接口服务
全国新冠疫情查询,数据来自人民网,实时更新
接口地址: https://api.4qb.cn/api/xinguan_cha
返回格式: JSON/TEXT
请求方式: GET
请求示例: https://api.4qb.cn/api/xinguan_cha?type=text
请求参数说明:
名称 | 必填 | 类型 | 说明 |
---|---|---|---|
type | 否 | string | 默认JSON,可选JSON/TEXT |
msg | 否 | string | 指定查询地区,输入中文,通常地区输入市名称,例如:深圳 |
返回参数说明:
名称 | 类型 | 说明 |
---|---|---|
time | string | 截止时间,每30分钟更新一次 |
total | string | 累计确诊 |
death | string | 累计死亡 |
sus | string | 现有疑似 |
cure | string | 累计治愈 |
asymptom | string | 现有无症感染 |
jwsr | string | 境外输入 |
econ | string | 现有确诊 |
hecon | string | 现有重症 |
name | string | 地区名称 |
返回示例:
{ "code": "1", "text": "获取成功", "data": { "time": "截至6月21日14时30分", "total": "9481608", "death": "31432", "suspected": "3", "cure": "464712", "asymptom": "285", "overseas": "2200", "econ": "8985464", "server": "44", } }
请求参数设置:
参数名称 | 参数值 |
---|---|
{ "code": "1", "text": "获取成功", "data": { "time": "截至6月21日14时30分", "total": "9481608", "death": "31432", "suspected": "3", "cure": "464712", "asymptom": "285", "overseas": "2200", "econ": "8985464", "server": "44", } }
错误码格式说明:
名称 | 类型 | 说明 |
---|
代码示例:
暂无示例