nat236919 / covid19-api Goto Github PK
View Code? Open in Web Editor NEWAPI for exploring COVID-19 cases around the globe
Home Page: https://nuttaphat.com/covid19-api/
License: MIT License
API for exploring COVID-19 cases around the globe
Home Page: https://nuttaphat.com/covid19-api/
License: MIT License
Acquire 'csse_covid_19_daily_reports_us', and merge the USA data with 'daily report' model. The reason for doing such is because currently USA data in a daily report is NOT accurately presented (e.g., recovered, etc.)
The time series API seems to return data for individual countries and provinces. Does it contain timeseries data for the world as a whole?
I do apologize if its already there. I couldnt locate it in the results.
Not getting states numbers from the time series API since yesterday.
Ex.) South Korea
This will show an error when using
https://corona-api.herokuapp.com/country/south korea
The function seems to not work well, for example, if it doesn't found any info, it will yield all the data which is not intended.
API versioning would be a great idea to ensure backwards compatibility.
Is your feature request related to a problem? Please describe.
Add ResponseModel to router instead of using it in integrator for better maintenance.
There was a sudden inconsistent on the date format which causes an error on a timestamp convertor function.
It seems the data has not been correct for a few days now, in the UK deaths have been greater than 100 for two days and I believe higher than the 72 shown for longer.
This endpoint https://covid2019-api.herokuapp.com/v2/current shows UK deaths as 72 yet our government and the Johns Hopkins app states our deaths is 138, and 105 yesterday as can be seen here https://coronavirus.jhu.edu/map.html
Is there a way to get info of a City or Provence
EG: Los Angeles,
EG California
This would be great critical information to have access to.
Describe the bug
There must be something wrong with the /recovered
endpoint, it always returns 0.
The recent data has unfortunate empty values; therefore, it causes an internal error
Describe the bug
When the project was refactored (integrators implemented) the tests used in the test folder with pytest broke since the file paths are different. V2 and V1 both break.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
After running pytest you will see errors from incorrect imports of the models and utils folder and integrator instance name is different from the older version.
Screenshots
Additional context
I will update the file paths and make a PR, but their will need to be added testing implemented for each method if you are wishing to verify the correct model used for each method in the integrator file.
The request https://covid2019-api.herokuapp.com/v2/current
and https://covid2019-api.herokuapp.com/current
return data of 3/23/20 and today is 25 :(
It seems that there is some missing data in the timeseries (confirmed, deaths, recovered) JSON files. For countries like Belgium there currently were no new cases on the 12th of March according to the data, but this is not correct.
For example : Country/Region value for south Korea in the timeseries API is
"Country/Region":"Korea,_South"
In the current API, the location is
"location":"Korea, South" (without underscore and with a space)
Can we use consistent naming of countries across all the APIs?
As stated from the issue above, this repo may need to modify how data is gathered and extracted. Please be informed that Timeseires: Recovered will have NO updated data soon.
I will be working on this to see what I can do about it. However, it might take some time since I work full-time.
Thank you for your understanding.
Is your feature request related to a problem? Please describe.
Due to travis-ci.org has ceased its services, CI/CD tests must move to travis-ci.com
ref: https://docs.travis-ci.com/user/migrate/open-source-repository-migration
Does it restricted by CORS?
This v1 is more updated compare to v2:
https://covid2019-api.herokuapp.com/current_list
v2:
https://covid2019-api.herokuapp.com/v2/current
Can you fix that? Thank you so much.
Create and Update test cases using pytest
i should do order data when get current data order to confirmed
Due to a large amount of data in terms of its quantity and calculation, time-series data handling process should be improved in order to prevent memory insufficiency.
Ex.) url/country/<coutry_name/code>
Reload a new model every time a request is received
Examples:
Can you add Location(Lat/Lng) of Countries/States and also Country Codes?
Thank you!
Countries Model Object would be better to support JSON libraries such as : Gson, Moshi, etc.
{
"name":"Mainland China"
"confirmed": 80026,
"deaths": 2912,
"recovered": 44810
}
Is your feature request related to a problem? Please describe.
The current approach is a combination of model and business logic which might be inappropriate styles
Describe the solution you'd like
Create Models and Integrators (business logic) separately, the benefits are as follows:
Progress
Data does not match
"confirmed": 64422,
"deaths": 1491,
"recovered": 7064,
Dashbord:
64458
1384
7166
Please update your api more often.
This is the v1: https://covid2019-api.herokuapp.com/country/kr
Description: Search a country by an [ISO country code (alpha2)]
Can you make a v2?
Like, https://covid2019-api.herokuapp.com/v2/country/kr
Thank you!
Improve the presentation of README.md (especially, How to Use) in order to make it clearer for readability.
I would like to change the name of APIv1's model from NovelCoronaAPIv1 to CovidAPIv1 to make it consistent with APIv2.
Tasks
Example:
novel_corona_api = NovelCoronaAPIv1()
COVID_API_V1 = CovidAPIv1() # new - global scope
Even in here there's no update for yesterday's data (52 new cases for yesterday worldwide).
Anything that you can do about this or is it the original data source that's faulty here?
Cheers!
Error on jSON pages
"Internal Server Error"
Ex.) " Azerbaijan" -> "_Azerbaijan"
First of all: Thank you sooo much for this API!!!
Could you please also serve the data from the past so we can verify our own data, make prediction graphs etc.? E.g. something like https://corona-api.herokuapp.com/<unix-timestamp>
returns the data with that unix-timestamp.
Oh, BTW you may also put note in the README.md about the ts
, e.g. that your data comes with a unix-timestamp "ts":1581313691.605966
Thank you in advance.
Edit: I just found out the ts
timestamp is provided only by the https://corona-api.herokuapp.com/current
and is missing in the other three services. Could you fix that please? Thanks.
Hi, is it possible that the timeseries api gives back an array of dates instead of each date indivudally?
https://covid2019-api.herokuapp.com/timeseries/confirmed
https://covid2019-api.herokuapp.com/timeseries/deaths
https://covid2019-api.herokuapp.com/timeseries/recovered
Is your feature request related to a problem? Please describe.
websockets and urllib3 need to be updated due to security vulnerabilities
Describe the solution you'd like
Update all dependencies
When calling CR for Costa_Rica it returns
"{"South_Africa":{"confirmed":62,"deaths":0,"recovered":0},"Costa_Rica":{"confirmed":41,"deaths":0,"recovered":0},"Central_African_Republic":{"confirmed":1,"deaths":0,"recovered":0},"dt":"3/17/20","ts":1584403200.0}"
Thanks for your work to help the people in need! Your site has been added! I currently maintain the Open-Source-COVID-19 page, which collects all open source projects related to COVID-19, including maps, data, news, api, analysis, medical and supply information, etc. Please share to anyone who might need the information in the list, or will possibly contribute to some of those projects. You are also welcome to recommend more projects.
https://weileizeng.github.io/Open-Source-COVID-19/
Cheers!
The time series objects like Confirmed cases, Deaths and recovered are all invalid json. Reasoning behind is that the supposed json contains an extra } at the very end.
Request https://covid2019-api.herokuapp.com/v2/current
before the update it returned The Gambia, now it returns "Gambia, The"
this is correct?
I inform about this problem because I match the data of this api with a json of latitudes and longitudes by the field location.
Thank @nat236919 (:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.