def handle_result(api_dict):
    """Extract relevant info from API result"""
    result = {}

    for key in {
        "objectID",
        "hierarchy",
        # "_snippetResult",
        "anchor",
        "url"
    }:
        result[key] = api_dict[key]

    return result