GithubHelp home page GithubHelp logo

expdev07 / coronavirus-tracker-api Goto Github PK

View Code? Open in Web Editor NEW
1.6K 42.0 323.0 1.17 MB

๐Ÿฆ  A simple and fast (< 200ms) API for tracking the global coronavirus (COVID-19, SARS-CoV-2) outbreak. It's written in python using the ๐Ÿ”ฅ FastAPI framework. Supports multiple sources!

Home Page: https://coronavirus-tracker-api.herokuapp.com

License: GNU General Public License v3.0

Python 98.91% Makefile 0.38% Dockerfile 0.55% Shell 0.09% Procfile 0.07%
api python heroku python3 pip pipenv webapp rest-api coronavirus coronavirus-tracker

coronavirus-tracker-api's Introduction

coronavirus-tracker-api's People

Contributors

abdirahiim avatar allcontributors[bot] avatar benjozork avatar bost avatar bostx avatar carmelag avatar degant avatar egbakou avatar expdev07 avatar gabrields avatar gribok avatar ibhuiyan17 avatar imolein avatar itsksaurabh avatar jaerodyne avatar james-gray avatar jksenthil avatar kamaropoulos avatar kant avatar kilo59 avatar mm-coder avatar o-ba avatar oliver-xapix-io avatar seancena avatar sem1083 avatar turreted avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

coronavirus-tracker-api's Issues

Open Source Helps!

Thanks for your work to help the people in need! Your site has been added! I currently maintain the OpenSourceWuhan 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/OpenSourceWuhan/world

Cheers!

Last 24 hours?

Is it possible to get just the new confirmed cases in the last 24 hours?

A 404 Error

Hi- thank you so much for this! (Context I'm very much a beginner at this, but I thought I'd give it a go)

And I seemed to have followed all the instructions and have gotten everything set up. But since it's my first time I must have made some sort of error because I keep getting a 404.

Here is the exact error "GET / HTTP/1.1" 404 -

Would really appreciate it if you could help! Thanks (:

Add testcases for baseline testing app

Let's add some testcases for unittesting of help function, like date.is_date and integration testcases for api endpoints, like /deaths.

I will try to provide a testsuite for testing of baseline to avoid breaking changes.

Next step could be to setup a Travis CI chain for auto-checking of every PR.
Let me know, if I can help.

Problem with the api

We are currently using this api for an app to track coronavirus, the issue is that the api returns 0 and empty arrays, we want to know if it is something wrong with the server or your updating the directories.

Keep API and format stable and consider adding Time Updated

First off, thanks for creating this API! It's very useful.

As I believe many people are now using this, I hope you keep the API and format stable, i.e. no breaking changes, such as changing the format of the dates, etc.

If you do see a need to make a breaking change, please consider adding separate endpoint URIs, such as with a version in the path or something.

Also, as a non-breaking change, is it possible to add a a top-level field to note the time the data was updated / processed in ISO format? Perhaps like this:

{
"confirmed": ...
"deaths": ...
"latest": ...
"recovered": ...
"source": ...
"updated": "2020-03-06T10:38:20.577Z"
}

Thanks again!

Incorrect US Data

Seems like this is likely on Johns Hopkins side but I'm seeing inconsistencies in day-to-day data for the U.S. It looks like maybe they've decided to aggregate by state now in addition to by county and some of the original county data was left in. For example, "Washington" had 0 cases on 3/9/2020 but has 267 listed on 3/10/2020. However, there is still data from counties within Washington being counted. That leads to double counting in some scenarios -- the 3/10/2020 count of confirmed cases in the US comes out to 1,670 using these new numbers which is off by quite a bit.

Doubt there's anything you can do here but thought I'd bring it to your attention.

Attaching a sheet I made that shows the largest discrepancies.

JHU Data Errors.xlsx

Adding country codes

Would you be interested in adding ISO_3166-1 alpha-2 or alpha-3 country codes? E.g. extending:

"coordinates" : "{...}"
"country"  "Mainland China"
"history" : "{...}"
"latest" : 990
"province" : "Anhui"

by

"alpha-2 code" : "CN" 
"alpha-3 code" : "CHN" 

My telegram bot https://t.me/corona_cases_bot needs it, and I consider what is better - implemented in mine or your project?

possible new problem with Country Codes

I just noticed it this morning: 2020-03-11 14:14

It looks like some of the country_code fields are now set to "XX" . The reason I noticed it now, is that Iran is set to "XX". I'm pretty sure it was correctly set to "IR" yesterday.

I can remap it locally in my code, I just wanted to give you a "heads up".

Thanks again for everything!

Country codes changed

Looks like the country codes changed at some point - Ontario was 148 when I first tested, but now that is Pierce, WI and Ontario is 94.

date format in history

Thank you for your software and service.

May I suggest to use the ISO 8601 date format (yyyy-mm-dd) in the key string of history. While parsing the current format not a big deal using the the ISO standard has some benefits. I am sure your current and potential users are from all over the word. Using the ISO format the interpretation of the response of your service would be easier for everyone.

During conversion into the ISO format you might be able to do some error checking since as the country names show your data source is far form stable for obvious reasons.

Yes, I am aware of the complain about the recent change in history. Despite of that I still suggest the ISO date format while you are at the cleaning up the history array.

Getting results by country

I'm trying to use the API on an embedded device without enough RAM to hold the entire result and filter it. Is it possible to add an option to only get stats for a specific country or other filtering options?

API not updating

I spent some time to build a visualization with your API. However for today it still shows 0 increase in Italy and in other countries. Are you guys aware of any issue?

Can the API return a fatten list of data?

I am using the this API, and it's great! Thank again.
However is it possible to have another endpoint of all combined Confirmed, Recovered and Deaths in a single object sort by country, it seem that JSON we got now is getting a bit big now, and country , coordinates, province, info are duplicated, a combined data may save a bit of download time. For example a endpoint like: /all_fattened

{
locations
--coordinates
--country
--province
--confirmed
----latest
----history
--deaths
----latest
----history
--recovered
----latest
----history
}

thanks!!

Incorrect country_codes

I have noticed, that two digit country codes (country_code) for some countries are not correct, api is returning XX instead of actual country code. Example countries Iran, South Korea etc.

Integrity checks

The JHU CSSE screw it up again so I guess we need to implement some integrity check against broken input.

Values for March 12 are duplicates of March 11 for certain countries

I haven't gone through all of the data yet, but I can confirm that for Italy: The values for March 12 are the same as March 11, for all three metrics: confirmed, deaths, recovered.

For Spain, the same is true for confirmed and recovered, but for deaths the value on March 12th is 55, which is one more than March 11th (54), but 55 is incorrect for March 12th, the correct value should be somewhere around 84.

I assume this is due to more changes from the JHU team. But the weird value for Spanish deaths (55 vs 84) is harder to explain. Perhaps the JHU data has some manually entered data and it was just an entry error?

Anyway, thanks again for all the work you have done on this tracker!

Change in data source

There's been a change in the data source folder naming. Because of that the latest updated date in history is 3/9/20.

Use ISO 8601 for formatting dates in API calls

Iโ€™ve noticed that you use the American date time format MM/DD/YY for the dates returned in the API calls despite you using iso formatted dates in parts of your source code. Could we make this API a lot more robust and stick to a sensible date time format such as ISO 8601, to avoid guess work.

Add synonym for countrycode DE

The countrycode DE represents the countryname Germany.
A synonym for countryname Germany is Deutschland (german term)

Long in location

The long variable cant be used in java as an identifier because its a keyword. Please change it to lng.

Date sorting

Hey, want to check if 2/11/20 and 2/12/20 appearing before 2/2/20 is intended

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.