You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-10Lines changed: 9 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
# COVID-19 API
2
-
Ultra simple REST API for apps which neeeds COVID-19. Code is in very early stage, so feel free to open issues or create pull requests. Available here: `https://covid-19-data.herokuapp.com/`
2
+
Ultra simple REST API for apps which neeeds COVID-19. Code is in very early stage, so feel free to open issues or create pull requests. Available here: `https://covid-19-data.herokuapp.com/`
3
3
4
4
## Country codes
5
5
@@ -14,15 +14,15 @@ API uses [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3)
14
14
15
15
### Version 1.1.0 changes
16
16
17
-
Before update Diamond Princess and Channel Islands was identified as DP and CI. Update 1.1.0 uses Alpha-3 user-assigned codes, as pointed in Issue #1. However, due to compability reasons, DP and CI code will work correctly, so there is no need to change code based on this API.
17
+
Before update Diamond Princess and Channel Islands was identified as DP and CI. Update 1.1.0 uses Alpha-3 user-assigned codes, as pointed in Issue #1. However, due to compatibility reasons, DP and CI code will work correctly, so there is no need to change code based on this API.
18
18
19
19
## Endpoints
20
20
21
21
All paths starts with `/api` .
22
22
23
23
### Cases
24
24
25
-
#### `/api/cases/global`
25
+
#### `/api/cases/global`
26
26
Returns full information about all countries. Data should be sorted, but it's not guaranteed. If there is no informations about country stats, key for country doesnt exist. All countries accessible using [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3)
27
27
28
28
Example response:
@@ -37,7 +37,7 @@ Example response:
37
37
"deaths":1,
38
38
"recovered":0,
39
39
"mortalityRate":0.0147,
40
-
"revoveryRate":0
40
+
"recoveryRate":0
41
41
},
42
42
"name":"Poland"
43
43
},
@@ -48,7 +48,7 @@ Example response:
48
48
"deaths":5,
49
49
"recovered":2,
50
50
"mortalityRate":0.0781,
51
-
"revoveryRate":0.0313
51
+
"recoveryRate":0.0313
52
52
},
53
53
"name":"Philippines"
54
54
}
@@ -58,7 +58,7 @@ Example response:
58
58
}
59
59
```
60
60
61
-
#### `/api/cases/total`
61
+
#### `/api/cases/total`
62
62
63
63
Returns summary informations.
64
64
@@ -73,15 +73,15 @@ Example response:
73
73
"deaths": 5391,
74
74
"recovered": 70914,
75
75
"mortalityRate": 0.0375,
76
-
"revoveryRate": 0.493
76
+
"recoveryRate": 0.493
77
77
},
78
78
"name": "Globally"
79
79
},
80
80
"provider": "TheBaseLab"
81
81
}
82
82
```
83
83
84
-
#### `/api/cases/:code`
84
+
#### `/api/cases/:code`
85
85
86
86
Returns informations about disease spread in selected coutry. Code is [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) string. For non-existent records (country codes not stores) `404` is returned
87
87
@@ -96,7 +96,7 @@ Example response:
96
96
"deaths": 1,
97
97
"recovered": 0,
98
98
"mortalityRate": 0.0147,
99
-
"revoveryRate": 0
99
+
"recoveryRate": 0
100
100
},
101
101
"name": "Poland"
102
102
},
@@ -111,4 +111,3 @@ You can create your own instance on any hosting provider. If you want to run thi
111
111
## Special thanks
112
112
113
113
Special thanks to [ThaBaseLab](https://coronavirus.thebaselab.com/) for allowing data usage.❤️
0 commit comments