serpapi / public-roadmap

Public Roadmap for SerpApi, LLC (https://serpapi.com)
52 stars 5 forks source link

[Google Product API] Product results returns inccorrect review count and rating #1926

Closed ctg5 closed 4 weeks ago

ctg5 commented 4 weeks ago

In some instances, the google shopping engine returns ratings/reviews for products even when those products don't have any reviews. It looks like in these instances, you're pulling the first review from the related products and dropping it in as the review for the main product.

Product Ratings Issue

I now have a database with maybe hundreds (hopefully not thousands) of erroneous data points. Yikes!

Let me know if you need more examples. I suspect I can find them.

Thanks!

NateSkiles commented 4 weeks ago

@ctg5 Thank you for bringing this to our attention!

I tested this a bit further, it appears that for products without reviews, review count and rating are scraped from the first related_products element instead of returning null or 0.

Seen below, an example of a product without reviews, where product_results returns the review count and rating of the first related_products:

image

Playground Example:

If reviews do exist on the product, the correct rating is scraped: image

NateSkiles commented 4 weeks ago

This is a duplicate issue, please see: #1890

NateSkiles commented 3 weeks ago

@ctg5 I wanted to follow up and let you know that this issue has been resolved, in case you missed it in the original issue.

Please let us know if you have any questions!