import requests


def getcorona_information_from_rki(gen: str = "Bautzen") -> str:
    """Get Corona Information from RKI and returns as json

    Args:
        gen (str): Name of district to search for

    Returns:
        any: json data
    """
    url = "https://services7.arcgis.com/mOBPykOjAyBO2ZKk/arcgis/rest/services/\
RKI_Landkreisdaten/FeatureServer/0/query?where=GEN%20%3D%20'{}'&\
outFields=EWZ_BL,EWZ,cases_per_population,cases,deaths,death_rate,\
cases7_per_100k,cases7_bl_per_100k,cases7_bl,death7_bl,cases7_lk,death7_lk,\
cases7_per_100k_txt&returnGeometry=false&outSR=4326&f=json".format(
        gen
    )
    req = requests.get(url)
    req.raise_for_status()
    return req.json()