user_ratings_total No longer available in google places API. Alternative for getting total number of reviews?

喜欢而已 提交于 2019-12-01 00:18:14

问题


As of today (5/25/2016) there seems to no longer be data for user_ratings_total in the Google Places API. I use this to get the total number of reviews for a business. Is there an alternative method to getting this data?


回答1:


I'd try the Google My Business API, see in particular the documentation section Work with Review Data.

You'll need to Request access to the API.




回答2:


If you would like Google to reinstate the previously undocumented user_ratings_total result key (or something similar), then please go to: https://code.google.com/p/gmaps-api-issues/issues/detail?id=3484 and add your vote for this feature to be officially added.

This issue was "Acknowledged" by Google way back on Jun 3, 2013 and is still open as such (other similar issues like https://code.google.com/p/gmaps-api-issues/issues/detail?id=9824 have been "closed" with status like "WorkingAsIntended").

Hopefully if we get enough up votes then maybe they will see the need and put it back in and make it official (as opposed to undocumented).

(Unfortunately I couldn't post this as a Comment as I just registered; so I'm going to post it as an Answer and hope it is okay.)




回答3:


This is fixed now. Reposting a comment from the issue linked to above by @TechLeadAA

The total amount of ratings is now generally available for all Places API clients as part of the Basic SKU:

https://developers.google.com/places/web-service/details#fields https://developers.google.com/places/web-service/place-data-fields#basic

Places API: user_ratings_total

Places SDK for iOS: GMSPlaceFieldUserRatingsTotal

Places SDK for Android: Place.Field.USER_RATINGS_TOTAL




回答4:


I'm facing the same issue, and it looks like total number of reviews from Google Places API is not the same as Google My Business API:

[https://www.en.advertisercommunity.com/t5/Google-My-Business-API/Total-Reviews-are-no-longer-getting-in-Google-Places-API-and/td-p/573090#][1]



来源:https://stackoverflow.com/questions/37419487/user-ratings-total-no-longer-available-in-google-places-api-alternative-for-get

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!