# Can I make API calls to an External API and return results

**URL:** <https://www.five.org/t/can-i-make-api-calls-to-an-external-api-and-return-results/223>\
**Category:** How do I?\
**Tags:** how-to\
**Created:** [June 6, 2023, 11:19am UTC](https://www.five.org/t/can-i-make-api-calls-to-an-external-api-and-return-results/223 "2023-06-06T11:19:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ayushjain](https://avatars.discourse-cdn.com/v4/letter/a/e79b87/32.png) [@ayushjain](https://www.five.org/u/ayushjain)\
**Post date:** [June 6, 2023, 11:19am UTC](https://www.five.org/t/can-i-make-api-calls-to-an-external-api-and-return-results/223/1 "2023-06-06T11:19:21Z")

</div>

I want to call an external API and return list of an image/video generated

---

<div class="post-metadata">

**Author:** ![Pranoy](https://yyz2.discourse-cdn.com/flex030/user_avatar/www.five.org/pranoy/32/281_2.png) [@Pranoy](https://www.five.org/u/Pranoy)\
**Post date:** [June 6, 2023, 10:25pm UTC](https://www.five.org/t/can-i-make-api-calls-to-an-external-api-and-return-results/223/2 "2023-06-06T22:25:55Z")

</div>

Hi Ayush,

Yes you can calls to an external API in Five, Here is a sample code that demonstrates how to get a response from an API by Google

```auto
const url = `https://maps.googleapis.com/maps/api/place/textsearch/json?query=restaurants%20in%20${POST_CODE}%20QLD&key=${API_KEY}`;
    const client = five.httpClient();
    let httpResult = client.get(url);

```

In the code above, we construct the API URL, then we create an HTTP client using `five.httpClient()` and use it to make a GET request to the specified URL. The results from the API are stored in the `httpResult` variable.

you can also refer to our documentation over here [Introduction | Five | Low-Code For Real Developers](https://help.five.org/2.1/docs/api/introduction) and [field | Five | Low-Code For Real Developers](https://help.five.org/2.1/docs/api-examples/property-examples/field)
