From af5471ae8872b0f025bbea2bc65e6327e71bc840 Mon Sep 17 00:00:00 2001 From: Denis Zyk <44240055+denis-zyk@users.noreply.github.com> Date: Wed, 15 May 2024 14:32:07 +0300 Subject: [PATCH] Update JSON schema for popular_products --- serp/resp.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/serp/resp.go b/serp/resp.go index 601114d..447fa15 100644 --- a/serp/resp.go +++ b/serp/resp.go @@ -48,7 +48,7 @@ type Result struct { Knowledge Knowledge `json:"knowledge"` LocalPack LocalPack `json:"local_pack"` TopStories TopStory `json:"top_stories"` - PopularProducts PopularProducts `json:"popular_products"` + PopularProducts []PopularProducts `json:"popular_products"` RelatedSearches RelatedSearches `json:"related_searches"` RelatedQuestions RelatedQuestions `json:"related_questions"` SearchInformation SearchInformation `json:"search_information"` @@ -229,6 +229,8 @@ type PopularProducts struct { type PopularProductsItem struct { Pos int `json:"pos"` Price string `json:"price"` + Rating string `json:"rating"` + Seller string `json:"seller"` Title string `json:"title"` ImageData string `json:"image_data"` }