All Projects β†’ wobsoriano β†’ Coronavirus Ph Api

wobsoriano / Coronavirus Ph Api

Licence: mit
🦠 An API for tracking the coronavirus (COVID-19, SARS-CoV-2) outbreak in the Philippines.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Coronavirus Ph Api

Next Go
Production ready blog + boilerplate for Next.js 3.X
Stars: ✭ 254 (+257.75%)
Mutual labels:  zeit, express
Mean Stack Angular6 Crud Example
MEAN Stack Angular 6 CRUD Web Application
Stars: ✭ 69 (-2.82%)
Mutual labels:  express
Muster
A universal data layer for components and services
Stars: ✭ 59 (-16.9%)
Mutual labels:  express
Thinkdiff
My open source project links, programming and software development related code and tutorials are in this repo. Content types: Python, JavaScript, Dart | Django, React, Flutter, React-Native etc.
Stars: ✭ 65 (-8.45%)
Mutual labels:  express
Webauthn
W3C Web Authentication API Relying Party for Node.js and Express
Stars: ✭ 61 (-14.08%)
Mutual labels:  express
Flowa
πŸ”₯Service level control flow for Node.js
Stars: ✭ 66 (-7.04%)
Mutual labels:  express
Http Proxy Middleware
⚑ The one-liner node.js http-proxy middleware for connect, express and browser-sync
Stars: ✭ 8,730 (+12195.77%)
Mutual labels:  express
The forge
Our groundbreaking, lightning fast PWA CLI tool
Stars: ✭ 70 (-1.41%)
Mutual labels:  express
Auth0 Express Api Samples
Auth0 Integration Samples for Node Express REST API Services
Stars: ✭ 68 (-4.23%)
Mutual labels:  express
Express Sequelize Crud
Simply expose resource CRUD (Create Read Update Delete) routes for Express & Sequelize. Compatible with React Admin Simple Rest Data Provider
Stars: ✭ 65 (-8.45%)
Mutual labels:  express
Bitnami Docker Express
Bitnami Express Docker Compose development environment
Stars: ✭ 63 (-11.27%)
Mutual labels:  express
Scandium
πŸš€ Easily deploy any Node.js web server to AWS Lambda
Stars: ✭ 61 (-14.08%)
Mutual labels:  express
Habitica
A habit tracker app which treats your goals like a Role Playing Game.
Stars: ✭ 8,702 (+12156.34%)
Mutual labels:  express
Mern Stack Authentication
Secure MERN Stack CRUD Web Application using Passport.js Authentication
Stars: ✭ 60 (-15.49%)
Mutual labels:  express
Trafficlight
🚦 Flexible NodeJS Routing Decorators for API Routing
Stars: ✭ 69 (-2.82%)
Mutual labels:  express
Winds
A Beautiful Open Source RSS & Podcast App Powered by Getstream.io
Stars: ✭ 8,530 (+11914.08%)
Mutual labels:  express
Placekeanu.com
For when you need a little more Keanu in your life
Stars: ✭ 63 (-11.27%)
Mutual labels:  express
Express Workshop
Workshop on Node.js basics with Express. https://nodegirls.com
Stars: ✭ 65 (-8.45%)
Mutual labels:  express
Express Joi Validation
validate express application inputs and parameters using joi
Stars: ✭ 70 (-1.41%)
Mutual labels:  express
Nodetyped
Node.js Express Startup Seed with ES6, Typescript, SCSS, EJS, Nodemon, Bootstrap 4, TSLint, TypeDoc
Stars: ✭ 69 (-2.82%)
Mutual labels:  express

🚨 DISCONTINUED and unmaintained 🚨

In unforeseen circumstances, the number of cases in the country has grown and the main source has not been updated. The APIs will stop working on August 7, 2020.

coronavirus-ph (API)

🦠 An API for tracking the coronavirus (COVID-19, SARS-CoV-2) outbreak in the Philippines.

GitHub GitHub repo size GitHub stars GitHub forks GitHub last commit

Endpoints

All requests must be made to the base url: https://coronavirus-ph-api.herokuapp.com (e.g: https://coronavirus-ph-api.herokuapp.com/cases). You can try them out in your browser to further inspect responses.

Getting total cases:

GET /total
{
	"cases": 6459,
	"deaths": 428,
	"recoveries": 613,
	"cases_today": 200,
	"deaths_today": 19,
	"recoveries_today": 41,
	"admitted": 5418,
	"fatality_rate": "6.63%",
	"recovery_rate": "9.49%"
}

Getting summary of COVID-19 cases in the Philippines (DOH Data Drop):

GET /doh-data-drop
Key Description
page Page number. This activates the pagination. Returns all cases without it
itemsPerPage Number of cases per page.
[
  {
    "case_code": "C404174",
    "age": 38,
    "sex": "F",
    "is_admitted": "",
    "date_reported": "2020-01-30",
    "date_died": "",
    "recovered_on": "2020-02-08",
    "region_res": "Negros Oriental",
    "prov_city_res": "Dumaguete City (Capital)",
    "location": "Dumaguete City (Capital), Negros Oriental",
    "latitude": 9.3061758,
    "longitude": 123.3046069
  },
  {...}
]

Getting summary of COVID-19 cases in the Philippines:

GET /cases
Key Description
page Page number. This activates the pagination. Returns all cases without it
itemsPerPage Number of cases per page.
[
  {
    "case_no": "PH00001",
    "sex": "F",
    "age": 38,
    "nationality": "Chinese",
    "residence_in_the_ph": "None",
    "travel_history": "China",
    "date_of_announcement_to_public": "2020-01-30",
    "hospital_admitted_to": "San Lazaro Hospital",
    "status": "Recovered",
    "health_status": "Recovered",
    "location": "Manila City",
    "latitude": 14.61348,
    "longitude": 120.98095,
    "residence_lat": 14.5987266,
    "residence_long": 120.9819909
  },
  {...}
]

Getting confirmed cases of Filipino nationals outside the Philippines by Region:

GET /cases-outside-ph
[
  {
    "country_territory_place": "Asia-Pacific",
    "confirmed": 272,
    "recovered": 111,
    "died": 160
  },
  {...}
]

Getting list of facitilies

GET /facilities
[
  {
    "facility": "Research Institute for Tropical Medicine",
    "puis": 24,
    "confirmed_cases": 9,
    "region": "NCR",
    "latitude": 14.4096347,
    "longitude": 121.0374245
  },
  {...}
]

Getting Metro Manila Community Quarantine Checkpoints:

GET /mm-checkpoints
[
  {
    "id": 13,
    "district": "NORTHERN POLICE DISTRICT",
    "city": "VALENZUELA CITY",
    "location": "NLEX (ENTRANCE)",
    "type": "EntryExit",
    "lat": 14.768614,
    "lng": 120.967557,
    "description": "Not verified"
  },
  {...}
]

Getting a single Metro Manila Community Quarantine Checkpoint:

GET /mm-checkpoints/:id
{
	"id": 13,
	"district": "NORTHERN POLICE DISTRICT",
	"city": "VALENZUELA CITY",
	"location": "NLEX (ENTRANCE)",
	"type": "EntryExit",
	"lat": 14.768614,
	"lng": 120.967557,
	"description": "Not verified"
}

Data

All data are programmatically retrieved, re-formatted and stored in the cache for one hour.

Installation

  • git clone https://github.com/sorxrob/coronavirus-ph-api.git
  • cd coronavirus-ph-api
  • cp .env.example .env
  • npm install
  • npm start

Running / Development

License & copyright

Β© Robert C Soriano

Licensed under the MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].