Get reviews from google map api

Himanshu Pandey picture Himanshu Pandey · May 7, 2013 · Viewed 35.3k times · Source

Answer

JM-AGMS picture JM-AGMS · Oct 20, 2017

A more recent way to do this:

https://maps.googleapis.com/maps/api/place/details/json?placeid={place_id}&key={api_key}

Response:

{
  "html_attributions": [],
  "result": {
    ...
    "rating": 4.6,
    "reviews": [
      {
        "author_name": "John Smith",
        "author_url": "https://www.google.com/maps/contrib/106615704148318066456/reviews",
        "language": "en",
        "profile_photo_url": "https://lh4.googleusercontent.com/-2t1b0vo3t-Y/AAAAAAAAAAI/AAAAAAAAAHA/0TUB0z30s-U/s150-c0x00000000-cc-rp-mo/photo.jpg",
        "rating": 5,
        "relative_time_description": "in the last week",
        "text": "Great time! 5 stars!",
        "time": 1508340655
      }
    ]
  }
}

Reviews are limited to the 5 latest.