Google api 是否有可能从GooglePlacesAPI获取最新的五条google评论?

Google api 是否有可能从GooglePlacesAPI获取最新的五条google评论?,google-api,google-places-api,Google Api,Google Places Api,我已经开发了一个脚本,使用GooglePlacesAPI获取和显示google评论。 它得到了五条评论,但不是最新的 google places api是返回5条随机评论还是最新5条评论 谢谢这里所说的: “这是Google+Local上显示的前5条评论,我认为它们是按相关性/帮助性排名的。无法更改请求的评论集。”Places API默认只返回5条,如果您申请了GMB API并管理了验证位置,则您可以访问帐户上的审查,但这仅在您获得API批准并通过业务认证的情况下有效;或者,您也可以随时复制/粘

我已经开发了一个脚本,使用GooglePlacesAPI获取和显示google评论。 它得到了五条评论,但不是最新的

google places api是返回5条随机评论还是最新5条评论

谢谢这里所说的


“这是Google+Local上显示的前5条评论,我认为它们是按相关性/帮助性排名的。无法更改请求的评论集。”

Places API默认只返回5条,如果您申请了GMB API并管理了验证位置,则您可以访问帐户上的审查,但这仅在您获得API批准并通过业务认证的情况下有效;或者,您也可以随时复制/粘贴或使用第三方服务获取类似Reviewsmaker的内容;但是没有其他方法可以让Places API返回5条以上的内容,Yelp也是如此,他还限制您获取超过一个上限的数字。

只要您有一个API,它将始终从google map location返回最新的评论

https://maps.googleapis.com/maps/api/place/details/json?place_id={Your Place ID}&fields=name,rating,reviews&key={GOOGLE DEV KEY}
下面是该api的响应

{
  "html_attributions" : [],
  "result" : {
  "name" : "gathern app",
  "rating" : 5,
  "reviews" : [
     {
        "author_name" : "صالح وحيد Saleh Waheed",
        "author_url" : "https://www.google.com/maps/contrib/100946881376925963940/reviews",
        "language" : "en",
        "profile_photo_url" : "https://lh3.ggpht.com/-bgNhUmU_Ftg/AAAAAAAAAAI/AAAAAAAAAAA/-rLGfz7aAEk/s128-c0x00000000-cc-rp-mo-ba2/photo.jpg",
        "rating" : 5,
        "relative_time_description" : "in the last week",
        "text" : "Gathern is an online platform that helps people find vacation rentals and chalets in KSA.\n\nGreat team and great website.\n\nGathern.co",
        "time" : 1582015365
     },
     {
        "author_name" : "Hassan Raza",
        "author_url" : "https://www.google.com/maps/contrib/109666951306307815476/reviews",
        "language" : "en",
        "profile_photo_url" : "https://lh3.ggpht.com/-VrVSfhsRo28/AAAAAAAAAAI/AAAAAAAAAAA/9gJQWSdJ3TM/s128-c0x00000000-cc-rp-mo-ba3/photo.jpg",
        "rating" : 5,
        "relative_time_description" : "a week ago",
        "text" : "Great peoples and superb platform for booking online chalets.",
        "time" : 1581492666
     },
     {
        "author_name" : "Eman Alswailem",
        "author_url" : "https://www.google.com/maps/contrib/115734038039879616345/reviews",
        "language" : "ar",
        "profile_photo_url" : "https://lh4.ggpht.com/-xNiMOs2bD3A/AAAAAAAAAAI/AAAAAAAAAAA/tElDIT5zP78/s128-c0x00000000-cc-rp-mo/photo.jpg",
        "rating" : 5,
        "relative_time_description" : "2 months ago",
        "text" : "تطبيق ممتاز لحجز الشاليهات اون لاين",
        "time" : 1575659218
     },
     {
        "author_name" : "Hanan alnami",
        "author_url" : "https://www.google.com/maps/contrib/114513293972924581219/reviews",
        "language" : "ar",
        "profile_photo_url" : "https://lh6.ggpht.com/-BUEZWeWQhv4/AAAAAAAAAAI/AAAAAAAAAAA/7A8id3FGLQA/s128-c0x00000000-cc-rp-mo/photo.jpg",
        "rating" : 5,
        "relative_time_description" : "6 months ago",
        "text" : "تطبيق ممتاز دايم احجز منه شاليهات شكرا لكم",
        "time" : 1566223757
     }
  ]
},
"status" : "OK"

}

您能给我们举一个您如何获取评论的例子吗?也许是一个小插曲。几天来我一直在想办法,但什么都没有。谢谢你有没有一个链接,它说默认情况下只返回5?我不怀疑你,但我想亲眼看看。此外,在谷歌官方开发文档“reviews[]一个最多包含五条评论的JSON数组”中,是否可能获得少于5条评论。如果需要,您可以使用第三方API来获取更多评论。