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
Currently 2 different data-sources are available to retrieve the data:
24
+
25
+
***jhu** - https://github.com/CSSEGISandData/COVID-19 - Worldwide Data repository operated by the Johns Hopkins University Center for Systems Science and Engineering (JHU CSSE).
26
+
27
+
***csbs** - https://www.csbs.org/information-covid-19-coronavirus - U.S. County data that comes from the Conference of State Bank Supervisors.
28
+
29
+
__jhu__ data-source will be used as a default source if you don't specify a *source parameter* in your request.
Currently 2 different data-sources are available to retrieve the data:
37
-
38
-
***jhu** - https://github.com/CSSEGISandData/COVID-19 - Worldwide Data repository operated by the Johns Hopkins University Center for Systems Science and Engineering (JHU CSSE).
39
-
40
-
***csbs** - https://www.csbs.org/information-covid-19-coronavirus - U.S. County data that comes from the Conference of State Bank Supervisors.
41
-
42
-
__jhu__ data-source will be used as a default source if you don't specify a source parameter in your request.
43
-
44
44
## API Endpoints
45
45
46
46
### Latest Endpoint
@@ -78,9 +78,9 @@ GET /v2/locations/:id
78
78
```
79
79
80
80
__Path Parameters__
81
-
| Path parameter | Required/Optional | Description | Type |
| id | OPTIONAL | The unique location id for which you want to call the Locations Endpoint. | Integer |
84
84
85
85
86
86
#### Example Request
@@ -198,7 +198,7 @@ __Parameter: country_code__
198
198
Getting data for the Country specified by the *country_code parameter*, in this case Italy - IT
199
199
200
200
```http
201
-
GET https://coronavirus-tracker-api.herokuapp.com/v2/locations?country_code=IT
201
+
GET /v2/locations?country_code=IT
202
202
```
203
203
204
204
__Sample Response__
@@ -231,7 +231,7 @@ __Sample Response__
231
231
```
232
232
233
233
__Parameter: source__
234
-
Getting the data from the data-source (csbs)[https://www.csbs.org/information-covid-19-coronavirus]
234
+
Getting the data from the data-source specified by the *source parameter*, in this case [csbs](https://www.csbs.org/information-covid-19-coronavirus)
235
235
236
236
```http
237
237
GET /v2/locations?source=csbs
@@ -287,12 +287,18 @@ __Sample Response__
287
287
```
288
288
289
289
__Parameter: timelines__
290
-
Getting the data for all the locations including the daily tracking of confirmed cases, deaths and recovered
290
+
Getting the data for all the locations including the daily tracking of confirmed cases, deaths and recovered per location.
291
291
292
292
```http
293
-
GET https://coronavirus-tracker-api.herokuapp.com/v2/locations?timelines=1
293
+
GET /v2/locations?timelines=1
294
+
```
295
+
Explore the response by opening the URL in your browser [https://coronavirus-tracker-api.herokuapp.com/v2/locations?timelines=1](https://coronavirus-tracker-api.herokuapp.com/v2/locations?timelines=1) or make the following curl call on your terminal:
296
+
294
297
```
295
-
__NOTE:__ Timelines tracking starts from day 22nd January 2020 and ends to the last available day on the data-source.
0 commit comments