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

后端 未结 4 547
无人及你
无人及你 2021-01-12 01:09

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 th

相关标签:
4条回答
  • 2021-01-12 01:31

    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.

    0 讨论(0)
  • 2021-01-12 01:32

    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]

    0 讨论(0)
  • 2021-01-12 01:37

    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.)

    0 讨论(0)
  • 2021-01-12 01:45

    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

    0 讨论(0)
提交回复
热议问题