Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Version 2 is now here. This adds a whole new complexity to the core and introduces a new concept behind a location (it is now more flattened: #55).
Endpoints added:
New endpoints!
Getting latest statistics
This gets the latest global statistics for confirmed cases, deaths, and recoveries.
Getting locations
This retrieves all the locations. If you see, they all have an ID attached to them.
You can also filter the locations by a alpha2-country code (#54). For Norway:
Getting a single location which includes the timelines.
You use the ID assigned to the locations to access them alone (#42). Through this endpoint, you'll also get the timelines associated with it.
E.g: For Norway:
What happens to the old endpoints (
/all
,/confirmed
,/deaths
, and/recovered
)?They'll stay around for legacy reasons and not to break peoples' apps.