Closed skavinvarnan closed 4 years ago
Thanks for the info. We're listing up projects depending on this repo in the Readme. Are you using the this repo to get data for your site?
Regarding the API links you provided,
Thanks for the info. We're listing up projects depending on this repo in the Readme. Are you using the this repo to get data for your site?
Added this to projects.
@JunaidBabu
Not at the moment, if you had seen my website https://covidstat.info you will find a widget for India. Planning to get data from https://api.covid19india.org/data.json
Answering your questions
Quickly ran a loadtest, here are the results. 👇🏻 Loadtest setup
Results
@skavinvarnan humble request - do you mind fixing your World Map to display the correct India map - the one that's acceptable in India and does not exclude PoK from India boundaries? I can understand the reason why you have it the way you have it currently but...
@anuragsetia i used a library to plot the map. Probably that’s how the library works, I will definitely look into it and try overriding. Thanks for your suggestions.
@JunaidBabu Build a sample using GraphQL, going forward i will be improving this, also i will be creating REST API's, you can use it in https://www.covid19india.org/ if needed (Not at the moment, as the queries are still in alpha).
Currently i'm processing https://api.covid19india.org/data.json (only statewise) and https://api.covid19india.org/state_district_wise.json. more to follow
open https://covidstat.info/graphql_india
To get statewise from data.json
query {
all_statewise {
active
confirmed
deaths
deltaconfirmed
}
}
If you need only active on statewise from data.json
query {
all_statewise {
statecode
state
active
}
}
If you need statewise from data.json and also the district information for those states.
query {
all_statewise {
statecode
state
stateobj {
districts {
name
active
confirmed
deltaconfirmed
}
}
}
}
If you need just a specific state information along with districts information
query {
state(statecode: "TN") {
statecode
districts {
name
confirmed
deltaconfirmed
deltadeceased
deltarecovered
}
}
}
On top this you can use all sorts of other features provided by graphql like sorting, filtering, skipping etc...
PS: Do not add this API's and queries on the README, as its still in alpha phase and likely to change. Will let you know once queries are stabilised.
@JunaidBabu do you think this will be helpful for https://www.covid19india.org ? If yes let me know the requirements, i will developer API's or Graphql based on your specifies when i'm working on providing the API's.
I already have developed a website for Covid19 called https://covidstat.info very soon to be open-sourced on Github.
Currently covidstat exposed few API's which i will attach below. Likewise i would like to process https://api.covid19india.org/raw_data.json and https://api.covid19india.org/data.json and provide dynamic queries like (statewise, district wise, town wise). Also i'm planning for graphql queries, so developers can easily filter the data.
@JunaidBabu - Need approval to do that above.
As API's will be exposed under the domain of covidstat.info and not api.covid19india.org.
https://covidstat.info/india/stats https://covidstat.info/india/allStates https://covidstat.info/india/states/{stateName} .... and so on.
Please let me know if this can go on the README document
API's
API's to directly connect and get the data on a JSON format. All Data are updated every 2 mins
Get worldwide numbers
https://covidstat.info/api/all
Get country number
https://covidstat.info/api/countries
Get particular country
https://covidstat.info/api/countries/:countryName
Get historic numbers
https://covidstat.info/api/historic/all
Get particular country
https://covidstat.info/api/historic/:countryName