开发指南

肺炎疫情历史数据接口在线测试此接口(需要登录)


文档更新时间:2020-02-15 00:05:10

该接口返回各个省市具体的每日历史数据详情列表。

请求方式及url:

  • 请求方式:GET

  • 接口地址:https://tianqiapi.com/api

请求示例

https://tianqiapi.com/api?version=epidemic_history&appid=&appsecret=

请求参数说明:

参数名 必选 类型 说明 备注(示例)
appid string 用户appid 注册开发账号
appsecret string 用户appsecret
version string 接口版本标识 固定值: epidemic_history 每个接口的version值都不一样
province string 省份 如: 山东 湖南, 不要带省
city string 如: 济南 武汉, 不要带市

备注

暂无。

响应JSON

{
    "errcode":0,
    "data":[
        {
            "date":"2020-01-28",
            "province":"山东",
            "city":"济南",
            "confirm":"10",
            "dead":"0",
            "heal":"0",
            "suspect":"0",
            "confirm_add":""
        },
        {
            "date":"2020-01-29",
            "province":"山东",
            "city":"济南",
            "confirm":"11",
            "dead":"0",
            "heal":"0",
            "suspect":"0",
            "confirm_add":""
        },
        {
            "date":"2020-01-30",
            "province":"山东",
            "city":"济南",
            "confirm":"14",
            "dead":"0",
            "heal":"0",
            "suspect":"0",
            "confirm_add":""
        },
        {
            "date":"2020-01-31",
            "province":"山东",
            "city":"济南",
            "confirm":"16",
            "dead":"0",
            "heal":"0",
            "suspect":"0",
            "confirm_add":""
        },
        {
            "date":"2020-02-01",
            "province":"山东",
            "city":"济南",
            "confirm":"18",
            "dead":"0",
            "heal":"0",
            "suspect":"0",
            "confirm_add":""
        },
        {
            "date":"2020-02-02",
            "province":"山东",
            "city":"济南",
            "confirm":"19",
            "dead":"0",
            "heal":"0",
            "suspect":"0",
            "confirm_add":""
        },
        {
            "date":"2020-02-03",
            "province":"山东",
            "city":"济南",
            "confirm":"22",
            "dead":"0",
            "heal":"0",
            "suspect":"0",
            "confirm_add":""
        },
        {
            "date":"2020-02-04",
            "province":"山东",
            "city":"济南",
            "confirm":"25",
            "dead":"0",
            "heal":"0",
            "suspect":"0",
            "confirm_add":""
        },
        {
            "date":"2020-02-05",
            "province":"山东",
            "city":"济南",
            "confirm":"29",
            "dead":"0",
            "heal":"0",
            "suspect":"0",
            "confirm_add":""
        },
        {
            "date":"2020-02-06",
            "province":"山东",
            "city":"济南",
            "confirm":"34",
            "dead":"0",
            "heal":"3",
            "suspect":"0",
            "confirm_add":"5"
        },
        {
            "date":"2020-02-07",
            "province":"山东",
            "city":"济南",
            "confirm":"41",
            "dead":"0",
            "heal":"3",
            "suspect":"0",
            "confirm_add":"7"
        },
        {
            "date":"2020-02-08",
            "province":"山东",
            "city":"济南",
            "confirm":"42",
            "dead":"0",
            "heal":"3",
            "suspect":"0",
            "confirm_add":"1"
        },
        {
            "date":"2020-02-09",
            "province":"山东",
            "city":"济南",
            "confirm":"43",
            "dead":"0",
            "heal":"7",
            "suspect":"0",
            "confirm_add":"1"
        },
        {
            "date":"2020-02-10",
            "province":"山东",
            "city":"济南",
            "confirm":"44",
            "dead":"0",
            "heal":"7",
            "suspect":"0",
            "confirm_add":"2"
        },
        {
            "date":"2020-02-11",
            "province":"山东",
            "city":"济南",
            "confirm":"46",
            "dead":"0",
            "heal":"7",
            "suspect":"0",
            "confirm_add":"2"
        },
        {
            "date":"2020-02-12",
            "province":"山东",
            "city":"济南",
            "confirm":"47",
            "dead":"0",
            "heal":"7",
            "suspect":"0",
            "confirm_add":"1"
        },
        {
            "date":"2020-02-14",
            "province":"山东",
            "city":"济南",
            "confirm":"47",
            "dead":"0",
            "heal":"11",
            "suspect":"0",
            "confirm_add":"0"
        }
    ]
}

响应参数说明

参数名 类型 说明 备注
confirm String 确诊人数
dead Int 死亡人数
heal Int 治愈人数
suspect Int 疑似病例人数
confirm_add Int 新增确诊人数