新型冠状病毒全国疫情统计接口Api

含历史统计. 武汉加油 中国加油 众志成城 共渡难关!web

请求类型

GET || POSTjson

请求格式

application/x-www-form-urlencodedapi


按城市查询-接口

测试地址

https://myapi.ihogu.com/public/?s=Whfy.cityapp

请求参数
参数名 参数类型 参数格式 必填 默认值 备注
s string 请填写 Whfy.city 必填 Whfy.city 方法名
page int >=1 选填 1 第?页
limit int 1-500 选填 10 每页?条
country string 国家模糊搜索例如 斯里兰卡 选填
area string 省份模糊搜索例如 湖北 不带’省’字 选填 末尾不要加’省’
city string 城市模糊搜索例如 武汉 不带’市’字 选填 末尾不要加’市’
date_start date Y-m-d 2020-02-20 选填 date_end存在时必填
date_end date Y-m-d 2020-02-22 选填 date_start
order string 排序字段,可选值 confirm,suspect,dead,heal,create_time 选填 含义见返回值说明
order_sort string 排序方式,可选值 DESC,ASC 选填 ASC 大写

返回值说明svg

// https://myapi.ihogu.com/public/?s=Whfy.city
{
  "ret": 200,
  "data": {
    "items": [
      {
        "id": "1",
        "country": "中国",
        "area": "湖北",
        "city": "武汉",
        "confirm": "1590", // 已确认 
        "dead": "85", // 死亡
        "heal": "44", // 治愈
        "create_time": "2020-01-28"
      }
    ],
    "total": 339  // 计数count
  },
  "msg": "" // 错误信息
}

按国家查询-接口

测试地址

https://myapi.ihogu.com/public/?s=Whfy.count测试

请求参数
参数名 参数类型 参数格式 必填 默认值 备注
s string 请填写 Whfy.count 必填 Whfy.count 方法名
country string 国家模糊搜索例如 斯里兰卡 选填
page int >=1 选填 1 第?页
limit int 1-500 选填 10 每页?条
date_start date Y-m-d 2020-02-20 选填 date_end存在时必填
date_end date Y-m-d 2020-02-22 选填 date_start
order string 排序字段,可选值 confirm,suspect,dead,heal,create_time 选填 含义见返回值说明
order_sort string 排序方式,可选值 DESC,ASC 选填 ASC 大写

返回值说明url

// https://myapi.ihogu.com/public/?s=Whfy.count
{
  "ret": 200,
  "data": {
    "items": [
      {
        "id": "5",
        "country": "中国",
        "confirm": "4685",// 已确认
        "suspect": "98", // 疑似
        "dead": "106",// 死亡
        "heal": "73",// 治愈
        "create_time": "2020-01-28"
      }
    ],
    "total": 1
  },
  "msg": ""
}

数据来源:腾讯新闻spa