disease.sh · Schema

covidHistoricalCountry

COVID-19DiseaseHealthEpidemiologyInfluenzaVaccineOpen DataPublic Health

Properties

Name Type Description
country string
province array
timeline object The amount of key-value pairs in 'cases', 'deaths' and 'recovered' is dependent on the 'lastdays' query
View JSON Schema on GitHub

JSON Schema

covidHistoricalCountry.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/disease-sh/main/json-schema/covidHistoricalCountry.json",
  "title": "covidHistoricalCountry",
  "properties": {
    "country": {
      "type": "string"
    },
    "province": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "timeline": {
      "type": "object",
      "description": "The amount of key-value pairs in 'cases', 'deaths' and 'recovered' is dependent on the 'lastdays' query",
      "properties": {
        "cases": {
          "type": "object",
          "properties": {
            "date": {
              "type": "number"
            }
          }
        },
        "deaths": {
          "type": "object",
          "properties": {
            "date": {
              "type": "number"
            }
          }
        },
        "recovered": {
          "type": "object",
          "properties": {
            "date": {
              "type": "number"
            }
          }
        }
      }
    }
  }
}