import requests


def load_inspect_api(url):
    """ Load inspect API and return Json response """

    r = requests.get(url)

    if r.status_code != 200:
        raise RuntimeError(
            'Failed to read inspect API. Error %d.' % (r.status_code))

    return r.json()