import json


def getStatus(response):
    """
    Get the status of the request from the API response
    :param response: Response object in JSON
    :return: String - statuse
    """

    resp_dict = json.loads(response.text)

    try:
        status = resp_dict["status"]
    except KeyError:
        print('Retrieval unsuccessful.')
        return None

    return status