https://github.com/ritwickdey/covid-19-india-golang
COVID-19 India (Golang/Backend) | Refined stats from COVID-19 Official Website
https://github.com/ritwickdey/covid-19-india-golang
coronavirus covid-19 covid19-india india
Last synced: 3 days ago
JSON representation
COVID-19 India (Golang/Backend) | Refined stats from COVID-19 Official Website
- Host: GitHub
- URL: https://github.com/ritwickdey/covid-19-india-golang
- Owner: ritwickdey
- License: mit
- Created: 2020-04-04T15:01:36.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-07-31T18:44:02.000Z (almost 5 years ago)
- Last Synced: 2023-03-01T15:51:15.260Z (about 2 years ago)
- Topics: coronavirus, covid-19, covid19-india, india
- Language: Go
- Homepage: https://novelcoronaindia.info/
- Size: 87.9 KB
- Stars: 9
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
## COVID-19 India (Server - Golang)
Refined Stats From COVID-19 Official Website
`Data is periodontally collected from Official Website`
#### API Server:
`https://api.novelcoronaindia.info`
#### API Endpoints:
1. `GET /covid19/all`
2. `GET /covid19/date/{date}`
3. `GET /covid19/dateRange/{startDate}/{endDate}`
4. `GET /covid19/formattedData` (Optional query parameter: `startDate` and `endDate`).- `/covid19/formattedData?startDate=15-05-2020` (Optional endDate. Default: `Today`)
- `/covid19/formattedData?endDate=21-05-2020` (Optional startDate. Default: `03-04-2020`)
- `/covid19/formattedData?startDate=15-05-2020&endDate=21-05-2020`
- Sample Response```js
{
"data": [
{
"date": "21-05-2020",
"confirmed": 1000,
"recovered": 500,
"death": 5,
"active": 495,
"stateWise": [
{
"stateName": "West Bengal",
"confirmed": 500,
"recovered": 200,
"death": 1,
"active": 299,
},
// more state data
],
},
// more date wise data
];
}
```Note:
1. Accepted date format: `DD-MM-YYYY` (eg. `18-04-2020`)
2. Data available from `03-04-2020`Frontend Code: https://github.com/ritwickdey/covid-19-india-react
## Incidents
- `30-05-2020`
- What?
- Wrong `CONFIRMED` & `ACTIVE` case data for `30-05-2020`. I added an avg value for `30-05-2020`.
- Why?
- HTML of mohfw.gov.in was changed[MIT Licence](./LICENCE)