疫情相关的api⽂档
⼀、UI⽂档
密码:666666
⼆、前端参考⽂档
2.1
2.2
三、疫情相关的api⽂档
3.1天⾏数据api⽂档
api⽂档说明:疫情相关的api⽂档来⾃于天⾏数据提供的免费api⽂档:
(1)获取国内疫情新闻、疫情概况、风险地区名单三⼤信息:
api.tianapi/ncov/index
名称类型必填默认值
key string是d334721cf6eba2d619a5855420ec352c
date string否2020-02-12(使⽤时改成当前时间,注意格式××××-××-××)返回信息说明:
Response Body:{
"code":200,
"msg":"success",
"newslist":[//新闻列表开始
{
"news":[
{
"id":178104,
"pubDate":1645491784000,
"pubDateStr":"9⼩时前",
"title":"国家卫健委:昨⽇新增本⼟确诊病例59例",
"summary":"2⽉21⽇0—24时,31个省(⾃治区、直辖市)和新疆⽣产建设兵团报告等",
"infoSource":"央视新闻app",
"sourceUrl":"v/snow-book/index.html?"
},
......
{
"id":178082,
"pubDate":1645484403000,
"pubDateStr":"11⼩时前",
"title":"云南|昨⽇新增5例本⼟确诊病例",
"summary":"2⽉21⽇0—24时,云南省新增确诊等",//类似于公告的总结信息
"infoSource":"央视新闻app",
"sourceUrl":"v/snow-book/index.html"
}
],//新闻列表结束
//疫情概况开始
"desc":{
"id":1,
"createTime":1579537899000,
"modifyTime":1645528017000,
"currentConfirmedCount":16642,
......
"curedIncr":312,
"curedIncr":312,
"remark1":"易感⼈:⼈普遍易感。⽼年⼈及有基础疾病者感染后病情较重,⼉童及婴幼⼉也有发病",
"remark2":"潜伏期:⼀般为 3~7 天,最长不超过 14 天,潜伏期内可能存在传染性,其中⽆症状病例传染性⾮常罕见",
"remark3":"宿主:野⽣动物,可能为中华菊头蝠",
"note1":"病毒:SARS-CoV-2,其导致疾病命名 COVID-19",
"note2":"传染源:新冠肺炎的患者。⽆症状感染者也可能成为传染源。",
"note3":"传播途径:经呼吸道飞沫、接触传播是主要的传播途径。⽓溶胶传播和消化道等传播途径尚待明确。",
"foreignStatistics":{//国外数据
"currentConfirmedCount":173024033,
"confirmedCount":426268869,
"suspectedCount":4,
"curedCount":247345969,
"deadCount":5898867,
"suspectedIncr":0,
"currentConfirmedIncr":1110819,
"confirmedIncr":1583186,
"curedIncr":465517,
"deadIncr":6850
},
"globalStatistics":{//全球数据
"currentConfirmedCount":173040675,
"confirmedCount":426423113,
"curedCount":247477783,
"deadCount":5904655,
"currentConfirmedIncr":1114334,
"confirmedIncr":1587025,
"curedIncr":465829,
"deadIncr":6862,
"yesterdayConfirmedCountIncr":1586943
},
"highDangerCount":5,
"midDangerCount":142
},
//疫情概况结束
"riskarea":{
"high":[//⾼风险地区
"⼴西壮族⾃治区百⾊市德保县都安乡福记村陇意屯",
......
"内蒙古⾃治区呼和浩特市赛罕区榆林镇⼘齐村"
]
,
"mid":[//中风险地区
"⼴西壮族⾃治区百⾊市德保县维也纳国际酒店(德保腾飞⼴场店)",
......
"江苏省苏州市张家港市杨舍镇⾦新城悦府7幢"
]
}
}
]
}
名称类型⽰例值说明
news object新闻资讯对象疫情新闻动态列表
desc object疫情概况对象全球疫情详细数据
riskarea object风险地区对象全国风险地区,high⾼风险、mid中风险currentConfirmedCount int55881现存确诊⼈数confirmedCount int74679累计确诊⼈数
suspectedCount int2053累计输⼊⼈数curedCount int16676累计治愈⼈数
deadCount int2122累计死亡⼈数
deadCount int2122累计死亡⼈数名称类型⽰例值说明seriousCount int306现存⽆症状⼈数
suspectedIncr int8新增输⼊⼈数
currentConfirmedIncr int-2002相⽐昨天现存确诊⼈数
confirmedIncr int403相⽐昨天累计确诊⼈数
curedIncr int2289相⽐昨天新增治愈⼈数
deadIncr int116相⽐昨天新增死亡⼈数
seriousIncr int4相⽐昨天现存⽆症状⼈数(2)获取国际疫情新闻、疫情概况、风险地区名单三⼤信息:
api.tianapi/ncovabroad/index
名称类型必填默认值
key string是d334721cf6eba2d619a5855420ec352c
date string否2020-02-12(使⽤时改成当前时间,注意格式××××-××-××)返回信息说明:
{
"code": 200,
"msg": "success",
"newslist": [
{
"modifyTime": 1645524022000,
"continents": "北美洲",
"provinceName": "美国",
"currentConfirmedCount": 25664257,
"confirmedCount": 78529492,
"confirmedCountRank": 1,
"curedCount": 51929244,
"deadCount": 935991,
"deadCountRank": 1,
"deadRate": "1.19",
"deadRateRank": 96,
"locationId": 971002,
"countryShortCode": "USA",
"yesterdayConfirmedCount": 2147383647,
"yesterdayLocalConfirmedCount": 2147383647,
"yesterdayOtherConfirmedCount": 2147383647
},
{
"modifyTime": 1645524022000,
......
"yesterdayOtherConfirmedCount": 2147383647
},
{
"modifyTime": 1645524023000,
......
"yesterdayOtherConfirmedCount": 2147383647
},
......
{
"modifyTime": 1645524023000,
"continents": "欧洲",
用html设计一个疫情网页代码"provinceName": "梵蒂冈",
"yesterdayLocalConfirmedCount": 2147383647,
"yesterdayOtherConfirmedCount": 2147383647
}
]
}
名称类型⽰例值说明modifyTime int1584159933000数据修改时间
continents string欧洲⼤洲
provinceName string意⼤利地区名currentConfirmedCount int14955现存确诊⼈数confirmedCount int17660累计确诊⼈数
suspectedCount int1439治愈⼈数deadCount int1266死亡⼈数
locationId int965008地理位置编号countryShortCode string ITA国家代码3.2⽊⼩果api
api.muxiaoguo/api/epidemic
名称必填类型说明
type是String[macroscopically(⾼危地区),epidemicInfectionData(疫情数据),epidemicHotspot(疫情热点)] 3.3新浪提供的接⼝地址
interface.sina/news/wap/fymap2020_data.d.json
3.4卫健委提供的每⽇各省疫情数据
// 通过修改⽇期获取当天的数据
49.4.25.117/JKZX/yq_20220220.json
3.5腾讯提供的数据
国内历史数据
view.inews.qq/g2/getOnsInfo?name=disease_other
当前时间实时国内总数据
view.inews.qq/g2/getOnsInfo?name=disease_h5
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论