省份查询接口

简要描述:

  • 省份级别的疫情查询接口

请求URL:

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

请求方式:

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

请求参数:

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

返回示例

{
  "status": "success",
  "msg": "查询成功",
  "name": "广西",
  "currentConfirmedCount": "0",
  "confirmedCount": "267",
  "suspectedCount": "0",
  "curedCount": "265",
  "deadCount": "2",
  "time": "2021-03-14 22:28:17",
  "database": "1",
  "city": [
    {
      "name": "南宁",
      "currentConfirmedCount": "0",
      "confirmedCount": "56",
      "suspectedCount": "0",
      "curedCount": "56",
      "deadCount": "0",
      "time": "2021-03-14 22:28:17"
    },
    {
      "name": "北海",
      "currentConfirmedCount": "0",
      "confirmedCount": "44",
      "suspectedCount": "0",
      "curedCount": "43",
      "deadCount": "1",
      "time": "2021-03-14 22:28:17"
    },
    {
      "name": "桂林",
      "currentConfirmedCount": "0",
      "confirmedCount": "32",
      "suspectedCount": "0",
      "curedCount": "32",
      "deadCount": "0",
      "time": "2021-03-14 22:28:17"
    },
    {
      "name": "河池",
      "currentConfirmedCount": "0",
      "confirmedCount": "28",
      "suspectedCount": "0",
      "curedCount": "27",
      "deadCount": "1",
      "time": "2021-03-14 22:28:17"
    },
    {
      "name": "柳州",
      "currentConfirmedCount": "0",
      "confirmedCount": "24",
      "suspectedCount": "0",
      "curedCount": "24",
      "deadCount": "0",
      "time": "2021-03-14 22:28:17"
    },
    {
      "name": "防城港",
      "currentConfirmedCount": "0",
      "confirmedCount": "19",
      "suspectedCount": "0",
      "curedCount": "19",
      "deadCount": "0",
      "time": "2021-03-14 22:28:17"
    },
    {
      "name": "境外输入",
      "currentConfirmedCount": "0",
      "confirmedCount": "14",
      "suspectedCount": "0",
      "curedCount": "14",
      "deadCount": "0",
      "time": "2021-03-14 22:28:17"
    },
    {
      "name": "玉林",
      "currentConfirmedCount": "0",
      "confirmedCount": "11",
      "suspectedCount": "0",
      "curedCount": "11",
      "deadCount": "0",
      "time": "2021-03-14 22:28:17"
    },
    {
      "name": "来宾",
      "currentConfirmedCount": "0",
      "confirmedCount": "11",
      "suspectedCount": "0",
      "curedCount": "11",
      "deadCount": "0",
      "time": "2021-03-14 22:28:17"
    },
    {
      "name": "钦州",
      "currentConfirmedCount": "0",
      "confirmedCount": "8",
      "suspectedCount": "0",
      "curedCount": "8",
      "deadCount": "0",
      "time": "2021-03-14 22:28:17"
    },
    {
      "name": "贵港",
      "currentConfirmedCount": "0",
      "confirmedCount": "8",
      "suspectedCount": "0",
      "curedCount": "8",
      "deadCount": "0",
      "time": "2021-03-14 22:28:17"
    },
    {
      "name": "梧州",
      "currentConfirmedCount": "0",
      "confirmedCount": "5",
      "suspectedCount": "0",
      "curedCount": "5",
      "deadCount": "0",
      "time": "2021-03-14 22:28:17"
    },
    {
      "name": "贺州",
      "currentConfirmedCount": "0",
      "confirmedCount": "4",
      "suspectedCount": "0",
      "curedCount": "4",
      "deadCount": "0",
      "time": "2021-03-14 22:28:17"
    },
    {
      "name": "百色",
      "currentConfirmedCount": "0",
      "confirmedCount": "3",
      "suspectedCount": "0",
      "curedCount": "3",
      "deadCount": "0",
      "time": "2021-03-14 22:28:17"
    }
  ]
}

返回参数说明

参数名 类型 说明
status string 接口状态
msg string 中文描述
name string 查询的省份
currentConfirmedCount string 现存确诊
confirmedCount string 累计确诊
suspectedCount string 疑似病例
curedCount string 治愈病例
deadCount string 死亡病例
time string 更新时间
database string 数据源 1-丁香园 2-腾讯疫情
city[] array 省份下的各地级市疫情情况

city[]参数说明:

参数名 类型 说明
name string 查询的省份
currentConfirmedCount string 现存确诊
confirmedCount string 累计确诊
suspectedCount string 疑似病例
curedCount string 治愈病例
deadCount string 死亡病例
time string 更新时间

返回信息提示

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

备注

  • 更多返回错误原因请具体看返回的msg
Copyright © benzhu 2021-2022 all right reserved,powered by Gitbook文件修订时间: 2022-04-18 00:29:14

results matching ""

    No results matching ""