amodm / api-covid19-in Goto Github PK
View Code? Open in Web Editor NEWCOVID Rest API for India data, using Cloudflare Workers
License: Apache License 2.0
COVID Rest API for India data, using Cloudflare Workers
License: Apache License 2.0
Great Work!!
Can you please enable cors on the server, so I can develop some dashboard with the data provided, want to run it locally
Are the APIs still relevant for Covid-19 2nd Wave and what is the frequency at which it pulls data from Govt Database
is foreign no longer working all data in raw patient is failing
The API - https://api.rootnet.in/covid19-in/stats/history - has the same data for Sept 24th and 25th.
{
"day": "2020-09-24",
"summary": {
"total": 5818570,
"confirmedCasesIndian": 5818522,
"confirmedCasesForeign": 48,
"discharged": 4756164,
"deaths": 92290,
"confirmedButLocationUnidentified": 0
}
{
"day": "2020-09-25",
"summary": {
"total": 5818570,
"confirmedCasesIndian": 5818522,
"confirmedCasesForeign": 48,
"discharged": 4756164,
"deaths": 92290,
"confirmedButLocationUnidentified": 0
}
The regional data accordingly will also be same as summary data is same.
while using this api I got cors issue please resolve it in server side.
Raw Data from 2020-07-28 to 2020-07-31 missing in api https://api.rootnet.in/covid19-in/stats/history . Could you please help me on this one too? Although the test data is now correctly available till 1st August 2020.
Thank you!
lastOriginUpdate Field Missing is missing in below api
https://api.rootnet.in/covid19-in/unofficial/covid19india.org/statewise/history
And
lastRefreshed and lastOriginUpdate have same value in below API all the time
https://api.rootnet.in/covid19-in/unofficial/covid19india.org
I'm not using any maps
hi Thanks,
You actually did a great JOB in plotting those records on map state wise and district wise. Can you please let me how it can be done as we would need this for a different application. We will pay for the same.
Originally posted by @pragatiutrack in #26 (comment)
I pulled the numbers from your API, the overall count is shown as 13835, but in the John Hopkins database, the overall count is 14352. I pulled both numbers at 9.30 PM EST (17th Apr) or 7 AM IST (18th Apr). Can you please let me know the reason for this?
Since https://www.mohfw.gov.in/ has updated their page structure, API isn't fetching any update anymore.
Problem
Using this route, I can see that the data for gender is defaulted to female. This is incorrect as in the patient-db, there are rows that have a blank cell for gender where gender is unknown.
Case in point, patient with ID 2 does not have a gender.
But API response marks the patient as female
Analysis
I can see that while we are fetching the data we are assigning gender as male only by checking the first letter of the cell. (src)
Possible Solution
Gender should be empty in the response, if gender is empty in the patient-db
There is a frequent discrepancy between statewise and national details on MoHFW.
Namely, the top displays total no of confirmed currently. Perhaps the summary could display the top value and the regional data the statewise data.
https://api.rootnet.in/covid19-in/stats/testing/latest
Last update on 12 April.
The data could be calculated from other sources you provided ( Thanks btw ) so it's not really that big a deal.
I am using this API https://api.rootnet.in/covid19-in/unofficial/covid19india.org to get all details. In the response when I iterate in rawPatientData to get all status and their count I get following result:
"MIGRATED":1,"HOSPITALIZED":1068,"DECEASED":18,"RECOVERED":52
This count is not matching with actual count which I see on dashbord.
Thank you
This root api only have 911 patients information
https://api.rootnet.in/covid19-in/unofficial/covid19india.org
The json data is missing for Aug 31 and Sep 2.
Hi
In the API: https://api.rootnet.in/covid19-in/stats/latest, the confirmed count for Delhi is shown as 502, and 1 foreigner. Though the total count on MoHFW at the moment is 503 with no specific details on foreigner count. Same case is with Goa and a few other states. Is the total count for state has to be interpreted as confirmedIndianCases+ForeignCases ? Just confused as MoHFW doesn't seem to provide separate data for the two now.
Can you please also add location data (Latitude and Longitude) along with each state data in https://api.rootnet.in/covid19-in/stats/latest
Here are the location coordinates in order for current data:
[15.9129, 79.74], [25.0961, 85.3131], [21.2787, 81.8661], [28.7041, 77.1025], [22.2587, 71.1924], [29.0588, 76.0856], [31.1048, 77.1734], [15.3173, 75.7139], [10.8505, 76.2711], [22.9734, 78.6569], [19.7515, 75.7139], [20.9517, 85.0985], [11.9416, 79.8083], [31.1471, 75.3412], [27.0238, 74.2179], [11.1271, 78.6569], [18.1124, 79.0193], [30.7333, 76.7794], [34.083656, 74.797371], [34.209515, 77.615112], [26.8467, 80.9462], [30.0668, 79.0193], [22.9868, 87.855]
Another pair of duplicates for 23rd and 24th Oct for https://api.rootnet.in/covid19-in/stats/history. Can we please fix this too?
{
"day": "2020-10-23",
"summary": {
"total": 7814682,
"confirmedCasesIndian": 7814634,
"confirmedCasesForeign": 48,
"discharged": 7016046,
"deaths": 117956,
"confirmedButLocationUnidentified": 0
},
{
"day": "2020-10-24",
"summary": {
"total": 7814682,
"confirmedCasesIndian": 7814634,
"confirmedCasesForeign": 48,
"discharged": 7016046,
"deaths": 117956,
"confirmedButLocationUnidentified": 0
},
This is the API https://api.rootnet.in/covid19-in/unofficial/covid19india.org/statewise/history
Hi
Below API
https://api.rootnet.in/covid19-in/unofficial/covid19india.org/statewise/history
Has data only from 2020-03-24
Needed the data from atleast 2020-03-10
Lab test source data to be 25t march 2020, instead 25th Apr 2020 is written.
{"success":true,"data":{"day":"2020-04-25","totalSamplesTested":22928,"totalIndividualsTested":22038,"totalPositiveCases":539,"source":"ICMR_website_update_25March_10AM_IST.pdf"},"lastRefreshed":"2020-03-29T17:20:03.089Z","lastOriginUpdate":"1970-01-01T00:00:00.000Z"}
The link https://api.rootnet.in/covid19-in/stats/testing/history has data only till 9 April
I have created a front-end website using your API, it can be accessed from this link: https://corona-tracker-2020.netlify.com/ and source code of that project is available here: https://github.com/akashrajum7/corona-tracker.
Thank you.
Not able to fetch the latest/updated data for the below(data available till only 24th June):
Is the updation / refreshing of data manually done ?
24th and 25th Sept
"day": "2020-09-24",
"summary": {
"total": 5818570,
"confirmedCasesIndian": 5818522,
"confirmedCasesForeign": 48,
"discharged": 4756164,
"deaths": 92290,
"confirmedButLocationUnidentified": 0
},
"day": "2020-09-25",
"summary": {
"total": 5818570,
"confirmedCasesIndian": 5818522,
"confirmedCasesForeign": 48,
"discharged": 4756164,
"deaths": 92290,
"confirmedButLocationUnidentified": 0
====================================
1st and 2nd Oct
"day": "2020-10-01",
"summary": {
"total": 6394068,
"confirmedCasesIndian": 6394020,
"confirmedCasesForeign": 48,
"discharged": 5352078,
"deaths": 99773,
"confirmedButLocationUnidentified": 0
"day": "2020-10-02",
"summary": {
"total": 6394068,
"confirmedCasesIndian": 6394020,
"confirmedCasesForeign": 48,
"discharged": 5352078,
"deaths": 99773,
"confirmedButLocationUnidentified": 0
===================================
4th and 5th Oct
"day": "2020-10-04",
"summary": {
"total": 6623815,
"confirmedCasesIndian": 6623767,
"confirmedCasesForeign": 48,
"discharged": 5586703,
"deaths": 102685,
"confirmedButLocationUnidentified": 0
"day": "2020-10-05",
"summary": {
"total": 6623815,
"confirmedCasesIndian": 6623767,
"confirmedCasesForeign": 48,
"discharged": 5586703,
"deaths": 102685,
"confirmedButLocationUnidentified": 0
=================================
7th and 8th Oct
"day": "2020-10-07",
"summary": {
"total": 6835655,
"confirmedCasesIndian": 6835607,
"confirmedCasesForeign": 48,
"discharged": 5827704,
"deaths": 105526,
"confirmedButLocationUnidentified": 0
"day": "2020-10-08",
"summary": {
"total": 6835655,
"confirmedCasesIndian": 6835607,
"confirmedCasesForeign": 48,
"discharged": 5827704,
"deaths": 105526,
"confirmedButLocationUnidentified": 0
==================================
11th and 12th Oct
"day": "2020-10-11",
"summary": {
"total": 7120538,
"confirmedCasesIndian": 7120490,
"confirmedCasesForeign": 48,
"discharged": 6149535,
"deaths": 109150,
"confirmedButLocationUnidentified": 0
"day": "2020-10-12",
"summary": {
"total": 7120538,
"confirmedCasesIndian": 7120490,
"confirmedCasesForeign": 48,
"discharged": 6149535,
"deaths": 109150,
"confirmedButLocationUnidentified": 0
When I hit these URL
https://api.rootnet.in/covid19-in/unofficial/covid19india.org
The response data is empty
"summary":{"total":0},"rawPatientData":[]},"
But till yesterday it was working fine
Can you please check what went wrong.
Can you please let me know which maps you are using please.
Hello,
Look's like data is not updated on this endpoint.
https://api.rootnet.in/covid19-in/unofficial/covid19india.org/statewise
On "covid19india.org" I see 848 new cases while API doesn't return same. please fix.
Thanks
Hi,
The snapshot of unofficial data taken at 16:30hrs on 29/03/2020 seems to be missing the data from the NLP data API. I am assuming this is because of an issue with the NLP API when the snapshot was taken.
Can you confirm?
The API for testing data - Latest/History/Raw aren't updated after 24th July, 2020. Is there any alternative Web API to use instead to collect test related information.
Name of a state in data[9].regional.loc is mentioned as Chattisgarh and same state in data[10].regional.loc is mentioned as Chhattisgarh. Maybe you are scrapping the official health ministry website. Please resolve the issue.
Hi, you have good work here!
I am trying to promote your work, but seems some scrapers like this Awesome List use it, so a better description could help others. Could you change description to something like:
COVID Rest API for India data, using Cloudflare Workers
?
Also, if you want to add an GraphQL endpoint, this repo might be of help; uses apollo-server-cloudflare
https://github.com/COVID19Tracking/covid-tracking-api
I'll add you to my awesome list shortly:
https://github.com/tomByrer/awesome-cloudflare-workers#boss
Thanks for all your hard work!
final summary from this API -https://api.rootnet.in/covid19-in/stats/latest
and current date summary from this API-https://api.rootnet.in/covid19-in/stats/daily
are not equal. I think both should be equal.
As of today, 26 March 2020, the total confirmed cases in this api (https://api.rootnet.in/covid19-in/stats/latest) is 649 and total confirmed cases from this AP (https://api.rootnet.in/covid19-in/stats/daily) is 679.
Another pair of duplicates for 23rd and 24th Oct for https://api.rootnet.in/covid19-in/stats/history. Can we please fix this too?
{
"day": "2020-10-23",
"summary": {
"total": 7814682,
"confirmedCasesIndian": 7814634,
"confirmedCasesForeign": 48,
"discharged": 7016046,
"deaths": 117956,
"confirmedButLocationUnidentified": 0
},
{
"day": "2020-10-24",
"summary": {
"total": 7814682,
"confirmedCasesIndian": 7814634,
"confirmedCasesForeign": 48,
"discharged": 7016046,
"deaths": 117956,
"confirmedButLocationUnidentified": 0
},
API https://api.rootnet.in/covid19-in/stats/history
Last Origin update date is coming as "lastOriginUpdate": "1970-01-01T00:00:00.000Z"
Hi again,
the following APIs are not fetching the latest data.
There is a lag in both summary as well unofficial-summary fetched from covid19india.org. Lat updated time is showing latest time but data is lagging.
{
"success": true,
"data": {
"summary": {
"total": 1287945,
"confirmedCasesIndian": 1287897,
"confirmedCasesForeign": 48,
"discharged": 817209,
"deaths": 30601,
"confirmedButLocationUnidentified": 0
},
"unofficial-summary": [
{
"source": "covid19india.org",
"total": 1239684,
"recovered": 784267,
"deaths": 29890,
"active": 425113
}
],
.
.
.
"lastRefreshed": "2020-07-24T15:54:32.663Z",
"lastOriginUpdate": "2020-07-24T02:30:00.000Z"
}
I guess there might be a lag of a day or more as confirmed cases have a difference of around 1 lakh.
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.