Pneumonia epidemic of API data you want to come (live data)

 

Every day at home or looking for something to do, I believe that many programmers want to epidemic data, I am no exception, I think to start climbing other websites. Try a bit of trouble but also very time-consuming, so I found a api interface, which includes today's data, historical data, provincial / municipal data, but they are all in a JSON data, very easy to use.

 

To you better call me save this data after processing to their database, and open the own interface, more convenient and flexible, as follows:

Note: All interfaces are all GET requests

By CSDN official audit, where relevant data can not occur, and therefore hold return a result example, self-test

Get the country's total data

http://www.dzyong.top:3005/yiqing/total

 

Obtain historical data (the oldest data to January 23)

http://www.dzyong.top:3005/yiqing/history

 

Obtaining provincial / municipal latest total data

http://www.dzyong.top:3005/yiqing/province

Request parameters:

parameter name Required Explanation

province

no When is empty or not filled, the return of all provincial / municipal latest aggregate data, when the mass participation should be careful not to bring 'province' or 'city' word, such as: 'Chongqing' should be filled 'Chongqing'

 

Obtaining provincial / municipal / regional data

http://www.dzyong.top:3005/yiqing/area

Request parameters:

parameter name Required Explanation
area no When is empty or not filled, the data returns all provinces and cities, when the mass participation should be careful not to bring 'province' or 'city' word, such as: 'Chongqing' should be filled 'Chongqing'

 

Get updates News (oldest to February 6 data)

http://www.dzyong.top:3005/yiqing/news

Request parameters:

parameter name Required Explanation

pageno

no When the page is not blank, the default query all news)

pageSize

no Per page news (when not filled, the default query all news)

 

NOTE: Returns results  pubDateStr  field reference time only, if you want updated in real time, by pubDate calculated field itself

 

Leading bloggers Website

https://www.dzyong.com(V1.0)

http://www.dzyong.top (provisional version V2.0 URL)

Published 64 original articles · won praise 45 · views 40000 +

Guess you like

Origin blog.csdn.net/DengZY926/article/details/104183961