- ENDPOINT
https://api.trackingcovid.com/api/
- PLAYGROUND https://api.trackingcovid.com/api/graphiql
- Root nodes:
[country, countries, region, regions]
- Example:
{
regions(names: ["Ontario", "Georgia"]) {
name
days {
cases
date
day
predicted
}
}
countries(names: ["Canada", "US", "Korea, South"]) {
population
name
days {
cases
date
day
predicted
}
}
}
- METHOD: GET
- URL:
https://api.trackingcovid.com/api/countries
- RESPONSE:
{"Georgia": {"regions": [], population: xxxxxx},
"Latvia": {"regions": [], population: xxxxxx},
"Jamaica": {"regions": [], population: xxxxx},
"Poland": {"regions": [], population: xxxxxxx},
"Canada": {
"population": 37590000
"regions": [
"British Columbia",
"Ontario",
"Alberta",
"Quebec",
"New Brunswick",
"Manitoba",
"Saskatchewan",
"Grand Princess"
],
...
}
- METHOD: GET
- URL:
https://api.rackingcovid.com/api/confirmed/<country>
- RESPONSE
{
"country": "Canada",
"cases": [0, 0, 1,...],
"predictions": [0.6292397306678004, 0.6990728897808295, ...],
"prediction_type": "weighted_exponential",
"start": "2020-01-22"
}
- METHOD: GET
- URL:
https://api.trackingcovid.com/api/confirmed/?countries=<countries>
- RESPONSE
{
"regions": {},
"countries": {
"Canada": {
"cases": [
0,
0,
1,
...
],
"predictions": [
0.6292397306678004,
0.6990728897808295,
...
],
"prediction_type": "weighted_exponential",
"country": "Canada",
"start": "2020-01-22"
},
"US": {
"country": "US",
"cases": [
0,
0,
1,
...
],
"predictions": [
0.1602764754993061,
0.19285269106150466,
...
],
"prediction_type": "weighted_exponential",
"start": "2020-01-22"
}
}
}
- METHOD: GET
- URL:
https://api.trackingcovid.com/api/confirmed/?regions=<regions>
- ex: https://api.trackingcovid.com/api/confirmed?regions=Georgia,Ontario
- RESPONSE
{"regions":
{"Ontario": {
"cases": [0, 0, 1,...],
"predictions": [0.6292397306678004, 0.6990728897808295, ...],
"prediction_type": "weighted_exponential",
"region": "Ontario",
"start": "2020-01-22"
},
"Georgia": {
"region": "Georgia",
"cases": [0, 0, 1,...],
"predictions": [0.1602764754993061, 0.19285269106150466, ...],
"prediction_type": "weighted_exponential",
"start": "2020-01-22"
},
},
"countries": {}
}
- METHOD: GET
- URL:
https://api.trackingcovid.com/api/confirmed/?countries=<countries>®ions=<regions>
- ex: https://api.trackingcovid.com/api/confirmed?regions=Georgia,Ontario&countries=US,Canada,Japan
- RESPONSE
{
"regions": {
"Ontario": {
"cases": [
0,
0,
1,
...
],
"predictions": [
0.6292397306678004,
0.6990728897808295,
...
],
"prediction_type": "weighted_exponential",
"region": "Ontario",
"start": "2020-01-22"
},
"Georgia": {
"region": "Georgia",
"cases": [
0,
0,
1,
...
],
"predictions": [
0.1602764754993061,
0.19285269106150466,
...
],
"prediction_type": "weighted_exponential",
"start": "2020-01-22"
}
},
"countries": {
"Canada": {
"cases": [
0,
0,
1,
...
],
"predictions": [
0.6292397306678004,
0.6990728897808295,
...
],
"prediction_type": "weighted_exponential",
"country": "Canada",
"start": "2020-01-22"
},
"US": {
"country": "US",
"cases": [
0,
0,
1,
...
],
"predictions": [
0.1602764754993061,
0.19285269106150466,
...
],
"prediction_type": "weighted_exponential",
"start": "2020-01-22"
},
...
}
}
All data from: Johns Hopkins CSSE