How to get all google reviews using business api

Bhavesh Nariya picture Bhavesh Nariya · Dec 8, 2016 · Viewed 14.7k times · Source

I need all google reviews for particular location but I am unable to use business api from google. Here is url for get request

https://mybusiness.googleapis.com/v3/accounts/account_name/locations/location_name/reviews 

Now my question is what is the value for param account_name and location_name How can I get that.

Please answer with sample location example

Answer

Hmmm picture Hmmm · Dec 8, 2016

I think first of all you need to white list your google my business api for whatever project you are working on in your project as its private api. Google my business api will work on the locations associated with your account so make sure you verified the LOCATIONS from any account you know. Then you can try out the api call you mentioned in OAuthplayground.

  1. Follow steps mentioned in below documentation URL to set it up: https://developers.google.com/my-business/content/prereqs

After the setup and etc you will automatically understand the account id and location id.

Also few more urls you can go to understand it better.

  1. https://console.developers.google.com (here you will setup your project)
  2. https://business.google.com/manage (here you will add/can see the locations - for which you need reviews)
  3. https://developers.google.com/my-business/content/basic-setup (Steps after completing the prereq)
  4. https://developers.google.com/oauthplayground (You will test the my business api here after approval)