Search code examples
javascriptwordpressgoogle-placesgoogle-reviews

Google reviews from place ID


i'm very new to web programming so there's a lot of things that i don´t know.

I've searched about how to get google reviews from a place using only the place ID but there's no information. I know that's possible because there's a wordpress plugin by trustindex that can do that exact thing but my question is:

is there a way to get google reviews only from the place ID using JavaScript, HTML and PHP?


Solution

  • First you need Google my business with api setup - https://developers.google.com/my-business/content/basic-setup . Then get reviews with following examples - https://developers.google.com/my-business/content/review-data#list_all_reviews