Skip to content

bolorundurovj/Covid-API

Repository files navigation

Covid19 API

Build Status

Get International Covid-19 data

This api is live Retrieves raw data from John Hopkins University in CSV format, and provides response in JSON

Demo

Check the live API here

💻 Requirements

  • Any Operating System (ie. MacOS X, Linux, Windows)
  • Any IDE with NODE installed on your system
  • A little knowledge of NodeJS
  • Hands to code 🤓
  • A brain to think 🤓

✨ Features

  • Covid19 Data By Country
  • Covid19 Data For All Countries
  • Covid19 Geo Data
  • Covid19 Progression By Country
  • Covid19 Progression For All Countries

Dependencies

Routes V1

  • / || Contains api documentation

  • /all || Get the world total, as well as every country’s data

  • /country/{country} || Get the latest update on each country

  • /timeline/{country} || Get the timeline of daily cases in a specific country from January 2020 to date

  • /timeline/all || Get the timeline of the daily cases for all countries from January 2020 to date

  • /geojson || Get data in GeoJSON format, which is optimised for populating maps

Routes V2

  • / || Contains api documentation

  • /v2/all-countries-stat || Get every country’s data

  • /v2/country-stats/:country || Get the latest update on each country

  • /v2/country-timeline/:country || Get the timeline of daily cases in a specific country from January 2020 to date

  • /v2/all-countries-timeline || Get the timeline of the daily cases for all countries from January 2020 to date

  • /v2/world-stats || Get collated statistics for the whole world

Getting started

2. Clone the repo

$ git clone #
$ cd #

3. Install Dependencies

$ npm install

4. Create .env file and add db URL

$ mongodb://localhost:27017/covidapi

5. Run the application

$ npm start

📸 ScreenShots


❤️ Found this project useful?

If you found this project useful or you like what you see, then please consider giving it a ⭐ on Github and sharing it with your friends via social media.

🐛 Bugs/Request

Encounter any problem(s)? feel free to open an issue. If you feel you could make something better, please raise a ticket on Github and I'll look into it. Pull request are also welcome.