def parse_search_result_data(api_response):
    """
    Parse the search result data from the given raw json by following the response style of tokopedia

    Arg:
        - api_response (list): list of products

    Returns:
        - product_list (list): list of compiled product properties
    """

    product_list = []
    for resp in api_response:
        product_results = resp.get('data').get('ace_search_product_v4').get('data').get('products') # Standard tokopedia response style
        for product in product_results:
            product_dict = dict(
                product_name=product.get('name'),
                product_image_link=product.get('imageUrl'),
                product_price=product.get('price'),
                product_rating=product.get('rating'),
                product_average_rating=product.get('ratingAverage'),
                product_merchant=product.get('shop').get('name'),
                product_target_url=product.get('url') # Going to be used to crawl further into the product page itself, to extract description
            )
            product_list.append(product_dict)

    return product_list