Coronavirus updates API

This is an api for corona virus information updates
More information: http://github.com/cheatModeON/coron-api
Contact Info: achipap@gmail.com
Version: 1.0.0
BasePath: https://coron-api.azurewebsites.net/api/v1/
MIT
https://opensource.org/licenses/MIT

Access

Methods

[ Jump to Models ]

Table of Contents

Users

Users

Up
get /api/v1/stats
statistical data per country (countriesStats)
displays corononavirus data per country

Query parameters

country (required)
Query Parameter — name of the country to get stats (Optional)

Return type

array[country_stats]

Example data

Content-Type: application/json
[ {
  "serious_cases" : "1",
  "country" : "Greece",
  "total_cases_per_mil" : "7.1",
  "total_deaths" : "0",
  "new_cases" : "+1",
  "new_deaths" : "+5",
  "total_recovered" : "42",
  "active_cases" : "74"
}, {
  "serious_cases" : "41",
  "country" : "Germany",
  "total_cases_per_mil" : "21.1",
  "total_deaths" : "6",
  "new_cases" : "+4",
  "new_deaths" : "+2",
  "total_recovered" : "302",
  "active_cases" : "74"
} ]

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

stats

Up
get /api/v1/general
get general statistics about the coronavirus (generalView)
displays the general stats

Return type

statistics

Example data

Content-Type: application/json
{
  "recovered" : "62,280",
  "cases" : "110,077",
  "time_of_request" : "2000-01-23T04:56:07.000+00:00",
  "closed_cases" : "66,110",
  "active_cases" : "43,967",
  "deaths" : "3,830",
  "mild_condition" : "37,990",
  "serious_condition" : "5,977"
}

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

statistics statistics

Up
get /api/v1/countries
get the list of the infected countries (infectedCountries)
displays the countries that got infected by coronavirus

Return type

array[countries]

Example data

Content-Type: application/json
[ {
  "name" : "Greece"
}, {
  "name" : "Germany"
} ]

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

countries

Up
get /api/v1/
get api info (infoView)
displays the available operations of the api

Return type

array[operations]

Example data

Content-Type: application/json
[ {
  "method" : "GET /api/v1/stats",
  "name" : "Statistical data"
}, {
  "method" : "GET /api/v1/general",
  "name" : "General data"
} ]

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

operations

Models

[ Jump to Methods ]

Table of Contents

  1. countries
  2. country_stats
  3. operations
  4. statistics

countries Up

name
example: Greece

country_stats Up

country (optional)
example: Greece
active_cases (optional)
example: 74
new_cases (optional)
example: +1
new_deaths (optional)
example: +4
serious_cases (optional)
example: 1
total_cases_per_mil (optional)
example: 7.1
total_deaths (optional)
example: 43
total_recovered (optional)
example: 442

operations Up

name
example: About coronavirus
method
example: GET /api/v1/coronavirus

statistics Up

active_cases
example: 43,967
cases
example: 110,077
closed_cases
example: 66,110
deaths
example: 3,830
mild_condition
example: 37,990
recovered
example: 62,280
serious_condition
example: 5,977
time_of_request
Date format: date-time
example: 2000-01-23T04:56:07.000+00:00