title: Embed Google aggregate rating via places API
body: <p>After searching for some time on what I thought should yield a simple answer, I am surprised to find that I must be dense or very novice when working with an API. </p>
  
  <p>I am trying to embed the Google Places rating for my business onto my home page, similar to what one can do with Yelp or AVVO, which I have already done. I would like to replace the embedded individual reviews with the aggregate rating, and link to my Google page. </p>
  
  <p>I see that the places API has a <code>rating</code> <a href="https://developers.google.com/places/web-service/details" rel="nofollow noreferrer">JSON response</a>, but I don't fully understand how to query the API to get that information, how to handle the JSON response in the console, or render that information with a dynamic image that visually reflects the rating (e.g. the stars). </p>
  
  <p>Essentially I am trying to embed the following div elements onto my site:
  <a href="https://i.stack.imgur.com/5KyWW.png" rel="nofollow noreferrer">Google places aggregate rating</a></p>