import requests


def get_search_space(id_, url):
    """Perform a GET request and return the search space json."""
    params = {"id": id_}
    r = requests.get(url, params)
    r.raise_for_status()
    search_space_json = r.json()
    return search_space_json