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
+14-1Lines changed: 14 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,16 @@
15
15
16
16
All requests must be made to the base url: ``https://coronavirus-tracker-api.herokuapp.com/v2/`` (e.g: https://coronavirus-tracker-api.herokuapp.com/v2/locations). You can try them out in your browser to further inspect responses.
17
17
18
+
### Picking data source
19
+
20
+
We provide multiple data-sources you can pick from, simply add the query paramater ``?source=your_source_of_choice`` to your requests. JHU will be used as a default if you don't provide one.
21
+
22
+
#### Available sources:
23
+
24
+
***jhu** - https://github.com/CSSEGISandData/COVID-19 - Data repository operated by the Johns Hopkins University Center for Systems Science and Engineering (JHU CSSE).
25
+
26
+
***... more to come later**.
27
+
18
28
### Getting latest amount of total confirmed cases, deaths, and recoveries.
19
29
```http
20
30
GET /v2/latest
@@ -41,6 +51,7 @@ GET /v2/locations
41
51
"country": "Thailand",
42
52
"country_code": "TH",
43
53
"province": "",
54
+
"last_updated": "2020-03-21T06:59:11.315422Z",
44
55
"coordinates": {
45
56
"latitude": "15",
46
57
"longitude": "101"
@@ -56,6 +67,7 @@ GET /v2/locations
56
67
"country": "Norway",
57
68
"country_code": "NO",
58
69
"province": "",
70
+
"last_updated": "2020-03-21T06:59:11.315422Z",
59
71
"coordinates": {
60
72
"latitude": "60.472",
61
73
"longitude": "8.4689"
@@ -91,6 +103,7 @@ GET /v2/locations/:id
91
103
"country": "Norway",
92
104
"country_code": "NO",
93
105
"province": "",
106
+
"last_updated": "2020-03-21T06:59:11.315422Z",
94
107
"coordinates": { },
95
108
"latest": { },
96
109
"timelines": {
@@ -121,7 +134,7 @@ programmatically retrieved, re-formatted and stored in the cache for one hour.
121
134
122
135
## Wrappers
123
136
124
-
These are the available API wrappers created by the community. They are not neccecarily maintained by any of this project's authors or contributors.
137
+
These are the available API wrappers created by the community. They are not necessarily maintained by any of this project's authors or contributors.
0 commit comments