开发指南

全国新型肺炎疫情最新数据接口在线测试此接口(需要登录)


文档更新时间:2020-02-18 15:03:41

接口含历史数据及各省市数据, 为中国加油。
2.18日新增"现存确诊人数", "较昨日新增确诊人数"字段
2.06日新增"重症人数"、"每日新增"字段
1.31日新增"每日历史"数据字段
1.30日新增各省市具体人数字段

请求方式及url:

  • 请求方式:GET

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

请求示例

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

请求参数说明:

参数名 必选 类型 说明 备注(示例)
appid string 用户appid 注册开发账号
appsecret string 用户appsecret
version string 接口版本标识 固定值: epidemic 每个接口的version值都不一样

备注

暂无。

响应JSON

{
    "errcode":0,
    "data":{
        "date":"2020-01-30 09:34:11",//更新时间
        "currentDiagnosedIncr":-66,//较昨日新增确诊人数
        "currentDiagnosed":5644,//现存确诊人数
        "diagnosed":7736,//确诊人数
        "suspect":12167,//疑似人数
        "death":170,//死亡人数
        "cured":124,//治愈人数
        "serious":124,//重症人数
        "diagnosedIncr":7736,//新增确诊人数
        "suspectIncr":12167,//新增疑似人数
        "deathIncr":170,//新增死亡人数
        "curedIncr":124,//新增治愈人数
        "seriousIncr":124,//新增重症人数
        "list":[
            "湖北 确诊 4586 例,治愈 90 例,死亡 162 例",
            "浙江 确诊 428 例,治愈 4 例",
            "广东 确诊 311 例,治愈 6 例",
            "河南 确诊 278 例,治愈 2 例,死亡 2 例"
            ......省略
        ],
        "history": [{
			"confirmedNum": 9720,
			"curesNum": 171,
			"date": "2020-01-30",
			"deathsNum": 213,
			"suspectedNum": 15238
		}, {
			"confirmedNum": 7736,
			"curesNum": 124,
			"date": "2020-01-29",
			"deathsNum": 170,
			"suspectedNum": 12167
		}, {
			"confirmedNum": 5997,
			"curesNum": 103,
			"date": "2020-01-28",
			"deathsNum": 132,
			"suspectedNum": 9239
		}, {
			"confirmedNum": 4535,
			"curesNum": 51,
			"date": "2020-01-27",
			"deathsNum": 106,
			"suspectedNum": 6973
		}, {
			"confirmedNum": 2761,
			"curesNum": 49,
			"date": "2020-01-26",
			"deathsNum": 80,
			"suspectedNum": 5794
		}, {
			"confirmedNum": 1985,
			"curesNum": 38,
			"date": "2020-01-25",
			"deathsNum": 56,
			"suspectedNum": 2684
		}, {
			"confirmedNum": 1297,
			"curesNum": 38,
			"date": "2020-01-24",
			"deathsNum": 41,
			"suspectedNum": 1965
		}, {
			"confirmedNum": 830,
			"curesNum": 34,
			"date": "2020-01-23",
			"deathsNum": 25,
			"suspectedNum": 1072
		}, {
			"confirmedNum": 571,
			"curesNum": 25,
			"date": "2020-01-22",
			"deathsNum": 17,
			"suspectedNum": 393
		}, {
			"confirmedNum": 440,
			"curesNum": 25,
			"date": "2020-01-21",
			"deathsNum": 9,
			"suspectedNum": 37
		}, {
			"confirmedNum": 291,
			"curesNum": 25,
			"date": "2020-01-20",
			"deathsNum": 6,
			"suspectedNum": 54
		}],
        "area": [{
			"provinceName": "湖北",
			"provinceShortName": "湖北",
			"confirmedCount": 4586,
			"suspectedCount": 0,
			"curedCount": 90,
			"deadCount": 162,
			"comment": "待明确地区:治愈 30",
			"cities": [{
				"cityName": "武汉",
				"confirmedCount": 2261,
				"suspectedCount": 0,
				"curedCount": 54,
				"deadCount": 129
			}, {
				"cityName": "黄冈",
				"confirmedCount": 496,
				"suspectedCount": 0,
				"curedCount": 5,
				"deadCount": 12
			}, {
				"cityName": "孝感",
				"confirmedCount": 399,
				"suspectedCount": 0,
				"curedCount": 0,
				"deadCount": 6
			}......省略],
			"preProvinceName": "湖北省"
		}
    }
}