国家查询接口

简要描述:

  • 国家级别的疫情查询接口

请求URL:

  • https://api.benzhu.xyz/ncov/country

请求方式:

  • GET
  • POST - FROM表单
  • POST - JSON字符串

请求参数:

参数名 必选 类型
说明
country string 查询的国家
database String 数据源
1-丁香园 2-腾讯疫情
默认丁香园

返回示例

{
  "status": "success",
  "msg": "查询成功",
  "name": "中国",
  "currentConfirmedCount": "390",
  "confirmedCount": "102698",
  "suspectedCount": "0",
  "curedCount": "97457",
  "deadCount": "4851",
  "time": "2021-03-29 10:40:04",
  "database": "1"
}

返回参数说明

参数名 类型 说明
status string 接口状态
msg string 中文描述
name string 查询国家
currentConfirmedCount string 现存确诊
confirmedCount string 累计确诊
suspectedCount string 疑似病例
curedCount string 治愈病例
deadCount string 死亡病例
time string 更新时间
database string 数据源 1-丁香园 2-腾讯疫情

返回信息提示

msg内容 说明
查询成功
country参数为空
缺少country参数

备注

  • 更多返回错误原因请具体看返回的msg
Copyright © benzhu 2021-2022 all right reserved,powered by Gitbook文件修订时间: 2023-01-15 17:28:50

results matching ""

    No results matching ""