Data APIs to fetch total no. of cases as well as cases on each state of India in real time.
The data is scraped from MoHFW site every 10 minutes.
- Node.js runtime with Express.js
- Puppeteer to scrap data from source
- QuickDB to save and fetch records after scraping.
Base endpoint: https://peaceful-mesa-18231.herokuapp.com/data-service/
This module currently has 2 GET apis:
- getTotalRecords(): GET api to fetch overall India records.
Endpoint: https://peaceful-mesa-18231.herokuapp.com/data-service/totalRecords - getStateRecords(): GET api to fetch statewise records.
Endpoint: https://peaceful-mesa-18231.herokuapp.com/data-service/stateRecords