Coronavirus (COVID-19, SARS-CoV-2) tracker API v1 built to track global corona virus outbreak

Godwin
4 min readApr 16, 2020

COVID-19 API v1 built on node js to support the dashboards which intents to track global corona virus outbreak.

API Reference:

So here it is the Base URL for the COVID-19 v1 API:

 https://covid19-api-godwin.herokuapp.com/

Available data categories:

  • Global stats
  • Country wise stats
  • Yesterday stats
  • Global historical stats
  • Country wise historical stats
  • State wise stats
  • Affected countries
  • India state wise
  • India district wise
  • India updates
  • State tested data of India
  • Daily data of states of India

1)Global stats:

GET v1/all

You can use this API to get the live global updates.

Sample response for v1/all

2)Country wise stats:

GET v1/countries

You can use this API to get the country wise updates.

…..

Query parameters:

  • country : You can use this query param to get the updates of specific country.

Example : v1/countries?country=india

Sample response for specific country updates
  • sortby : You can use this query param to get the country wise updates in desired key order.

Possible values : cases,todayCases,deaths,todayDeaths,recovered,active,critical,casesPerOneMillion,deathsPerOneMillion,tests,testsPerOneMillion

Example : v1/countries?sortby=cases

Sample response for sortby

3)Yesterday stats:

GET v1/yesterday

You can use this API to get the day before updates.

Sample response for day before updates

Query parameters:

  • country : You can use this query param to get the day before updates of specific country.

Example : v1/yesterday?country=india

  • sortby : You can use this query param to get the day before country wise updates in desired key order.

Possible values : cases,todayCases,deaths,todayDeaths,recovered,active,critical,casesPerOneMillion,deathsPerOneMillion,tests,testsPerOneMillion

Example : v1/countries?sortby=cases

4)Global historical stats:

GET v1/allhistorical

You can use this API to get the global historical updates.

Sample response for global historical updates

5)Country wise historical stats:

GET v1/historical

You can use this API to get the historical country wise updates.

Sample response for country wise historical updates

Query parameters:

  • country : You can use this query param to get the historical updates of specific country.

Example : v1/historical?country=china

  • province : You can use this query param to get the historical updates of specific province.

Note : country param is mandatory to make use of province key

Example : v1/historical?country=china&province=henan

6)State wise stats:

GET v1/states

You can use this API to get the state wise updates.

Sample response for state wise updates

7)Affected countries:

GET v1/affectedcountries

You can use this API to get the affected countries.

Sample response for affected countries

8)India state wise:

GET v1/india

You can use this API to get state wise updates of India.

9)India district wise:

GET v1/india/district

You can use this API to get district wise updates of India.

10)India updates:

GET v1/india/updates

You can use this API to get log updates of India.

11)State tested data of India:

GET v1/india/state_test_data

You can use this API to get the state tested data of India.

12)Daily data of states of India:

GET v1/india/states_daily

You can use this API to get the daily data of states of India.

API Developer contact:

Godwin L (alloygodwin1@gmail.com)

Linkedln

Dashboards built on COVID-19 v1 API:

--

--

Godwin

Passionate Techie skilled at operating in a wide range of platforms.