Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New JSON API #851

Open
Omaroid opened this issue Mar 16, 2020 · 11 comments
Open

New JSON API #851

Omaroid opened this issue Mar 16, 2020 · 11 comments

Comments

@Omaroid
Copy link

@Omaroid Omaroid commented Mar 16, 2020

Hello,

Thank you for maintaining this repository, I've created an API for based on your data with automated refresh that I wrote on Python and deployed on Heroku, it's fast, reliable and automatically updated and have also historical data.

https://github.com/Omaroid/Covid-19-API

💉 Try it yourself: 💉

https://covid19api.herokuapp.com/
https://covid19api.herokuapp.com/confirmed
https://covid19api.herokuapp.com/deaths
https://covid19api.herokuapp.com/recovered
https://covid19api.herokuapp.com/latest
https://covid19api.herokuapp.com/updatedAt

I've also created a Java based Android application that use my API available here :
https://github.com/Omaroid/Covid-19-Android

Hope you all like it. The full documentation is on the README
Don't hesitate to ask your questions or propose new features !

@Bost
Copy link

@Bost Bost commented Mar 17, 2020

I added you to my web-services.sh script. Welcome on board.

@keithloise
Copy link

@keithloise keithloise commented Mar 17, 2020

It's not updated.

@Omaroid
Copy link
Author

@Omaroid Omaroid commented Mar 17, 2020

It's not updated.

It's fully automated now, I added a scheduler inside the Flask App that update data every 10 minutes! Hope you'll like it 😁

@lgfunderburk
Copy link

@lgfunderburk lgfunderburk commented Mar 27, 2020

Thank you @Omaroid !
Been playing with this.
Here is a repo with Jupyter Notebooks that uses your API.
Added you in the acknowledgement section :) are there other developers working on it? I could only see you as contributor, but wanted to double check.

@Omaroid
Copy link
Author

@Omaroid Omaroid commented Mar 27, 2020

Glad to know that you are using my API! For your question, I'm the only one contributor haha!

@nicfillion
Copy link

@nicfillion nicfillion commented Apr 16, 2020

Hi @Omaroid ! Thanks for the API. Is it possible it's stopped updating in the last few days?

@Omaroid
Copy link
Author

@Omaroid Omaroid commented Apr 16, 2020

Hi @Omaroid ! Thanks for the API. Is it possible it's stopped updating in the last few days?

Hello @nicfillion , glad to hear that! I'm not sure the API don't return the latest data? For which type of cases or dates did you find an issue? You could also consult the /updatedAt route to see the UTC last update time.

@nicfillion
Copy link

@nicfillion nicfillion commented Apr 16, 2020

Thanks for replying @Omaroid ! I'm fairly new to all this, and I was just writing an easy Python script to convert this in pandas, and then it occurred to me the last few days aren't there. I checked straight from the link: https://covid19api.herokuapp.com/confirmed
Say, if you check , the last time index is "4/9/20" (e.g., for France, Canada, US, etc). Am I missing something obvious? (I hope I'm not making you waste time on something I've done stupidly...)

@Omaroid
Copy link
Author

@Omaroid Omaroid commented Apr 16, 2020

Thanks for replying @Omaroid ! I'm fairly new to all this, and I was just writing an easy Python script to convert this in pandas, and then it occurred to me the last few days aren't there. I checked straight from the link: https://covid19api.herokuapp.com/confirmed
Say, if you check , the last time index is "4/9/20" (e.g., for France, Canada, US, etc). Am I missing something obvious? (I hope I'm not making you waste time on something I've done stupidly...)

Hello @nicfillion! No worries I'm glad to answer your questions! In the history sub-json document, the dates aren't ordered. Also the dates are in a format of MM/DD/YY following the english dates notation system so you could find the latest dates until now "4/15/20". If you have any questions, don't hesitate. I'll add in the next few days some details about the fields format, type and description to ensure everyone can understand the data! Sorry for not specifying that and thanks again for using my API! 😄

@nicfillion
Copy link

@nicfillion nicfillion commented Apr 16, 2020

@Omaroid Thanks so much for the explanation! It all makes sense. Now that you point it out, I should've thought about it. I think I was deceived by the fact that the last few entries are ordered. And indeed, the totals are just right, so I'll reorder it as needed. Merci beaucoup pour le coup de main! :)

@Omaroid
Copy link
Author

@Omaroid Omaroid commented Apr 16, 2020

@Omaroid Thanks so much for the explanation! It all makes sense. Now that you point it out, I should've thought about it. I think I was deceived by the fact that the last few entries are ordered. And indeed, the totals are just right, so I'll reorder it as needed. Merci beaucoup pour le coup de main! :)

Tout le plaisir est pour moi, merci @nicfillion 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
6 participants