GabrielTavernini / Covid19Stats

A simple mobile app developed with Flutter to visualize Covid19 statistics 🦠
GNU General Public License v3.0
144 stars 38 forks source link

Open source REST API #3

Closed JonnyTech closed 4 years ago

JonnyTech commented 4 years ago

@GabrielTavernini you mentioned finding an alternative data source for this app. Recently I tested CoronaTab for another project. It uses JHU data which made it ideal for me. Maybe it is suitable for your needs. If not then state what is required so something can be found.

GabrielTavernini commented 4 years ago

I haven't been able to test the endpoints because right now both the APIs and the website seem to be unreachable. Despite that, I was able to take a look at the documentation and it looks pretty solid but some data is missing (like testing data, per Mln data, etc...).

What's required: I'm looking for a simple and open API that has all the data that's currently being used in the app.

JonnyTech commented 4 years ago

Maybe you missed this:

We have Origin CORS policies set to only allow coronatab.app domain, so you won't be able to access our API directly from any site, therefore we encourage you to fetch the data and store it on your server, or another option is to setup a Reverse proxy.

Use the Corona Data Scraper to pull the data (ie CSV or JSON), you will see that for each country it lists population so it is trivial to calculate 'per million' values. There is also 'tested' data - although not all countries report this.

Anyway, I shall take another look later.

GabrielTavernini commented 4 years ago

I did see that but at the moment even the website coronatab.app appears to be unreachable.

I took a brief look at one of Corona Data Scraper's JSON files and it appears to be exactly what the app needs. Unfortunately, I don't have much time right now due to school exams and college applications but as soon as I find some time I'll try to modify the app to use CDS as its data source.

GabrielTavernini commented 4 years ago

I'm now closing this issue because no viable open-source API has been found in more than 4 months. If anyone finds a possible solution feel free to comment and I'll be happy to take a look.