Code Monkey home page Code Monkey logo

api-covid19-in's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

api-covid19-in's Issues

Maps

Can you please let me know which maps you are using please.

Pair of Duplicates for 23rd and 24th Oct in covid19-stats API

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
},

CORS error

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

In the unofficial patient tracking data API, gender is defaulted to "female"

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.

patientdb

But API response marks the patient as female

OnPaste 20200407-121252

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

API data not updated.

Hi again,

the following APIs are not fetching the latest data.

  1. https://api.rootnet.in/covid19-in/stats/latest

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"
}

  1. https://api.rootnet.in/covid19-in/stats/testing/history (no new entries after 22nd July)

I guess there might be a lag of a day or more as confirmed cases have a difference of around 1 lakh.

Thanks

Mismatch in Numbers

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?

Interpretation of statewise count in latest API

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.

maps info please

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)

Discrepancy in stats/latest count when # is added to total count

Hi

Right now, the total count on MoHFW is 1251 (screenshot attached) while that from API is 1205 (screenshot attached). I have noticed this behaviour when a # is added by MoHFW to the table. Can we handle it ? I have noticed that they mostly use # to indicate unassigned cases to state.

image

image

New pair of duplicates for Oct 23 and 24 on COVID19 India stats history API

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
},

CORS ISSUE

while using this api I got cors issue please resolve it in server side.

Change in MoHFW table structure and null values

The total summary (official) is showing null values. The error seems to be due to change in MoHFW table with cases being transferred among states (230 as of now which appears as a state in the api output).
Screenshot_20200516-105004

description + GraphQL

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!

COVID19 Stats History Data same for Sept 24th and Sept 25th

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.

Lab testing source date wrong

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"}

Is it possible to send location data along with each state data?

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]

Duplicate Data for few dates in Sept and Oct

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

Null deaths and recovered in daily api

The daily API is returning null for deaths and recovered on 16 May. This is caused due to an earlier issue caused by change in table structure of MoHFW. The state with loc:230 is causing this.

Screenshot_20200517-110355

Consistency in state naming

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.