2019-nCov-api
COVID – 19 API
preface
This project extracts COVID-19 data from Tencent, Sina, Dingxiang Garden and other epidemic data, and integrates them into API data. The method is simple and crude, similar to port forwarding. The data includes mask reservation, co-passenger vehicle, epidemic community, data analysis, detailed data at home and abroad, real-time news, information flow of confirmed cases, epidemic rumors, etc.
The current interface deployed to my own beggar server may be a bit slow, hope and use and cherish. Document address: https://wuliang.art/ncov/doc.html#/home making address: https://github.com/LiangWuCode/2019-nCov-api
I said I would not build wheels before, but later I was waiting for the resumption of work at home. I was idle and idle, so I finished a set myself. I was in a hurry and I was in a hurry to write. Other early with flutter also make a haste app, welcome the nuggets star https://github.com/LiangWuCode/2019-nCoV the original post: Download link: https://juejin.cn/post/6844904057216188429 https://www.wuliang.art/app-release.apk
The overall figure
API specification
Introduction: COVID – 19 API
HOST:wuliang.art
Contact person: Wu Liang (QQ: 937743837 (wechat))
If the API name contains numbers, it indicates that the returned data content is similar (but the data format is different), but the data source is different. Any questions
Mask information
Mask booking information
The interface address is /ncov/mask/gauzeMask
Request mode :GET
Request data type :*
Response data type :*/*
Interface description: Obtains mask reservation information of related cities
With the car
Query the same vehicle data 1
Interface address: / ncov/sameRide/getSameRide1
Request mode :GET
Interface description: Return the relevant vehicle information according to the bus date or bus number
Request parameters:
The parameter name | Parameters that | in | Whether must | The data type |
---|---|---|---|---|
date | date | query | false | string |
no | no | query | false | string |
Query the same vehicle data 2
Interface address: / ncov/sameRide/getSameRide2
Request mode :GET
Interface description: Query vehicle data based on the start date, end date, number of trains, station, and vehicle type.
Request parameters:
The parameter name | Parameters that | in | Whether must | The data type |
---|---|---|---|---|
endDate | endDate | query | false | string |
no | no | query | false | string |
page | page | query | false | integer(int32) |
position | position | query | false | string |
size | size | query | false | integer(int32) |
startDate | startDate | query | false | string |
type | type | query | false | integer(int32) |
Obtain data of all co-passengers
Interface address: / ncov/sameRide/getSameRideAll
Request mode :GET
Interface description: Obtain all the traffic times reported by the current channels. This interface returns a large number and may be slow, so frequent retrieval is not recommended.
Plot data
Get cell data 1
Interface address: / ncov/village/getVillage1
Request mode :GET
Interface description: Obtains the information of the current urban confirmed community according to the city name. For example: Xi ‘an
Request parameters:
The parameter name | Parameters that | in | Whether must | The data type |
---|---|---|---|---|
cityName | cityName | query | true | string |
Get cell data 2
Interface address: / ncov/village/getVillage2
Request mode :GET
Interface description: Obtains the information of the current urban confirmed community according to the city name. For example: Xi ‘an
Request parameters:
The parameter name | Parameters that | in | Whether must | The data type |
---|---|---|---|---|
cityName | cityName | query | true | string |
Query the epidemic community according to the community name
Interface address: / ncov/village/getVillageByCommunityName
Request mode :GET
Interface description: Fuzzy search is performed according to the name of the community to query the epidemic community
Request parameters:
The parameter name | Parameters that | in | Whether must | The data type |
---|---|---|---|---|
communityName | communityName | query | true | string |
The data analysis
Daily data analysis
Interface address :/ncov/dnalysis/everyday
Request mode :GET
Interface description: To interpret daily epidemic data and analyze future trends, a picture link is returned.
Epidemic map data
Interface address :/ncov/dnalysis/ncovMaps
Request mode :GET
Interface description: This interface is mainly used to sort out some chart information of the epidemic, which is convenient for rendering and displaying charts, such as bar charts and broken line charts.
Data statistics
Obtain the current urban historical data according to the name of provinces and cities
Interface address: / ncov/statistics/getCityHistoryList
Request mode :GET
Interface description: Obtains the historical data of the current urban area based on the name of the province and city.
Request parameters:
The parameter name | Parameters that | in | Whether must | The data type |
---|---|---|---|---|
cityName | cityName | query | true | string |
provinceName | provinceName | query | true | string |
Obtain county-level data based on municipal name
Interface address: / ncov/statistics/getCountyList
Request mode :GET
Interface description: Obtains historical county-level data based on the city name. Data may be missing on this interface. For example: Ankang
Request parameters:
The parameter name | Parameters that | in | Whether must | The data type |
---|---|---|---|---|
cityName | cityName | query | true | string |
Get historical data for the province by name
Interface address: / ncov/statistics/getProvinceHistoryList
Request mode :GET
Interface Description:
Request parameter: Retrieves historical data for a province based on its name. For example: Shaanxi
The parameter name | Parameters that | in | Whether must | The data type |
---|---|---|---|---|
provinceName | provinceName | query | true | string |
Data Statistics 1
Interface address: / ncov/statistics/totalDataOne
Request mode :GET
Interface description: To obtain domestic and foreign epidemic data.
Request parameters:
Statistics 3
Interface address: / ncov/statistics/totalDataThree
Request mode :GET
Interface description: Collect domestic and foreign epidemic data.
Statistics 2
Interface address: / ncov/statistics/totalDataTwo
Request mode :GET
Interface description: Collect domestic and foreign epidemic data.
News data
Get news information about a city by its name
Interface address: / ncov/news/getCityNewsList
Request mode :GET
Interface description: Get the current city news, according to the city name. For example: Ankang
Request parameters:
The parameter name | Parameters that | in | Whether must | The data type |
---|---|---|---|---|
cityName | cityName | query | true | string |
Encyclopedic Knowledge about the Epidemic (Examination and Diagnosis)
Interface address: / ncov/news/getDiagnoseList
Request mode :GET
Interface Description:
Request parameters:
The parameter name | Parameters that | in | Whether must | The data type |
---|---|---|---|---|
count | count | query | true | integer(int32) |
Encyclopedic Knowledge of the Epidemic (Prevention Guide)
Interface address :/ncov/news/getGuideList
Request mode :GET
Interface Description:
Request parameters:
The parameter name | Parameters that | in | Whether must | The data type |
---|---|---|---|---|
count | count | query | true | integer(int32) |
Confirmed information
According to the name of the province, obtain the information of confirmed patients
Interface address: / ncov/confirmedInformation/getGuideListByProvinceName
Request mode :GET
Interface description: Query the current province, confirm personnel information, including personnel track.
Request parameters:
The parameter name | Parameters that | in | Whether must | The data type |
---|---|---|---|---|
num | num | query | true | integer(int32) |
page | page | query | true | integer(int32) |
provinceName | provinceName | query | true | string |
Obtain the information of confirmed patients in the current city based on the city name
Interface address: / ncov/confirmedInformation/getGuideListByProvinceNameAndCityName
Request mode :GET
Interface description: Query the current province, confirm personnel information, including personnel track.
Request parameters:
The parameter name | Parameters that | in | Whether must | The data type |
---|---|---|---|---|
cityName | cityName | query | true | string |
page | page | query | true | integer(int32) |
provinceName | provinceName | query | true | string |
The rumor
Get rumour details based on rumour ID
Interface address: / ncov/rumor/getRumorDetail
Request mode :GET
Interface description: Queries information about the current rumor based on the ID of the returned data in the rumor interface list.
Request parameters:
The parameter name | Parameters that | in | Whether must | The data type |
---|---|---|---|---|
id | id | query | true | string |
Rumor data list
Interface address: / ncov/rumor/getRumorList
Request mode :GET
Interface description: Get the rumor list data.
Request parameters:
The parameter name | Parameters that | in | Whether must | The data type |
---|---|---|---|---|
page | page | query | true | integer(int32) |
The tail
I have the most free time at home since I graduated from university. I am waiting to return to work because I am free to do some things I like, such as writing codes, boasting, spending time with my family and preparing for the interview. I am sure I will change my job after the epidemic is over. There is light at the end of the tunnel. Come on, Wuhan! Come on China!
Another data for their own climb, so do not guarantee the validity of the data, legitimacy, such as infringement involved, please contact delete, custom properly processed.