# Getting image URL from Google Places API

**URL:** <https://community.parabola.io/t/getting-image-url-from-google-places-api/646>\
**Category:** Ask a question\
**Tags:** Using-APIs\
**Created:** [June 3, 2020, 9:46pm UTC](https://community.parabola.io/t/getting-image-url-from-google-places-api/646 "2020-06-03T21:46:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oriol\_Segarra](https://avatars.discourse-cdn.com/v4/letter/o/e8c25b/32.png) [@Oriol\_Segarra](https://community.parabola.io/u/Oriol_Segarra)\
**Post date:** [June 3, 2020, 9:46pm UTC](https://community.parabola.io/t/getting-image-url-from-google-places-api/646/1 "2020-06-03T21:46:05Z")

</div>

Hi there! I’m using the Google Places API to get data from businesses that are my clients and being able to show it. I’ve been able to get pretty much everything except for the URL of the images.

To get the image you need:

photo\_reference  
maxwidth or maxheight  
API\_KEY

I have all of these parameters but still fail to get the URLs of the images using the API enrichement. If I paste an example of the api request directly in the browser bar, the image appears without a problem.

I get a HTTP400 error type  
The documentation says:

> This request will return the referenced image, resizing it so that it is at most MAXWIDTH pixels wide.

thank you!

> **[Place Photos  |  Places API  |  Google for Developers](https://developers.google.com/maps/documentation/places/web-service/photos?hl=es-419)**

---

<div class="post-metadata">

**Author:** ![brian](https://sea2.discourse-cdn.com/flex020/user_avatar/community.parabola.io/brian/32/11_2.png) [@brian](https://community.parabola.io/u/brian)\
**Post date:** [June 3, 2020, 10:01pm UTC](https://community.parabola.io/t/getting-image-url-from-google-places-api/646/2 "2020-06-03T22:01:51Z")

</div>

Hey Oriol!

That API is going to try and return an actual image, not the URL. So that won’t be usable in Parabola.

I would suggest instead using the Google Custom Search API with `searchType=image` set in the query so that you can pull back images based on some search criteria.

To my knowledge, that is your best bet for getting an image of a place.
