# 全国疫情数据[不再更新] · 新型肺炎疫情数据

> 本文档为机器可读 Markdown，便于 AI / SDK 自动对接。页面原文：https://www.wapi.cn/api_detail/94/219.html
> 纯文本地址：`https://www.wapi.cn/api_detail/94/219.html?format=md`

## 概览

- **接口名称**：新型肺炎疫情数据
- **子接口**：全国疫情数据[不再更新]（ID `219`）
- **接口简介**：2022-12月起，随着国家防疫政策的调整 , 该接口从2022-12-17日除(疫情数据通报)接口外其它接口不再更新数据，历史数据可以访问。

2019新型冠状病毒，2020年1月12日，世界卫生组织正式将其命名为2019-nCoV [1]  。冠状病毒是一个大型病毒家族，已知可引起感冒以及中东呼吸综合征（MERS）和严重急性呼吸综合征（SARS）等较严重疾病。新型冠状病毒是以前从未在人体中发现的冠状病毒新毒株。  数据说明
该接口有效期与国家卫健委疫情防控措施一致，若卫健委不再公布疫情相关数据，该接口将停止使用且次数清零
- **计费说明**：按次
- **请求地址**：`https://uaqy.api.storeapi.net/api/94/219`（支持 http/https）
- **请求方式**：`GET,POST`
- **返回格式**：`json,xml`
- **Content-Type（POST）**：`application/x-www-form-urlencoded;charset=utf-8`

## 子接口列表

- `223` 疫情数据通报
- `219` 全国疫情数据[不再更新] ← 当前
- `346` 疫情数据汇总[不再更新]
- `354` 返回城市疫情风险地区[不再更新]
- `221` 国内城市疫情数据[不再更新]
- `222` 全球新冠疫情数据[不再更新]
- `220` 国外疫情数据[不再更新]

## 请求参数

| 名称 | 必填 | 类型 | 说明 | 示例 |
| --- | --- | --- | --- | --- |
| `appid` | 是 | String | 应用ID，在后台我的应用查看或者添加 | 1 |
| `date` | 否 | String | 日期 | 2022-07-16 |
| `format` | 否 | String | 返回数据格式类型，每个接口已经说明支持返回格式:json,xml, jsonp调用方法说明 | json |
| `sign` | 是 | String | 1.使用Md5方式验证，参数按一定规则md5后返回的字符串，详情点击这里阅读 2.使用Hash验证方式，直接跟上密钥即可。如何设置hash验证 通过我的应用里面修改验证方式 | 52a9dbe274a5c537bbf7a53e2d66c09f |
| `time` | 否 | String | 请求时传递的当前服务器时间戳 | 1545829466 |

## 签名（MD5）

按参数名排序后拼接「键名+值」，空值不参与；末尾直接追加 32 位密钥（密钥不写键名）：

```
sign = MD5(appid1date2022-07-16formatjsontime1545829466{secret})
```

说明：示例中 `appid` 默认为 `1`，请替换为「我的应用」中的 appid；密钥为应用 Secret。

## 返回参数

| 名称 | 必填 | 类型 | 说明 | 示例 |
| --- | --- | --- | --- | --- |
| `adcode` | 否 | String | 行政编码 | 350000 |
| `asymptomatic` | 否 | String | 现有无症状 | 0 |
| `asymptomaticLocalRelative` | 否 | String |  | 7 |
| `asymptomaticRelative` | 否 | String | 新增无症状 | 7 |
| `city` | 否 | String | 所属城市 | 平潭综合实验区 |
| `codeid` | 否 | Integer | 状态码，返回10000状态都会进行计费。具体说明可查看状态码说明 | 10000 |
| `confirm` | 否 | Integer | 累计确诊 | 11 |
| `confirmedRelative` | 否 | String | 新增本土确诊病例 | 0 |
| `curAsymptomaticLocalRelative` | 否 | String |  |  |
| `curConfirm` | 否 | String | 现有确诊 | 11 |
| `curtime` | 否 | String | 当前服务器时间戳 | 1667013828 |
| `dangerousAreas` | 否 | Array | 风险区域 |  |
| `died` | 否 | String | 累计死亡 | 0 |
| `heal` | 否 | Integer | 累计治愈 | 0 |
| `highLevelNum` | 否 | Integer |  | 2 |
| `isNew` | 否 | Integer | 是否为新增封控区，1是 0否 | 1 |
| `level` | 否 | String | 风险等级 | 中风险 |
| `message` | 否 | String | 请求状态说明 | 操作成功! |
| `midLevelNum` | 否 | Integer |  | 50 |
| `moreUrl` | 否 | String |  |  |
| `nativeRelative` | 否 | String | 新增本土 | 0 |
| `noNativeRelativeDays` | 否 | String | 连续无本土新增时间 |  |
| `overseasInputRelative` | 否 | String | 新增境外 | 13 |
| `relativeTime` | 否 | String | 时间戳 | 1666886400 |
| `retdata` | 否 | Array | 回数据集合,可能是数据、对象或者字符串 |  |
| `screeningPositive` | 否 | String | 阳性 | 0 |
| `subList` | 否 | Array | 数据集合 |  |
| `totalNum` | 否 | Integer |  | 52 |
| `updateTime` | 否 | String | 更新时间 | 1667007130 |
| `xArea` | 否 | String | 地区 | 福州永泰县城峰镇洋亭路1号云山蓝郡6幢1梯 |

## JSON 返回示例

```json
{
    "codeid": 10000,
    "message": "操作成功!",
    "retdata": [
        {
            "confirm": "4853",
            "died": "1",
            "heal": "4618",
            "relativeTime": "1666886400",
            "confirmedRelative": "23",
            "asymptomaticRelative": "103",
            "asymptomaticLocalRelative": "94",
            "asymptomatic": "19",
            "nativeRelative": "10",
            "screeningPositive": "0",
            "curAsymptomaticLocalRelative": "",
            "updateTime": "1667007130",
            "curConfirm": "234",
            "noNativeRelativeDays": "",
            "overseasInputRelative": "13",
            "xArea": "福建",
            "subList": [
                {
                    "city": "厦门",
                    "confirm": "428",
                    "died": "0",
                    "heal": "423",
                    "asymptomaticRelative": "0",
                    "confirmedRelative": "1",
                    "asymptomaticLocalRelative": "0",
                    "asymptomatic": "0",
                    "nativeRelative": "1",
                    "screeningPositive": "0",
                    "curAsymptomaticLocalRelative": "",
                    "updateTime": "1667007130",
                    "curConfirm": "5",
                    "noNativeRelativeDays": "",
                    "dangerousAreas": {
                        "subList": [],
                        "moreUrl": "",
                        "totalNum": 0,
                        "highLevelNum": 0,
                        "midLevelNum": 0
                    },
                    "adcode": "350200"
                },
                {
                    "city": "南平",
                    "confirm": "49",
                    "died": "0",
                    "heal": "23",
                    "asymptomaticRelative": "4",
                    "confirmedRelative": "7",
                    "asymptomaticLocalRelative": "4",
                    "asymptomatic": "0",
                    "nativeRelative": "7",
                    "screeningPositive": "0",
                    "curAsymptomaticLocalRelative": "",
                    "updateTime": "1667007130",
                    "curConfirm": "26",
                    "noNativeRelativeDays": "",
                    "dangerousAreas": {
                        "subList": [],
                        "moreUrl": "",
                        "totalNum": 0,
                        "highLevelNum": 0,
                        "midLevelNum": 0
                    },
                    "adcode": "350700"
                },
                {
                    "city": "莆田",
                    "confirm": "336",
                    "died": "0",
                    "heal": "326",
                    "asymptomaticRelative": "0",
                    "confirmedRelative": "0",
                    "asymptomaticLocalRelative": "0",
                    "asymptomatic": "0",
                    "nativeRelative": "0",
                    "screeningPositive": "0",
                    "curAsymptomaticLocalRelative": "",
                    "updateTime": "1667007130",
                    "curConfirm": "10",
                    "noNativeRelativeDays": "",
                    "dangerousAreas": {
                        "subList": [],
                        "moreUrl": "",
                        "totalNum": 0,
                        "highLevelNum": 0,
                        "midLevelNum": 0
                    },
                    "adcode": "350300"
                },
                {
                    "city": "泉州",
                    "confirm": "1222",
                    "died": "0",
                    "heal": "1212",
                    "asymptomaticRelative": "1",
                    "confirmedRelative": "2",
                    "asymptomaticLocalRelative": "1",
                    "asymptomatic": "0",
                    "nativeRelative": "2",
                    "screeningPositive": "0",
                    "curAsymptomaticLocalRelative": "",
                    "updateTime": "1667007130",
                    "curConfirm": "10",
                    "noNativeRelativeDays": "",
                    "dangerousAreas": {
                        "subList": [],
                        "moreUrl": "",
                        "totalNum": 0,
                        "highLevelNum": 0,
                        "midLevelNum": 0
                    },
                    "adcode": "350500"
                },
                {
                    "city": "漳州",
                    "confirm": "43",
                    "died": "0",
                    "heal": "42",
                    "asymptomaticRelative": "0",
                    "confirmedRelative": "0",
                    "asymptomaticLocalRelative": "0",
                    "asymptomatic": "0",
                    "nativeRelative": "0",
                    "screeningPositive": "0",
                    "curAsymptomaticLocalRelative": "",
                    "updateTime": "1667007130",
                    "curConfirm": "1",
                    "noNativeRelativeDays": "连续2天无新增病例",
                    "dangerousAreas": {
                        "subList": [],
                        "moreUrl": "",
                        "totalNum": 0,
                        "highLevelNum": 0,
                        "midLevelNum": 0
                    },
                    "adcode": "350600"
                },
                {
                    "city": "三明",
                    "confirm": "18",
                    "died": "0",
                    "heal": "16",
                    "asymptomaticRelative": "0",
                    "confirmedRelative": "0",
                    "asymptomaticLocalRelative": "0",
                    "asymptomatic": "0",
                    "nativeRelative": "0",
                    "screeningPositive": "0",
                    "curAsymptomaticLocalRelative": "",
                    "updateTime": "1667007130",
                    "curConfirm": "2",
                    "noNativeRelativeDays": "连续2天无新增病例",
                    "dangerousAreas": {
                        "subList": [],
                        "moreUrl": "",
                        "totalNum": 0,
                        "highLevelNum": 0,
                        "midLevelNum": 0
                    },
                    "adcode": "350400"
                },
                {
                    "city": "宁德",
                    "confirm": "93",
                    "died": "0",
                    "heal": "93",
                    "asymptomaticRelative": "0",
                    "confirmedRelative": "0",
                    "asymptomaticLocalRelative": "0",
                    "asymptomatic": "0",
                    "nativeRelative": "0",
                    "screeningPositive": "0",
                    "curAsymptomaticLocalRelative": "",
                    "updateTime": "1667007130",
                    "curConfirm": "0",
                    "noNativeRelativeDays": "连续2天无新增病例",
                    "dangerousAreas": {
                        "subList": [],
                        "moreUrl": "",
                        "totalNum": 0,
                        "highLevelNum": 0,
                        "midLevelNum": 0
                    },
                    "adcode": "350900"
                },
                {
                    "city": "龙岩",
                    "confirm": "8",
                    "died": "0",
                    "heal": "6",
                    "asymptomaticRelative": "0",
                    "confirmedRelative": "0",
                    "asymptomaticLocalRelative": "0",
                    "asymptomatic": "0",
                    "nativeRelative": "0",
                    "screeningPositive": "0",
                    "curAsymptomaticLocalRelative": "",
                    "updateTime": "1667007130",
                    "curConfirm": "2",
                    "noNativeRelativeDays": "连续7天无新增病例",
                    "dangerousAreas": {
                        "subList": [],
                        "moreUrl": "",
                        "totalNum": 0,
                        "highLevelNum": 0,
                        "midLevelNum": 0
                    },
                    "adcode": "350800"
                },
                {
                    "city": "福州",
                    "confirm": "91",
                    "died": "1",
                    "heal": "80",
                    "asymptomaticRelative": "82",
                    "confirmedRelative": "0",
                    "asymptomaticLocalRelative": "82",
                    "asymptomatic": "0",
                    "nativeRelative": "0",
                    "screeningPositive": "0",
                    "curAsymptomaticLocalRelative": "",
                    "updateTime": "1667007130",
                    "curConfirm": "10",
                    "noNativeRelativeDays": "",
                    "dangerousAreas": {
                        "subList": [
                            {
                                "xArea": "晋安区岳峰新城一区",
                                "level": "高风险",
                                "isNew": 1
                            },
                            {
                                "xArea": "晋安区岳峰镇东至竹屿路，西至化工河，南至化工路，北至星光大道的合围区域（泰禾广场）",
                                "level": "高风险",
                                "isNew": 1
                            },
                            {
                                "xArea": "台江区鳌峰街道鳌光小区",
                                "level": "中风险",
                                "isNew": 1
                            },
                            {
                                "xArea": "晋安区岳峰镇东至茶香路，西至香开社区东侧，南至香开新城中心花园，北至化工路的合围区域（香开新城小区13,15,16号楼）",
                                "level": "中风险",
                                "isNew": 1
                            },
                            {
                                "xArea": "晋安区新店镇东至磐石路，西至新店消防救援站，南至新店镇人民调解中心北侧，北至南平东路的合围区域（盘南小区）",
                                "level": "中风险",
                                "isNew": 1
                            },
                            {
                                "xArea": "晋安区王庄街道东至讲堂路，西至晋安南路，南至晋连路，北至王庄街的合围区域（世欧王庄B区）。",
                                "level": "中风险",
                                "isNew": 1
                            },
                            {
                                "xArea": "晋安区王庄街道东至长乐中路，西至讲堂路，南至晋连路，北至王庄街的合围区域（世欧王庄北区）。",
                                "level": "中风险",
                                "isNew": 1
                            },
                            {
                                "xArea": "晋安区茶园街道东至揽月新苑围墙和前岐路，西至石化楼围墙和沁河南路，南至从岩巷，北至北二环东路的合围区域（正荣悦榕府一区）。",
                                "level": "中风险",
                                "isNew": 1
                            },
                            {
                                "xArea": "晋安区茶园街道东至逸园路，西至前岐支路，南至华林路延伸段，北至从岩巷的合围区域（正荣悦榕府三区）",
                                "level": "中风险",
                                "isNew": 1
                            },
                            {
                                "xArea": "永泰县城峰镇洋亭路1号云山蓝郡6幢1梯",
                                "level": "中风险",
                                "isNew": 1
                            }
                        ],
                        "moreUrl": "http:\/\/m.fz.bendibao.com\/news\/yqdengji\/?src=baidu",
                        "totalNum": 51,
                        "highLevelNum": 2,
                        "midLevelNum": 49
                    },
                    "adcode": "350100"
                },
                {
                    "city": "境外输入",
                    "confirm": "2554",
                    "died": "0",
                    "heal": "2397",
                    "asymptomaticRelative": "9",
                    "confirmedRelative": "13",
                    "asymptomaticLocalRelative": "9",
                    "asymptomatic": "0",
                    "nativeRelative": "0",
                    "screeningPositive": "0",
                    "curAsymptomaticLocalRelative": "",
                    "updateTime": "1667007130",
                    "curConfirm": "157",
                    "noNativeRelativeDays": "",
                    "dangerousAreas": {
                        "subList": [],
                        "moreUrl": "",
                        "totalNum": 0,
                        "highLevelNum": 0,
                        "midLevelNum": 0
                    },
                    "adcode": ""
                },
                {
                    "city": "平潭综合实验区",
                    "confirm": "11",
                    "died": "0",
                    "heal": "0",
                    "asymptomaticRelative": "7",
                    "confirmedRelative": "0",
                    "asymptomaticLocalRelative": "7",
                    "asymptomatic": "0",
                    "nativeRelative": "0",
                    "screeningPositive": "0",
                    "curAsymptomaticLocalRelative": "",
                    "updateTime": "1667007130",
                    "curConfirm": "11",
                    "noNativeRelativeDays": "",
                    "dangerousAreas": {
                        "subList": [
                            {
                                "xArea": "平潭海坛金座万宝城东区6-9号",
                                "level": "中风险",
                                "isNew": 0
                            }
                        ],
                        "moreUrl": "http:\/\/m.pingtan.bendibao.com\/news\/yqdengji\/?src=baidu",
                        "totalNum": 1,
                        "highLevelNum": 0,
                        "midLevelNum": 1
                    },
                    "adcode": ""
                }
            ],
            "dangerousAreas": {
                "subList": [
                    {
                        "xArea": "福州晋安区岳峰新城一区",
                        "level": "高风险",
                        "isNew": 1
                    },
                    {
                        "xArea": "福州晋安区岳峰镇东至竹屿路，西至化工河，南至化工路，北至星光大道的合围区域（泰禾广场）",
                        "level": "高风险",
                        "isNew": 1
                    },
                    {
                        "xArea": "福州台江区鳌峰街道鳌光小区",
                        "level": "中风险",
                        "isNew": 1
                    },
                    {
                        "xArea": "福州晋安区岳峰镇东至茶香路，西至香开社区东侧，南至香开新城中心花园，北至化工路的合围区域（香开新城小区13,15,16号楼）",
                        "level": "中风险",
                        "isNew": 1
                    },
                    {
                        "xArea": "福州晋安区新店镇东至磐石路，西至新店消防救援站，南至新店镇人民调解中心北侧，北至南平东路的合围区域（盘南小区）",
                        "level": "中风险",
                        "isNew": 1
                    },
                    {
                        "xArea": "福州晋安区王庄街道东至讲堂路，西至晋安南路，南至晋连路，北至王庄街的合围区域（世欧王庄B区）。",
                        "level": "中风险",
                        "isNew": 1
                    },
                    {
                        "xArea": "福州晋安区王庄街道东至长乐中路，西至讲堂路，南至晋连路，北至王庄街的合围区域（世欧王庄北区）。",
                        "level": "中风险",
                        "isNew": 1
                    },
                    {
                        "xArea": "福州晋安区茶园街道东至揽月新苑围墙和前岐路，西至石化楼围墙和沁河南路，南至从岩巷，北至北二环东路的合围区域（正荣悦榕府一区）。",
                        "level": "中风险",
                        "isNew": 1
                    },
                    {
                        "xArea": "福州晋安区茶园街道东至逸园路，西至前岐支路，南至华林路延伸段，北至从岩巷的合围区域（正荣悦榕府三区）",
                        "level": "中风险",
                        "isNew": 1
                    },
                    {
                        "xArea": "福州永泰县城峰镇洋亭路1号云山蓝郡6幢1梯",
                        "level": "中风险",
                        "isNew": 1
                    }
                ],
                "moreUrl": "http:\/\/m.fz.bendibao.com\/news\/yqdengji\/?src=baidu",
                "totalNum": 52,
                "highLevelNum": 2,
                "midLevelNum": 50
            },
            "adcode": "350000"
        }
    ],
    "curtime": 1667013828
}
```

## 状态码说明

| 状态码 | 说明 |
| --- | --- |
| `10000` | 返回成功 |
| `10001` | appid必须指定，可以我的应用里面查看 |
| `10002` | sign值必须指定，加密规则请前往帮助中心查看 |
| `10003` | sign值验证不通过，加密规则请前往帮助中心查看 |
| `10004` | 时差不能超过10分钟，可以不传递这个参数，注意时间戳单位是秒 |
| `10005` | appid错误，请检查appid值,前往会员中心->我的应用查看或添加 |
| `10006` | 当前IP地址未授权，请前往用户中心->我的应用添加ip{@info} |
| `10007` | 应用被禁用，请联系客服处理 |
| `10008` | 应用内没有该接口，请到我的应用里面添加这个接口 |
| `10009` | api接口不存在 |
| `10010` | 您没有添加该api接口 |
| `10011` | api已经到期 |
| `10012` | 没有订购任何api,请前往购买后再操作 |
| `10013` | 该接口已经暂停使用 |
| `10014` | 未知的错误，可以联系客服处理 |
| `10015` | 参数个数错误 |
| `10019` | {@info} |
| `10017` | time必须是整型 |
| `10018` | 次数不足 |
| `10020` | 子接口不存在,可能已经被关闭 |
| `10021` | 服务器发生错误 |
| `10022` | 帐户余额不足，请充值！ |
| `10023` | 订单提交成功，等待回调结果 |
| `10024` | 调试模式数据 |
| `10025` | 查无数据 |

## 对接提示

1. 先在挖数据（wapi.cn）创建应用，获取 `appid` 与密钥。
2. 按上方参数组装请求，计算 `sign` 后调用接口地址。
3. 可用在线测试工具：`https://www.wapi.cn/api_debug/94/219.html`
