AdWords is now Google Ads. Our new name reflects the full range of advertising options we offer across Search, Display, YouTube, and more. Learn more

My Business
2.6K members online now
2.6K members online now
For developers who are using the Google My Business API to manage locations
Guide Me
star_border
Reply

/reviews returns a 200 with empty JSON

Follower ✭ ✭ ☆
# 1
Follower ✭ ✭ ☆

Hi,

Our request looks like:

 

GET https://mybusiness.googleapis.com/v3/accounts/117524948641077217237/locations/1036281077058933555/reviews

And the response we're getting is an empty JSON with a `200 OK`

 

 

{}

Is this expected? The doc seems to suggest otherwise.

 

1 Expert replyverified_user

Re: /reviews returns a 200 with empty JSON

Google Employee
# 2
Google Employee

Hi @Ashesh A,

 

The 200 OK status and an empty JSON response body means that your specified location is either unverified or doesn’t have any reviews for the GET request to retrieve a paginated list of reviews for the specified location.

 

Thanks,

Terry

Re: /reviews returns a 200 with empty JSON

Follower ✭ ✭ ☆
# 3
Follower ✭ ✭ ☆
Hm, okay. I’d expect it to return an error if the location isn’t verified. An empty body with a 200 OK is ambiguous and makes it impossible to know if the place actually has no reviews or it is simply not verified. Those are two very distinct reasons and the API should allow for a way to figure that out – without needing to make an extra call to the /locations endpoint to get the verification metadata.
Moreover, the documentation you pointed me to clearly says "If successful, the response body contains data with the following structure:” and an empty JSON is not that structure. But anyway, thanks for your time.
Ashesh Ambasta
Lead Backend / CentralApp
ashesh.ambasta@centralapp.com
+32 488 43 59 91
www.centralapp.com