Get reviews from google map api

A more recent way to do this:{place_id}&key={api_key}

  • place_id:
  • api_key:


  "html_attributions": [],
  "result": {
    "rating": 4.6,
    "reviews": [
        "author_name": "John Smith",
        "author_url": "",
        "language": "en",
        "profile_photo_url": "",
        "rating": 5,
        "relative_time_description": "in the last week",
        "text": "Great time! 5 stars!",
        "time": 1508340655

Reviews are limited to the 5 latest.

$reqUri .= '&sensor=false&radius=500';
$reqUri .= '&location=38.908310,-104.784035&name='.urlencode(LOCATION NAME);
$reqUri .= '&keyword='.urlencode(WEBSITE PHONE);

I made it through PHP, Now call like this URL and you get original result with reference key.

Then parse it like:

$data = cURL($reqUri);
$data = json_decode($data);
echo $data ->results[0]->reference;

Hope it will help you

***Note: location=38.908310,-104.784035 this var is not auto you must have it.

For fetching a google review you need reference id for the place.In order to get this reference key you can use google places search api request.

Its response will have reference id which you can use in your request.

    <name>Koshy's Restaurant</name>
    39, St Marks Road,Shivajinagar,Bangalore, Karnataka, 560001, India
    <a href="">Ujaval Gandhi</a>