def extract_search_results_from_JSON(json_data):
    """
    Given the json output of the search queries, extracts the results(i.e. the URLS, titles from the search results)
    Args:
        json_data: the json output result from the searches
    Returns:
         json obj of the relevant extracted data
    """

    results = json_data["results"]
    search_results = []

    for seg in results:
        for item in seg:
            seg_data = {
                 "segment_id": item["segment_id"],
                 "api_info": item["api_info"],
                 "query": item["query_string"],
                 "response": item["response_info"],
            }

            for res in item["results"]:
                obj = {
                    "title": res["title"],
                    "url": res["link"]
                }

                combined_obj = {**obj, **seg_data}
                search_results.append(combined_obj)

    search_results = {"search_results": search_results}

    return search_results