import aiohttp


async def get_url(params: dict) -> dict:
    """
    Get url then return json encoded of that

    :param params: pass parameters of the url
    :return: json encoded dictionary
    """
    async with aiohttp.ClientSession() as session:
        async with session.get(url="https://fortnite-api.com/v1/stats/br/v2", params=params) as resp:
            return await resp.json()