Project APIs: API Version 1


Endpoint: [graph_type]/country

    Returns:
    A dictionary with:
    keys --> user-entered country + 4 other random countries from the same continent as user-entered country
    values --> ”number of cases” for each of the countries
    [graph_type] is required and should be: bargraph

    Response Format: json
    Example Resource URL: https://covid-19-visualizations.ey.r.appspot.com/api/v1/bargraph/country?id=India
    Example Response:
    { "India": 42.18358533, "Iraq": 83.56697107, "Kuwait": 210.85898832, "Malaysia": 0.56025409, "Palestine": 120.76872829 }
    Parameters
    Name: Id
    Description: Specify a country name as provided in the dropdown list of countries on this site
    Required: yes
    Default: none