import requests


def request_url(query='San Francisco', api_key='11e927016e40363a91708daf37fcccc4'):
    """
    API request for given location

    :param str query: location to get weather data for
    :param str api_key: key for API usage
    """
    url = f'https://api.openweathermap.org/data/2.5/forecast?q={query}&units=imperial&appid={api_key}'
    response = requests.get(url)
    response.raise_for_status()
    return response