Skip to content

Provides latest country-wise data from CSSEGISandData/COVID-19 all compiled into a JSON file.

License

Notifications You must be signed in to change notification settings

jerilMJ/covid19-compiled

Repository files navigation

covid19-compiled

last updated badge

Provides:

  • latest (only) country-wise data
  • data ordered (by confirmed cases)
  • worldwide reports for all available dates from CSSEGISandData/COVID-19 all compiled into a JSON file. Heavily inspired by this project.

The data is available at https://jerilmj.github.io/covid19-compiled/reports.json and https://jerilmj.github.io/covid19-compiled/ordered.json For the list of available countries, check: https://jerilmj.github.io/covid19-compiled/countries.json

Sample json response:

reports.json

"JPN": {
  "name": "Japan",
  "date": "2020-04-19",
  "confirmed": 10797,
  "confirmed_diff": 501,
  "recovered": 1159,
  "recovered_diff": 90,
  "deaths": 236,
  "deaths_diff": 14,
  "fatality_rate": 0.0219,
  "coordinates": {
    "lat": 36,
    "long": 138
  },
  "area": 377930
},

NOTE: Area is in km²

ordered.json

"2020-05-14": [
  {
    "iso": "USA",
    "confirmed": 1417774
  },
  {
    "iso": "RUS",
    "confirmed": 252245
  },
  {
    "iso": "GBR",
    "confirmed": 234440
  },
  ...
]

worldwide.json

  "2020-05-18": {
    "date": "2020-05-18",
    "last_update": "2020-05-19 02:32:18",
    "confirmed": 4801943,
    "confirmed_diff": 88323,
    "deaths": 318481,
    "deaths_diff": 3296,
    "recovered": 1786875,
    "recovered_diff": 52912,
    "active": 2696587,
    "active_diff": 32115,
    "fatality_rate": 0.0663
  },
  ...

Example Usage

JS
fetch("https://jerilmj.github.io/covid19-compiled/reports.json")
  .then((response) => response.json())
  .then((reports) => {
    console.log(reports.JPN);
  });
Dart
http.get("https://jerilmj.github.io/covid19-compiled/reports.json")
  .then((response) {
    if (response.statusCode == 200) {
      print(json.decode(response.body)['JPN']);
    }
  });

Projects using this dataset (+ add yours)

Click on a row to expand the content and read the description of a project.

Adding your project to the list

Pull requests adding more projects to this list are welcome, just a few rules:

  • Add only open source projects
  • Make sure the project cites this repo as a data source (with a link)
  • Try not to add extra blank lines, it breaks the formatting
  • Follow the same order as the rest of the list
<details>
  <summary><a href=<project_link>>Someone's Project</a> <a href="repo_link">(repo)</a></summary>

Project description goes here (some styling is allowed but keep it minimal)
</details>

Pull Request TemplateAdd a new project to the list

  • Make the necessary edits and issue a pull request. I'll assess it and merge it.

License

The code from this repo is MIT licensed.
The data is under CSSEGISandData/COVID-19 terms of use.

About

Provides latest country-wise data from CSSEGISandData/COVID-19 all compiled into a JSON file.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •