API

简介

看这里

项目地址

HOST

http://49.232.173.220:3001/

API 列表

接口名 请求方式 接口描述
data/getTimelineService GET 按时间线获取事件
data/getStatisticsService GET 获取整体统计信息
data/getAreaStat/:provice GET 获取指定省份信息,例如:/data/getAreaStat/山东
data/getIndexRumorList GET 最新辟谣
data/getIndexRecommendList GET 最新防护知识
data/getWikiList GET 最新知识百科
data/getEntries GET 诊疗信息
~~data/getListByCountryTypeService1~~ GET 全国省份级患者分布数据 (已废弃,数据停止更新)
data/getListByCountryTypeService2true GET 全球海外其他地区患者分布数据
data/getNewest/:lastid GET 获取最新事件
lastid 代表上次获取到的最后的id
例如:/data/getNewest/281
将会返回id为281的事件之后发生的事件集合。

数据返回格式

data/getTimelineService

[
    {
    "adoptType": 1,
    "createTime": 1580223016000,
    "dataInfoOperator": "",
    "dataInfoState": 0,
    "dataInfoTime": 1580223016000,
    "entryWay": 1,
    "id": 678,
    "infoSource": "人民日报",
    "infoType": 2,
    "modifyTime": 1580223016000,
    "provinceId": "100",
    "provinceName": "全国",
    "pubDate": 1580222395000,
    "pubDateStr": "11分钟前",
    "sourceUrl": "http://m.weibo.cn/2803301701/4465838767229144",
    "summary": "国家公务员局发布《关于推迟中央机关及其直属机构2020年度公务员考试录用、公开遴选和公开选调面试时间的公告》:为贯彻落实党中央、国务院关于新型冠状病毒感染的肺炎预防控制工作的有关要求,经研究,中央机关及其直属机构2020年度公务员考试录用、公开遴选和公开选调面试时间推迟,具体安排另行通知。\n",
    "title": "国考面试推迟,具体时间安排另行通知"
    }
]

data/getStatisticsService

{
    "id": 1,
    "createTime": 1579537899000,
    "modifyTime": 1580223314000,
    "infectSource": "野生动物,可能为中华菊头蝠",
    "passWay": "经呼吸道飞沫传播,亦可通过接触传播",
    "imgUrl": "https://img1.dxycdn.com/2020/0123/733/3392575782185696736-73.jpg",
    "dailyPic": "https://img1.dxycdn.com/2020/0128/202/3393406768163357387-73.jpg",
    "summary": "",
    "deleted": false,
    "countRemark": "",
    "confirmedCount": 4630,
    "suspectedCount": 6973,
    "curedCount": 73,
    "deadCount": 106,
    "virus": "新型冠状病毒 2019-nCoV",
    "remark1": "易感人群: 人群普遍易感。老年人及有基础疾病者感染后病情较重,儿童及婴幼儿也有发病",
    "remark2": "潜伏期: 一般为 3~7 天,最长不超过 14 天,潜伏期内存在传染性",
    "remark3": "",
    "remark4": "",
    "remark5": "",
    "generalRemark": "疑似病例数来自国家卫健委数据,目前为全国数据,未分省市自治区等",
    "abroadRemark": ""
}

data/getAreaStat/:provice

[{
    "provinceName": "山东省",
    "provinceShortName": "山东",
    "confirmedCount": 95,
    "suspectedCount": 0,
    "curedCount": 0,
    "deadCount": 0,
    "comment": "",
    "cities": [{
        "cityName": "青岛",
        "confirmedCount": 15,
        "suspectedCount": 0,
        "curedCount": 0,
        "deadCount": 0
    }, {
        "cityName": "威海",
        "confirmedCount": 10,
        "suspectedCount": 0,
        "curedCount": 0,
        "deadCount": 0
    }, {
        "cityName": "济南",
        "confirmedCount": 10,
        "suspectedCount": 0,
        "curedCount": 0,
        "deadCount": 0
    }, {
        "cityName": "烟台",
        "confirmedCount": 10,
        "suspectedCount": 0,
        "curedCount": 0,
        "deadCount": 0
    }, {
        "cityName": "临沂",
        "confirmedCount": 8,
        "suspectedCount": 0,
        "curedCount": 0,
        "deadCount": 0
    }, {
        "cityName": "德州",
        "confirmedCount": 8,
        "suspectedCount": 0,
        "curedCount": 0,
        "deadCount": 0
    }, {
        "cityName": "日照",
        "confirmedCount": 6,
        "suspectedCount": 0,
        "curedCount": 0,
        "deadCount": 0
    }, {
        "cityName": "济宁",
        "confirmedCount": 5,
        "suspectedCount": 0,
        "curedCount": 0,
        "deadCount": 0
    }, {
        "cityName": "菏泽",
        "confirmedCount": 5,
        "suspectedCount": 0,
        "curedCount": 0,
        "deadCount": 0
    }, {
        "cityName": "枣庄",
        "confirmedCount": 5,
        "suspectedCount": 0,
        "curedCount": 0,
        "deadCount": 0
    }, {
        "cityName": "滨州",
        "confirmedCount": 4,
        "suspectedCount": 0,
        "curedCount": 0,
        "deadCount": 0
    }, {
        "cityName": "潍坊",
        "confirmedCount": 3,
        "suspectedCount": 0,
        "curedCount": 0,
        "deadCount": 0
    }, {
        "cityName": "聊城",
        "confirmedCount": 3,
        "suspectedCount": 0,
        "curedCount": 0,
        "deadCount": 0
    }, {
        "cityName": "淄博",
        "confirmedCount": 2,
        "suspectedCount": 0,
        "curedCount": 0,
        "deadCount": 0
    }, {
        "cityName": "泰安",
        "confirmedCount": 1,
        "suspectedCount": 0,
        "curedCount": 0,
        "deadCount": 0
    }]
}]

data/getNewest/:lastid

[
  {
    "id": 683,
    "pubDate": 1580225421000,
    "pubDateStr": "14分钟前",
    "title": "四川要求麻将馆全部暂停营业",
    "summary": "暂停各类群体性聚集活动。具有交叉感染风险的经营单位,如歌舞娱乐、游戏游艺、互联网上网服务场所、营业性麻将场所和大型儿童游乐设施、健身房、室内游泳场(馆)等暂停营业。暂时禁止群体性聚餐(含农村自办群体性宴席)。广大公众应正确佩戴口罩,自觉将废弃口罩进行毁损并按有害垃圾处置。",
    "infoSource": "四川省人民政府官网",
    "sourceUrl": "http://www.sc.gov.cn/zcwj/xxgk/NewT.aspx?i=20200128192811-452803-00-000",
    "provinceId": "51",
    "provinceName": "四川省",
    "createTime": 1580225482000,
    "modifyTime": 1580225482000
  }
]

data/getIndexRumorList

[
  {
    "id": 69,
    "title": "在人中涂风油精可以预防感染?",
    "mainSummary": "丁香医生团队辟谣:对预防新冠没有作用",
    "summary": "",
    "body": "暂时还没有证据表明,风油精里的成分对预防或杀灭新冠有任何效果。不过在家宅久了,闻下凉凉的风油精,还是有助提神的。",
    "sourceUrl": "",
    "score": 1000,
    "rumorType": 0
  }
]

data/getIndexRecommendList

[
  {
    "id": 41,
    "createTime": 1580224053000,
    "modifyTime": 1580224053000,
    "contentType": 4,
    "title": "整天在家看手机,怎么才能保护眼睛?",
    "imgUrl": "https://img1.dxycdn.com/2020/0128/879/3393505288270876648-73.jpg",
    "linkUrl": "https://wechat.dxy.cn/news/view?noshare=false&watermark=false&nocopy=false&email=false&simuri=%2Fjapi%2Fweixin%2Fnews%2F42863%2FWNBtpjzdEixWf%2Fdata&teamId=8",
    "recordStatus": 1,
    "sort": 150,
    "operator": "laijj"
  }, {
    "id": 40,
    "createTime": 1580223829000,
    "modifyTime": 1580223829000,
    "contentType": 4,
    "title": "在家隔离应该怎么做?需要准备哪些东西?",
    "imgUrl": "https://img1.dxycdn.com/2020/0128/514/3393504828709342591-73.jpg",
    "linkUrl": "https://wechat.dxy.cn/news/view?noshare=false&watermark=false&nocopy=false&email=false&simuri=%2Fjapi%2Fweixin%2Fnews%2F42869%2F6vcHiBzjFB1Iw%2Fdata&teamId=8",
    "recordStatus": 1,
    "sort": 147,
    "operator": "laijj"
  }
]

data/getWikiList

{
    "result": [{
        "id": 1,
        "title": "什么是新型冠状病毒肺炎?",
        "imgUrl": "",
        "linkUrl": "https://ask.dxy.com/ama/index#/disease/24677/info/0",
        "description": "此次流行的冠状病毒 WHO 命名为 2019-nCoV。哪些人容易感染新型冠状病毒?传播途径是什么的?什么情况下属于可疑暴露?什么情况属于密切接触?",
        "sort": 99
    }, {
        "id": 2,
        "title": "感染症状",
        "imgUrl": "https://img1.dxycdn.com/2020/0126/335/3393120598787233917-66.png",
        "linkUrl": "https://ask.dxy.com/ama/index#/disease/24677/info/1",
        "description": "出现什么症状可能感染了新型冠状病毒?如何在家做好自我隔离?",
        "sort": 6
    }, {
        "id": 3,
        "title": "疾病原因",
        "imgUrl": "https://img1.dxycdn.com/2020/0126/584/3393140198870641951-73.jpg",
        "linkUrl": "https://ask.dxy.com/ama/index#/disease/24677/info/2",
        "description": "目前初见病例是由武汉海鲜市场传染而来,传染源可能是中华菊头蝠。",
        "sort": 5
    }, {
        "id": 4,
        "title": "确诊方法",
        "imgUrl": "https://img1.dxycdn.com/2020/0126/838/3393121081971054723-66.png",
        "linkUrl": "https://ask.dxy.com/ama/index#/disease/24677/info/3",
        "description": "新型冠状病毒肺炎患者有什么临床表现?医生如何识别并确诊新型冠状病毒肺炎?",
        "sort": 4
    }, {
        "id": 5,
        "title": "如何治疗",
        "imgUrl": "https://img1.dxycdn.com/2020/0126/500/3393121414831020167-66.png",
        "linkUrl": "https://ask.dxy.com/ama/index#/disease/24677/info/4",
        "description": "感染了新型冠状病毒一定会得肺炎吗?新型冠状病毒肺炎如何治疗?",
        "sort": 3
    }, {
        "id": 6,
        "title": "生活指南",
        "imgUrl": "https://img1.dxycdn.com/2020/0126/366/3393121524352686218-66.png",
        "linkUrl": "https://ask.dxy.com/ama/index#/disease/24677/info/5",
        "description": "新型冠状病毒肺炎流行,我们怎么吃才好?还要进行体育锻炼吗?抽烟喝酒能抵抗感染吗?",
        "sort": 2
    }, {
        "id": 7,
        "title": "预防感染",
        "imgUrl": "https://img1.dxycdn.com/2020/0127/314/3393234046053613437-73.jpg",
        "linkUrl": "https://ask.dxy.com/ama/index#/disease/24677/info/6",
        "description": "针对新型冠状病毒,如何消毒?如何做防护措施?在家中怎样预防新型冠状病毒感染?",
        "sort": 1
    }]
}

data/getEntries

[
  {
    "id": 1,
    "configNo": 1,
    "configName": "全国发热门诊",
    "linkUrl": "https://assets.dxycdn.com/gitrepo/tod-assets/output/default/pneumonia/index.htm",
    "imgUrl": ""
  }, {
    "id": 3,
    "configNo": 3,
    "configName": "在线义诊",
    "linkUrl": "https://ask.dxy.com/ama/index#/activity-share?activity_id=111&dxa_adplatform=yqdtyz",
    "imgUrl": "https://img1.dxycdn.com/2020/0128/241/3393418313035226425-73.png"
  }
]

~~data/getListByCountryTypeService1~~ (已废弃,数据停止更新)

[
  {
    "id": 1,
    "createTime": 1579538652000,
    "modifyTime": 1580200513000,
    "tags": "确诊 444 例,疑似病例数待确认,治愈 28 例,死亡 17 例",
    "countryType": 1,
    "provinceId": "42",
    "provinceName": "湖北省",
    "provinceShortName": "湖北",
    "cityName": "",
    "confirmedCount": 2714,
    "suspectedCount": 0,
    "curedCount": 52,
    "deadCount": 100,
    "comment": "未明确地区:治愈 2",
    "sort": 1,
    "operator": "zhanglifeng"
  }, {
    "id": 3,
    "createTime": 1579542174000,
    "modifyTime": 1580207471000,
    "tags": "确诊 32 例,疑似 1 例,治愈 2 例",
    "countryType": 1,
    "provinceId": "44",
    "provinceName": "广东省",
    "provinceShortName": "广东",
    "cityName": "",
    "confirmedCount": 207,
    "suspectedCount": 0,
    "curedCount": 4,
    "deadCount": 0,
    "comment": "",
    "sort": 2,
    "operator": "zhanglifeng"
  }, {
    "id": 10,
    "createTime": 1579546399000,
    "modifyTime": 1580211924000,
    "tags": "确诊 27 例",
    "countryType": 1,
    "provinceId": "33",
    "provinceName": "浙江省",
    "provinceShortName": "浙江",
    "cityName": "",
    "confirmedCount": 173,
    "suspectedCount": 0,
    "curedCount": 3,
    "deadCount": 0,
    "comment": "",
    "sort": 3,
    "operator": "heyanan"
  }
  ...
  ...
  ...
]

data/getListByCountryTypeService2true

[
  {
    "id": 949,
    "createTime": 1580027637000,
    "modifyTime": 1580191040000,
    "tags": "",
    "countryType": 2,
    "provinceId": "2",
    "provinceName": "泰国",
    "provinceShortName": "",
    "cityName": "",
    "confirmedCount": 14,
    "suspectedCount": 0,
    "curedCount": 5,
    "deadCount": 0,
    "comment": "",
    "sort": 0,
    "operator": "xuyt"
  }, {
    "id": 953,
    "createTime": 1580027704000,
    "modifyTime": 1580212702000,
    "tags": "",
    "countryType": 2,
    "provinceId": "6",
    "provinceName": "日本",
    "provinceShortName": "",
    "cityName": "",
    "confirmedCount": 7,
    "suspectedCount": 0,
    "curedCount": 1,
    "deadCount": 0,
    "comment": "",
    "sort": 0,
    "operator": "xuyt"
  }, {
    "id": 950,
    "createTime": 1580027655000,
    "modifyTime": 1580164522000,
    "tags": "",
    "countryType": 2,
    "provinceId": "3",
    "provinceName": "新加坡",
    "provinceShortName": "",
    "cityName": "",
    "confirmedCount": 5,
    "suspectedCount": 0,
    "curedCount": 0,
    "deadCount": 0,
    "comment": "",
    "sort": 0,
    "operator": "xuyt"
  }, {
    "id": 955,
    "createTime": 1580027735000,
    "modifyTime": 1580083372000,
    "tags": "",
    "countryType": 2,
    "provinceId": "8",
    "provinceName": "美国",
    "provinceShortName": "",
    "cityName": "",
    "confirmedCount": 5,
    "suspectedCount": 0,
    "curedCount": 0,
    "deadCount": 0,
    "comment": "",
    "sort": 0,
    "operator": "xuyt"
  }, {
    "id": 958,
    "createTime": 1580027777000,
    "modifyTime": 1580106637000,
    "tags": "",
    "countryType": 2,
    "provinceId": "10",
    "provinceName": "澳大利亚",
    "provinceShortName": "",
    "cityName": "",
    "confirmedCount": 5,
    "suspectedCount": 0,
    "curedCount": 0,
    "deadCount": 0,
    "comment": "",
    "sort": 0,
    "operator": "xuyt"
  }, {
    "id": 954,
    "createTime": 1580027721000,
    "modifyTime": 1580094370000,
    "tags": "",
    "countryType": 2,
    "provinceId": "7",
    "provinceName": "韩国",
    "provinceShortName": "",
    "cityName": "",
    "confirmedCount": 4,
    "suspectedCount": 0,
    "curedCount": 0,
    "deadCount": 0,
    "comment": "",
    "sort": 0,
    "operator": "xuyt"
  }, {
    "id": 951,
    "createTime": 1580027668000,
    "modifyTime": 1580027668000,
    "tags": "",
    "countryType": 2,
    "provinceId": "4",
    "provinceName": "马来西亚",
    "provinceShortName": "",
    "cityName": "",
    "confirmedCount": 3,
    "suspectedCount": 0,
    "curedCount": 0,
    "deadCount": 0,
    "comment": "",
    "sort": 0,
    "operator": "xuyt"
  }, {
    "id": 952,
    "createTime": 1580027683000,
    "modifyTime": 1580027683000,
    "tags": "",
    "countryType": 2,
    "provinceId": "5",
    "provinceName": "法国",
    "provinceShortName": "",
    "cityName": "",
    "confirmedCount": 3,
    "suspectedCount": 0,
    "curedCount": 0,
    "deadCount": 0,
    "comment": "",
    "sort": 0,
    "operator": "xuyt"
  }, {
    "id": 956,
    "createTime": 1580027751000,
    "modifyTime": 1580027751000,
    "tags": "",
    "countryType": 2,
    "provinceId": "9",
    "provinceName": "越南",
    "provinceShortName": "",
    "cityName": "",
    "confirmedCount": 2,
    "suspectedCount": 0,
    "curedCount": 0,
    "deadCount": 0,
    "comment": "",
    "sort": 0,
    "operator": "xuyt"
  }, {
    "id": 957,
    "createTime": 1580027764000,
    "modifyTime": 1580027764000,
    "tags": "",
    "countryType": 2,
    "provinceId": "10",
    "provinceName": "尼泊尔",
    "provinceShortName": "",
    "cityName": "",
    "confirmedCount": 1,
    "suspectedCount": 0,
    "curedCount": 0,
    "deadCount": 0,
    "comment": "",
    "sort": 0,
    "operator": "xuyt"
  }, {
    "id": 959,
    "createTime": 1580027795000,
    "modifyTime": 1580027795000,
    "tags": "",
    "countryType": 2,
    "provinceId": "10",
    "provinceName": "加拿大",
    "provinceShortName": "",
    "cityName": "",
    "confirmedCount": 1,
    "suspectedCount": 0,
    "curedCount": 0,
    "deadCount": 0,
    "comment": "",
    "sort": 0,
    "operator": "xuyt"
  }, {
    "id": 1023,
    "createTime": 1580130061000,
    "modifyTime": 1580130061000,
    "tags": "",
    "countryType": 2,
    "provinceId": "10",
    "provinceName": "柬埔寨",
    "provinceShortName": "",
    "cityName": "",
    "confirmedCount": 1,
    "suspectedCount": 0,
    "curedCount": 0,
    "deadCount": 0,
    "comment": "",
    "sort": 0,
    "operator": "hanting"
  }, {
    "id": 1047,
    "createTime": 1580167302000,
    "modifyTime": 1580167302000,
    "tags": "",
    "countryType": 2,
    "provinceId": "10",
    "provinceName": "德国",
    "provinceShortName": "",
    "cityName": "",
    "confirmedCount": 1,
    "suspectedCount": 0,
    "curedCount": 0,
    "deadCount": 0,
    "comment": "",
    "sort": 0,
    "operator": "shiweiyi"
  }, {
    "id": 1306,
    "createTime": 1580182019000,
    "modifyTime": 1580182019000,
    "tags": "",
    "countryType": 2,
    "provinceId": "10",
    "provinceName": "斯里兰卡",
    "provinceShortName": "",
    "cityName": "",
    "confirmedCount": 1,
    "suspectedCount": 0,
    "curedCount": 0,
    "deadCount": 0,
    "comment": "",
    "sort": 0,
    "operator": "zhuotingting"
  }
]

线上服务测试