Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/avencera/covid
Tracking covid, data visualization and API for COVID-19 (novel corona virus)
https://github.com/avencera/covid
countries covid data graphql johns-hopkins-university restapi
Last synced: 13 days ago
JSON representation
Tracking covid, data visualization and API for COVID-19 (novel corona virus)
- Host: GitHub
- URL: https://github.com/avencera/covid
- Owner: avencera
- Created: 2020-03-11T12:47:10.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T09:43:56.000Z (almost 2 years ago)
- Last Synced: 2023-03-03T13:03:08.310Z (over 1 year ago)
- Topics: countries, covid, data, graphql, johns-hopkins-university, restapi
- Language: Elixir
- Homepage: https://trackingcovid.com
- Size: 1.63 MB
- Stars: 7
- Watchers: 1
- Forks: 1
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Covid API
## GraphQL
- **ENDPOINT** `https://api.trackingcovid.com/api/`
- **PLAYGROUND** https://api.trackingcovid.com/api/graphiql
- Root nodes: `[country, countries, region, regions]`
- Example:```graphql
{
regions(names: ["Ontario", "Georgia"]) {
name
days {
cases
date
day
predicted
}
}
countries(names: ["Canada", "US", "Korea, South"]) {
population
name
days {
cases
date
day
predicted
}
}
}
```## REST API
### Countries
- **METHOD**: GET
- **URL**: `https://api.trackingcovid.com/api/countries`
- **RESPONSE**:```json
{"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"
],
...
}
```### By Country
- **METHOD**: GET
- **URL**: `https://api.rackingcovid.com/api/confirmed/`
- ex: https://api.trackingcovid.com/api/confirmed/Canada
- **RESPONSE**```json
{
"country": "Canada",
"cases": [0, 0, 1,...],
"predictions": [0.6292397306678004, 0.6990728897808295, ...],
"prediction_type": "weighted_exponential",
"start": "2020-01-22"
}
```### By Countries
- **METHOD**: GET
- **URL**: `https://api.trackingcovid.com/api/confirmed/?countries=`
- ex: https://api.trackingcovid.com/api/confirmed?countries=Canada,US
- **RESPONSE**```json
{
"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"
}
}
}
```### By Regions
- **METHOD**: GET
- **URL**: `https://api.trackingcovid.com/api/confirmed/?regions=`
- ex: https://api.trackingcovid.com/api/confirmed?regions=Georgia,Ontario
- **RESPONSE**```json
{"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": {}
}
```### By Countries & Regions
- **METHOD**: GET
- **URL**: `https://api.trackingcovid.com/api/confirmed/?countries=®ions=`
- ex: https://api.trackingcovid.com/api/confirmed?regions=Georgia,Ontario&countries=US,Canada,Japan
- **RESPONSE**```json
{
"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"
},
...
}
}
```## Sources
All data from: [Johns Hopkins CSSE](https://github.com/CSSEGISandData/COVID-19)