Coder Social home page Coder Social logo

omaroid / covid-19-api Goto Github PK

View Code? Open in Web Editor NEW
59.0 4.0 10.0 971 KB

A realtime API for coronavirus cases on Heroku. Data automatically updated every 10 minutes!

Home Page: https://covid19api.herokuapp.com/

License: MIT License

Python 100.00%
heroku flask python api coronavirus ncov recoveries deaths confirmed covid-19

covid-19-api's People

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

Watchers

 avatar  avatar  avatar  avatar

covid-19-api's Issues

additional data filters?

Thanks so much for this. I am going to switch to use this API. Is it ok if I use directly for my simple application?

A question for you: Would it be possible to extend the API to include filter by location (country or province)? If so that would reduce overhead for any users like myself that would like to slice the data down to more specific needs.

So, the endpoint could potentially be:
/confirmed/countrycode
/confirmed/countrycode/province

or something along those lines.

Also, for date: 2020-01-22 preferable to 1/22/20 -but not a big deal.

Thanks again!

Getting Invalid Json format

Getting JSON format issue because of NaN values in some of the latitudes and longitudes. You could do a check before setting value into the latitudes and longitudes as you already have templated it as "nan"

"latest":306385,"province":"Quebec"},{"coordinates":{"latitude":NaN,"longitude":NaN},"country":"Canada",

Screenshot 2021-03-27 at 10 00 15 PM

Upcoming Changes in Time Series

Heads up:

CSSEGISandData/COVID-19#1250

Three new time series tables will be added for the US. The first two will be the confirmed cases and deaths, reported at the county level. The third, number of tests conducted, will be reported at the state level.

Changes to the current time series include the removal of the US state and county-level entries, which will be replaced with a new single country level entry for the US.

By the way - Thanks for this API. It's working well for me. I've refactored my code and it's quite a bit more efficient than before.

Realtime data

Hello, I'm doing real-time license plate detection with flask. But I can't send the detected license plate simultaneously. When the page is refreshed, the last read plate information is displayed to the fields. How can I do this without crawling the page?

Uploading Screenshot from 2022-09-02 11-26-08.png…
@Omaroid

Parse error

SyntaxError: JSON.parse: unexpected character at line 1 column 173620 of the JSON data

...

Parse error on line 1:
.../16/20":0,"3/17/20":NaN,"3/2/20":0,"3/3/
-----------------------^
Expecting 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '[', got 'undefined'

empty cells in the csv?

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.