🦠A simple and fast (< 200ms) API for tracking the global coronavirus (COVID-19, SARS-CoV-2) outbreak. It's written in python using the 🔥 FastAPI framework. Supports multiple sources!
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: https://github.com/ExpDev07/coronavirus-tracker-api/issues/55).
New endpoints!
This gets the latest global statistics for confirmed cases, deaths, and recoveries.
GET /v2/latest
This retrieves all the locations. If you see, they all have an ID attached to them.
GET /v2/locations
You can also filter the locations by a alpha2-country code (https://github.com/ExpDev07/coronavirus-tracker-api/issues/54). For Norway:
GET /v2/locations?country_code=NO
You use the ID assigned to the locations to access them alone (https://github.com/ExpDev07/coronavirus-tracker-api/issues/42). Through this endpoint, you'll also get the timelines associated with it.
GET /v2/location/:id
E.g: For Norway:
GET /v2/location/39
(https://github.com/ExpDev07/coronavirus-tracker-api/issues/46).
/all
, /confirmed
, /deaths
, and /recovered
)?They'll stay around for legacy reasons and not to break peoples' apps.