新冠全国疫情(腾讯)
其他 官方文档
新型冠状病毒全国疫情,包括到具体的县市区统计人数,腾讯提供数据
基本说明:
接口地址:https://view.inews.qq.com/g2/getOnsInfo?name=disease_h5
返回格式:json
请求方式:get
请求示例:https://view.inews.qq.com/g2/getOnsInfo?name=disease_h5
请求参数说明:
名称 类型 必填 说明
null null 选填 不需要填写
返回参数说明:
名称 类型 说明
- - 见json返回
JSON返回示例:
{
	"ret": 0,
	"data": "{\"lastUpdateTime\":\"2020-09-05 10:30:24\",\"chinaTotal\":{\"confirm\":90498,\"heal\":85257,\"dead\":4735,\"nowConfirm\":506,\"suspect\":0,\"nowSevere\":2,\"importedCase\":2563,\"noInfect\":338},\"chinaAdd\":{\"confirm\":23,\"heal\":46,\"dead\":0,\"nowConfirm\":-23,\"suspect\":0,\"nowSevere\":-1,\"importedCase\":10,\"noInfect\":8},\"isShowAdd\":true,\"showAddSwitch\":{\"all\":true,\"confirm\":true,\"suspect\":true,\"dead\":true,\"heal\":true,\"nowConfirm\":true,\"nowSevere\":true,\"importedCase\":true,\"noInfect\":true},\"areaTree\":[{\"name\":\"中国\",\"today\":{\"confirm\":23,\"isUpdated\":true},\"total\":{\"nowConfirm\":506,\"confirm\":90498,\"suspect\":0,\"dead\":4735,\"deadRate\":\"5.23\",\"showRate\":false,\"heal\":85257,\"healRate\":\"94.21\",\"showHeal\":true},\"children\":[{\"name\":\"香港\",\"today\":{\"confirm\":12,\"confirmCuts\":0,\"isUpdated\":true,\"tip\":\"\"},\"total\":{\"nowConfirm\":300,\"confirm\":4850,\"suspect\":0,\"dead\":94,\"deadRate\":\"1.94\",\"showRate\":false,\"heal\":4456,\"healRate\":\"91.88\",\"showHeal\":true},\"children\":[{\"name\":\"地区待确认\",\"today\":{\"confirm\":12,\"confirmCuts\":0,\"isUpdated\":true},\"total\":{\"nowConfirm\":300,\"confirm\":4850,\"suspect\":0,\"dead\":94,\"deadRate\":\"1.94\",\"showRate\":false,\"heal\":4456,\"healRate\":\"91.88\",\"showHeal\":true}}]},{\"name\":\"上海\",\"today\":{\"confirm\":3,\"confirmCuts\":0,\"isUpdated\":true,\"tip\":\"上海累计报告境外输入确诊病例574例。\"},\"total\":{\"nowConfirm\":49,\"confirm\":916,\"suspect\":0,\"dead\":7,\"deadRate\":\"0.76\",\"showRate\":false,\"heal\":860,\"healRate\":\"93.89\",\"showHeal\":true},\"children\":[{\"name\":\"境外输入\",\"today\":{\"confirm\":3,\"confirmCuts\":0,\"isUpdated\":true},\"total\":{\"nowConfirm\":49,\"confirm\":574,\"suspect\":0,\"dead\":0,\"deadRate\":\"0.00\",\"showRate\":false,\"heal\":525,\"healRate\":\"91.46\",\"showHeal\":true}},{\"name\":\"青浦\",\"today\":{\"confirm\":0,\"confirmCuts\":0,\"isUpdated\":false},\"total\":{\"nowConfirm\":0,\"confirm\":6,\"suspect\":0,\"dead\":0,\"deadRate\":\"0.00\",\"showRate\":false,\"heal\":6,\"healRate\":\"100.00\",\"showHeal\":true}},{\"name\":\"外地来沪\",\"today\":{\"confirm\":0,\"confirmCuts\":0,\"isUpdated\":false},\"total\":{\"nowConfirm\":0,\"confirm\":113,\"suspect\":0,\"dead\":1,\"deadRate\":\"0.88\",\"showRate\":false,\"heal\":112,\"healRate\":\"99.12\",\"showHeal\":true}},{\"name\":\"宝山\",\"today\":{\"confirm\":0,\"confirmCuts\":0,\"isUpdated\":false},\"total\":{\"nowConfirm\":0,\"confirm\":22,\"suspect\":0,\"dead\":1,\"deadRate\":\"4.55\",\"showRate\":false,\"heal\":21,\"healRate\":\"95.45\",\"showHeal\":true}},{\"name\":\"地区待确认\",\"today\":{\"confirm\":0,\"confirmCuts\":0,\"isUpdated\":false},\"total\":{\"nowConfirm\":0,\"confirm\":0,\"suspect\":0,\"dead\":0,\"deadRate\":\"0.00\",\"showRate\":false,\"heal\":0,\"healRate\":\"0.00\",\"showHeal\":true}},{\"name\":\"嘉定\",\"today\":{\"confirm\":0,\"confirmCuts\":0,\"isUpdated\":false},\"total\":{\"nowConfirm\":0,\"confirm\":9,\"suspect\":0,\"dead\":2,\"deadRate\":\"22.22\",\"showRate\":false,\"heal\":7,\"healRate\":\"77.78\",\"showHeal\":true}},{\"name\":\"徐汇\",\"today\":{\"confirm\":0,\"confirmCuts\":0,\"isUpdated\":false},\"total\":{\"nowConfirm\":0,\"confirm\":18,\"suspect\":0,\"dead\":1,\"deadRate\":\"5.56\",\"showRate\":false,\"heal\":17,\"healRate\":\"94.44\",\"showHeal\":true}},{\"name\":\"静安\",\"today\":{\"confirm\":0,\"confirmCuts\":0,\"isUpdated\":false},\"total\":{\"nowConfirm\":0,\"confirm\":16,\"suspect\":0,\"dead\":1,\"deadRate\":\"6.25\",\"showRate\":false,\"heal\":15,\"healRate\":\"93.75\",\"showHeal\":true}},{\"name\":\"黄浦\",\"today\":{\"confirm\":0,\"confirmCuts\":0,\"isUpdated\":false},\"total\":{\"nowConfirm\":0,\"confirm\":6,\"suspect\":0,\"dead\":1,\"deadRate\":\"16.67\",\"showRate\":false,\"heal\":5,\"healRate\":\"83.33\",\"showHeal\":true}},{\"name\":\"浦东\",\"today\":{\"confirm\":0,\"confirmCuts\":0,\"isUpdated\":false},\"total\":{\"nowConfirm\":0,\"confirm\":61,\"suspect\":0,\"dead\":0,\"deadRate\":\"0.00\",\"showRate\":false,\"heal\":61,\"healRate\":\"100.00\",\"showHeal\":true}},{\"name\":\"境外来沪\",\"today\":{\"confirm\":0,\"confirmCuts\":0,\"isUpdated\":false},\"total\":{\"nowConfirm\":0,\"confirm\":1,\"suspect\":0,\"dead\":0,\"deadRate\":\"0.00\",\"showRate\":false,\"heal\":1,\"healRate\":\"100.00\",\"showHeal\":true}},{\"name\":\"崇明\",\"today\":{\"confirm\":0,\"confirmCuts\":0,\"isUpdated\":false},\"total\":{\"nowConfirm\":0,\"confirm\":4,\"suspect\":0,\"dead\":0,\"deadRate\":\"0.00\",\"showRate\":false,\"heal\":4,\"healRate\":\"100.00\",\"showHeal\":true}},{\"name\":\"金山\",\"today\":{\"confirm\":0,\"confirmCuts\":0,\"isUpdated\":false},\"total\":{\"nowConfirm\":0,\"confirm\":4,\"suspect\":0,\"dead\":0,\"deadRate\":\"0.00\",\"showRate\":false,\"heal\":4,\"healRate\":\"100.00\",\"showHeal\":true}},{\"name\":\"虹口\",\"today\":{\"confirm\":0,\"confirmCuts\":0,\"isUpdated\":false},\"total\":{\"nowConfirm\":0,\"confirm\":7,\"suspect\":0,\"dead\":0,\"deadRate\":\"0.00\",\"showRate\":false,\"heal\":7,\"healRate\":\"100.00\",\"showHeal\":true}},{\"name\":\"奉贤\",\"today\":{\"confirm\":0,\"confirmCuts\":0,\"isUpdated\":false},\"total\":{\"nowConfirm\":0,\"confirm\":9,\"suspect\":0,\"dead\":0,\"deadRate\":\"0.00\",\"showRate\":false,\"heal\":9,\"healRate\":\"100.00\",\"showHeal\":true}},{\"name\":\"杨浦\",\"today\":{\"confirm\":0,\"confirmCuts\":0,\"isUpdated\":false},\"total\":{\"nowConfirm\":0,\"confirm\":9,\"suspect\":0,\"dead\":0,\"deadRate\":\"0.00\",\"showRate\":false,\"heal\":9,\"healRate\":\"100.00\",\"showHeal\":true}},{\"name\":\"普陀\",\"today\":{\"confirm\":0,\"confirmCuts\":0,\"isUpdated\":false},\"total\":{\"nowConfirm\":0,\"confirm\":11,\"suspect\":0,\"dead\":0,\"deadRate\":\"0.00\",\"showRate\":false,\"heal\":11,\"healRate\":\"100.00\",\"showHeal\":true}},{\"name\":\"长宁\",\"today\":{\"confirm\":0,\"confirmCuts\":0,\"isUpdated\":false},\"total\":{\"nowConfirm\":0,\"confirm\":13,\"suspect\":0,\"dead\":0,\"deadRate\":\"0.00\",\"showRate\":false,\"heal\":13,\"healRate\":\"100.00\",\"showHeal\":true}},{\"name\":\"松江\",\"today\":{\"confirm\":0,\"confirmCuts\":0,\"isUpdated\":false},\"total\":{\"nowConfirm\":0,\"confirm\":14,\"suspect\":0,\"dead\":0,\"deadRate\":\"0.00\",\"showRate\":false,\"heal\":14,\"healRate\":\"100.00\",\"showHeal\":true}},{\"name\":\"闵行\",\"today\":{\"confirm\":0,\"confirmCuts\":0,\"isUpdated\":false},\"total\":{\"nowConfirm\":0,\"confirm\":19,\"suspect\":0,\"dead\":0,\"deadRate\":\"0.00\",\"showRate\":false,\"heal\":19,\"healRate\":\"100.00\",\"showHeal\":true}}]},{\"name\":\"广东\",\"today\":{\"confirm\":2,\"confirmCuts\":0,\"isUpdated\":true,\"tip\":\"广东省累计报告境外输入病例364例。\"},\"total\":{\"nowConfirm\":29,\"confirm\":1760,\"suspect\":0,\"dead\":8,\"deadRate\":\"0.45\",\"showRate\":false,\"heal\":1723,\"healRate\":\"97.90\",\"showHeal\":true},\"children\":[{\"name\":\"境外输入\",\"today\":{\"confirm\":2,\"confirmCuts\":0,\"isUpdated\":true},\"total\":{\"nowConfirm\":29,\"confirm\":364,\"suspect\":0,\"dead\":0,\"deadRate\":\"0.00\",\"showRate\":false,\"heal\":335,\"healRate\":\"92.03\",\"showHeal\":true}},{\"name\":\"湛江\",\"today\":{\"confirm\":0,\"confirmCuts\":0,\"isUpdated\":false},\"total\":{\"nowConfirm\":0,\"confirm\":22,\"suspect\":0,\"dead\":0,\"deadRate\":\"0.00\",\"showRate\":false,\"heal\":22,\"healRate\":\"100.00\",\"showHeal\":true}},{\"name\":\"汕尾\",\"today\":{\"confirm\":0,\"confirmCuts\":0,\"isUpdated\":false},\"total\":{\"nowConfirm\":0,\"confirm\":6,\"suspect\":0,\"dead\":0,\"deadRate\":\"0.00\",\"showRate\":false,\"heal\":6,\"healRate\":\"100.00\",\"showHeal\":true}},{\"name\":\"广州\",\"today\":{\"confirm\":0,\"confirmCuts\":0,\"isUpdated\":false},\"total\":{\"nowConfirm\":0,\"confirm\":377,\"suspect\":0,\"dead\":1,\"deadRate\":\"0.27\",\"showRate\":false,\"heal\":376,\"healRate\":\"99.73\",\"showHeal\":true}},{\"name\":\"茂名\",\"today\":{\"confirm\":0,\"confirmCuts\":0,\"isUpdated\":false},\"total\":{\"nowConfirm\":0,\"confirm\":14,\"suspect\":0,\"dead\":0,\"deadRate\":\"0.00\",\"showRate\":false,\"heal\":14,\"healRate\":\"100.00\",\"showHeal\":true}},{\"name\":\"韶关\",\"today\":{\"confirm\":0,\"confirmCuts\":0,\"isUpdated\":false},\"total\":{\"nowConfirm\":0,\"confirm\":10,\"suspect\":0,\"dead\":1,\"deadRate\":\"10.00\",\"showRate\":false,\"heal\":9,\"healRate\":\"90.00\",\"showHeal\":true}},{\"name\":\"潮州\",\"today\":{\"confirm\":0,\"confirmCuts\":0,\"isUpdated\":false},\"total\":{\"nowConfirm\":0,\"confirm\":5,\"suspect\":0,\"dead\":0,\"deadRate\":\"0.00\",\"showRate\":false,\"heal\":5,\"healRate\":\"100.00\",\"showHeal\":true}},{\"name\":\"清远\",\"today\":{\"confirm\":0,\"confirmCuts\":0,\"isUpdated\":false},\"total\":{\"nowConfirm\":0,\"confirm\":12,\"suspect\":0,\"dead\":0,\"deadRate\":\"0.00\",\"showRate\":false,\"heal\":12,\"healRate\":\"100.00\",\"showHeal\":true}},{\"name\":\"惠州\",\"today\":{\"confirm\":0,\"confirmCuts\":0,\"isUpdated\":false},\"total\":{\"nowConfirm\":0,\"confirm\":62,\"suspect\":0,\"dead\":0,\"deadRate\":\"0.00\",\"showRate\":false,\"heal\":62,\"healRate\":\"100.00\",\"showHeal\":true}},{\"name\":\"中山\",\"today\":{\"confirm\":0,\"confirmCuts\":0,\"isUpdated\":false},\"total\":{\"nowConfirm\":0,\"confirm\":67,\"suspect\":0,\"dead\":0,\"deadRate\":\"0.00\",\"showRate\":false,\"heal\":67,\"healRate\":\"100.00\",\"showHeal\":true}},{\"name\":\"河源\",\"today\":{\"confirm\":0,\"confirmCuts\":0,\"isUpdated\":false},\"total\":{\"nowConfirm\":0,\"confirm\":5,\"suspect\":0,\"dead\":0,\"deadRate\":\"0.00\",\"showRate\":false,\"heal\":5,\"healRate\":\"100.00\",\"showHeal\":true}},{\"name\":\"地区待确认\",\"today\":{\"confirm\":0,\"confirmCuts\":0,\"isUpdated\":false},\"total\":{\"nowConfirm\":0,\"confirm\":0,\"suspect\":0,\"dead\":0,\"deadRate\":\"0.00\",\"showRate\":false,\"heal\":0,\"healRate\":\"0.00\",\"showHeal\":true}},{\"name\":\"珠海\",\"today\":{\"confirm\":0,\"confirmCuts\":0,\"isUpdated\":false},\"total\":{\"nowConfirm\":0,\"confirm\":98,\"suspect\":0,\"dead\":1,\"deadRate\":\"1.02\",\"showRate\":false,\"heal\":97,\"healRate\":\"98.98\",\"showHeal\":true}},{\"name\":\"汕头\",\"today\":{\"confirm\":0,\"confirmCuts\":0,\"isUpdated\":false},\"total\":{\"nowConfirm\":0,\"confirm\":25,\"suspect\":0,\"dead\":0,\"deadRate\":\"0.00\",\"showRate\":false,\"heal\":25,\"healRate\":\"100.00\",\"showHeal\":true}},{\"name\":\"揭阳\",\"today\":{\"confirm\":0,\"confirmCuts\":0,\"isUpdated\":false},\"total\":{\"nowConfirm\":0,\"confirm\":10,\"suspect\":0,\"dead\":0,\"deadRate\":\"0.00\",\"showRate\":false,\"heal\":10,\"healRate\":\"100.00\",\"showHeal\":true}},{\"name\":\"江门\",\"today\":{\"confirm\":0,\"confirmCuts\":0,\"isUpdated\":false},\"total\":{\"nowConfirm\":0,\"confirm\":23,\"suspect\":0,\"dead\":0,\"deadRate\":\"0.00\",\"showRate\":false,\"heal\":23,\"healRate\":\"100.00\",\"showHeal\":true}},{\"name\":\"梅州\",\"today\":{\"confirm\":0,\"confirmCuts\":0,\"isUpdated\":false},\"total\":{\"nowConfirm\":0,\"confirm\":16,\"suspect\":0,\"dead\":0,\"deadRate\":\"0.00\",\"showRate\":false,\"heal\":16,\"healRate\":\"100.00\",\"showHeal\":true}},{\"name\":\"佛山\",\"today\":{\"confirm\":0,\"confirmCuts\":0,\"isUpdated\":false},\"total\":{\"nowConfirm\":0,\"confirm\":89,\"suspect\":0,\"dead\":0,\"deadRate\":\"0.00\",\"showRate\":false,\"heal\":89,\"healRate\":\"100.00\",\"showHeal\":true}},{\"name\":\"深圳\",\"today\":{\"confirm\":0,\"confirmCuts\":0,\"isUpdated\":false},\"total\":{\"nowConfirm\":0,\"confirm\":423,\"suspect\":0,\"dead\":3,\"deadRate\":\"0.71\",\"showRate\":false,\"heal\":420,\"healRate\":\"99.29\",\"showHeal\":true}},{\"name\":\"肇庆\",\"today\":{\"confirm\":0,\"confirmCuts\":0,\"isUpdated\":false},\"total\":{\"nowConfirm\":0,\"confirm\":19,\"suspect\":0,\"dead\":1,\"deadRate\":\"5.26\",\"showRate\":false,\"heal\":18,\"healRate\":\"94.74\",\"showHeal\":true}},{\"name\":\"东莞\",\"today\":{\"confirm\":0,\"confirmCuts\":0,\"isUpdated\":false},\"total\":{\"nowConfirm\":0,\"confirm\":99,\"suspect\":0,\"dead\":1,\"deadRate\":\"1.01\",\"showRate\":false,\"heal\":98,\"healRate\":\"98.99\",\"showHeal\":true}},{\"name\":\"阳江\",\"today\":{\"confirm\":0,\"confirmCuts\":0,\"isUpdated\":false},\"total\":{\"nowConfirm\":0,\"confirm\":14,\"suspect\":0,\"dead\":0,\"deadRate\":\"0.00\",\"showRate\":false,\"heal\":14,\"healRate\":\"100.00\",\"showHeal\":true}}]},{\"name\":\"四川\",\"today\":{\"confirm\":0,\"confirmCuts\":0,\"isUpdated\":true,\"tip\":\"四川累计报告115例境外输入病例。\"},\"total\":{\"nowConfirm\":19,\"confirm\":656,\"suspect\":0,\"dead\":3,\"deadRate\":\"0.46\",\"showRate\":false,\"heal\":634,\"healRate\":\"96.65\",\"showHeal\":true},\"children\":[{\"name\":\"境外输入\",\"today\":{\"confirm\":0,\"confirmCuts\":0,\"isUpdated\":true},\"total\":{\"nowConfirm\":19,\"confirm\":115,\"suspect\":0,\"dead\":0,\"deadRate\":\"0.00\",\"showRate\":false,\"heal\":96,\"healRate\":\"83.48\",\"showHeal\":true}},{\"name\":\"遂宁\",\"today\":{\"confirm\":0,\"confirmCuts\":0,\"isUpdated\":false},\"total\":{\"nowConfirm\":0,\"confirm\":17,\"suspect\":0,\"dead\":0,\"deadRate\":\"0.00\",\"showRate\":false,\"heal\":17,\"healRate\":\"100.00\",\"showHeal\":true}},{\"name\":\"成都\",\"today\":{\"confirm\":0,\"confirmCuts\":0,\"isUpdated\":false},\"total\":{\"nowConfirm\":0,\"confirm\":145,\"suspect\":0,\"dead\":3,\"deadRate\":\"2.07\",\"showRate\":false,\"heal\":142,\"healRate\":\"97.93\",\"showHeal\":true}},{\"name\":\"阿坝\",\"today\":{\"confirm\":0,\"confirmCuts\":0,\"isUpdated\":false},\"total\":{\"nowConfirm\":0,\"confirm\":1,\"suspect\":0,\"dead\":0,\"deadRate\":\"0.00\",\"showRate\":false,\"heal\":1,\"healRate\":\"100.00\",\"showHeal\":true}},{\"name\":\"资阳\",\"today\":{\"confirm\":0,\"confirmCuts\":0,\"isUpdated\":false},\"total\":{\"nowConfirm\":0,\"confirm\":4,\"suspect\":0,\"dead\":0,\"deadRate\":\"0.00\",\"showRate\":false,\"heal\":4,\"healRate\":\"100.00\",\"showHeal\":true}},{\"name\":\"自贡\",\"today\":{\"confirm\":0,\"confirmCuts\":0,\"isUpdated\":false},\"total\":{\"nowConfirm\":0,\"confirm\":9,\"suspect\":0,\"dead\":0,\"deadRate\":\"0.00\",\"showRate\":false,\"heal\":9,\"healRate\":\"100.00\",\"showHeal\":true}},{\"name\":\"攀枝花\",\"today\":{\"confirm\":0,\"confirmCuts\":0,\"isUpdated\":false},\"total\":{\"nowConfirm\":0,\"confirm\":16,\"suspect\":0,\"dead\":0,\"deadRate\":\"0.00\",\"showRate\":false,\"heal\":16,\"healRate\":\"100.00\",\"showHeal\":true}},{\"name\":\"泸州\",\"today\":{\"confirm\":0,\"confirmCuts\":0,\"isUpdated\":false},\"total\":{\"nowConfirm\":0,\"confirm\":24,\"suspect\":0,\"dead\":0,\"deadRate\":\"0.00\",\"showRate\":false,\"heal\":24,\"healRate\":\"100.00\",\"showHeal\":true}},{\"name\":\"德阳\",\"today\":{\"confirm\":0,\"confirmCuts\":0,\"isUpdated\":false},\"total\":{\"nowConfirm\":0,\"confirm\":18,\"suspect\":0,\"dead\":0,\"deadRate\":\"0.00\",\"showRate\":false,\"heal\":18,\"healRate\":\"100.00\",\"showHeal\":true}},{\"name\":\"绵阳\",\"today\":{\"confirm\":0,\"confirmCuts\":0,\"isUpdated\":false},\"total\":{\"nowConfirm\":0,\"confirm\":22,\"suspect\":0,\"dead\":0,\"deadRate\":\"0.00\",\"showRate\":false,\"heal\":22,\"healRate\":\"100.00\",\"showHeal\":true}},{\"name\":\"广元\",\"today\":{\"confirm\":0,\"confirmCuts\":0,\"isUpdated\":false},\"total\":{\"nowConfirm\":0,\"confirm\":6,\"suspect\":0,\"dead\":0,\"deadRate\":\"0.00\",\"showRate\":false,\"heal\":6,\"healRate\":\"100.00\",\"showHeal\":true}},{\"name\":\"雅安\",\"today\":{\"confirm\":0,\"confirmCuts\":0,\"isUpdated\":false},\"total\":{\"nowConfirm\":0,\"confirm\":8,\"suspect\":0,\"dead\":0,\"deadRate\":\"0.00\",\"showRate\":false,\"heal\":8,\"healRate\":\"100.00\",\"showHeal\":true}},{\"name\":\"内江\",\"today\":{\"confirm\":0,\"confirmCuts\":0,\"isUpdated\":false},\"total\":{\"nowConfirm\":0,\"confirm\":22,\"suspect\":0,\"dead\":0,\"deadRate\":\"0.00\",\"showRate\":false,\"heal\":22,\"healRate\":\"100.00\",\"showHeal\":true}},{\"name\":\"乐山\",\"today\":{\"confirm\":0,\"confirmCuts\":0,\"isUpdated\":false},\"total\":{\"nowConfirm\":0,\"confirm\":3,\"suspect\":0,\"dead\":0,\"deadRate\":\"0.00\",\"showRate\":false,\"heal\":3,\"healRate\":\"100.00\",\"showHeal\":true}},{\"name\":\"南充\",\"today\":{\"confirm\":0,\"confirmCuts\":0,\"isUpdated\":false},\"total\":{\"nowConfirm\":0,\"confirm\":39,\"suspect\":0,\"dead\":0,\"deadRate\":\"0.00\",\"showRate\":false,\"heal\":39,\"healRate\":\"100.00\",\"showHeal\":true}},{\"name\":\"宜宾\",\"today\":{\"confirm\":0,\"confirmCuts\":0,\"isUpdated\":false},\"total\":{\"nowConfirm\":0,\"confirm\":12,\"suspect\":0,\"dead\":0,\"deadRate\":\"0.00\",\"showRate\":false,\"heal\":12,\"healRate\":\"100.00\",\"showHeal\":true}},{\"name\":\"广安\",\"today\":{\"confirm\":0,\"confirmCuts\":0,\"isUpdated\":false},\"total\":{\"nowConfirm\":0,\"confirm\":30,\"suspect\":0,\"dead\":0,\"deadRate\":\"0.00\",\"showRate\":false,\"heal\":30,\"healRate\":\"100.00\",\"showHeal\":true}}}]}]}"
}
服务级错误码参照
错误码 说明
- -
完整教学代码示例
<?php
/**
 * Created by PhpStorm.
 * User: FZS
 * Time: 2020/09/05 16:46
 */
class freeApi
{
    private $apiUrl;

    public function __construct()
    {
        $this->apiUrl = 'https://view.inews.qq.com/g2/getOnsInfo?name=disease_h5';
    }

    /**
     * 获取结果
     * @return array
     */
    public function getResult()
    {
        return file_get_contents($this->apiUrl);
    }
}
package main

import (
	"fmt"
	"io/ioutil"
	"log"
	"net/http"
)

const (
	APIURL   = "https://view.inews.qq.com/g2/getOnsInfo?name=disease_h5"
)

func main() {
	queryUrl := fmt.Sprintf("%s",APIURL)
	resp, err := http.Get(queryUrl)
	if err != nil {
		log.Println(err)
		return
	}

	defer resp.Body.Close()

	body, err := ioutil.ReadAll(resp.Body)

	if err != nil {
		fmt.Println(err)
		return
	}

	fmt.Println(string(body))
}