title: Google Places APi photo
body: <p>I am trying to render an image using php for my website that will dynamically display images straight from the Google Places API (Reference <a href="https://developers.google.com/places/web-service/photos?hl=en" rel="nofollow noreferrer">https://developers.google.com/places/web-service/photos?hl=en</a>)
  The image source looks like the following example:</p>
  <pre><code>https://maps.googleapis.com/maps/api/place/photo?maxwidth=400&amp;photoreference=CnRtAAAATLZNl354RwP_9UKbQ_5Psy40texXePv4oAlgP4qNEkdIrkyse7rPXYGd9D_Uj1rVsQdWT4oRz4QrYAJNpFX7rzqqMlZw2h2E2y5IKMUZ7ouD_SlcHxYq1yL4KbKUv3qtWgTK0A6QbGh87GB3sscrHRIQiG2RrmU_jF4tENr9wGS_YxoUSSDrYjWmrNfeEHSGSc3FyhNLlBU&amp;key=API_KEY
  </code></pre>
  <p>If you visit this URL via your browser it will render an image and this is no longer the URL you see.</p>
  <p>My issue is that when viewing the page source, this is exactly the image source URL you see which is bad because my key is then publicized. What is the proper way to render images while keeping my key private? I have searched the API and the web for this but to no avail. I did see some tricks using file_get_contents and file_put_contents but my web host does not allow that. Finally, saving the images is against the api rules so that is not an option.</p>
  <p>Any tips would be appreciated. Thanks in advance.</p>