import requests


def get_data_from_country(country_name: str) -> list:
    """
    Function for geting data from api for specific country.

    Parameters
    ----------
    country_name: str, required
        Name of countr to get data about. It must be slug value provided by
        api site.

    Returns
    -------
    List with data from begining of virus in country of specified status.

    Example
    -------
    >>> poland_data = get_data_from_country('poland')
    """

    url = f"https://api.covid19api.com/total/dayone/country/{country_name}"

    payload = {}
    headers = {}

    response = requests.request("GET", url, headers=headers, data=payload)

    data = response.json()

    return data