# Generate a URL for a picture

**URL:** https://community.glideapps.com/t/generate-a-url-for-a-picture/37845
**Category:** Ask for Help
**Created:** [January 28, 2022, 11:12pm UTC](https://community.glideapps.com/t/generate-a-url-for-a-picture/37845 "2022-01-28T23:12:52Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Hassan\_Nadeem](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/hassan_nadeem/32/72956_2.png) [@Hassan\_Nadeem](https://community.glideapps.com/u/Hassan_Nadeem)
#### Post date: [January 28, 2022, 11:12pm UTC](https://community.glideapps.com/t/generate-a-url-for-a-picture/37845/1 "2022-01-28T23:12:53Z")

</div>

Hello Glide Community,

I am making a travel diary application where user uploads the list of countries and cities they have traveled to. Is there any way I can generate a picture of that country’s flag automatically when they input the name of that country? Through a generate URL column or Template column maybe?

---

<div class="post-metadata">

### Author: ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)
#### Post date: [January 28, 2022, 11:26pm UTC](https://community.glideapps.com/t/generate-a-url-for-a-picture/37845/2 "2022-01-28T23:26:42Z")

</div>

Use a template column to craft this url

> **[Add Country Flags to Your App With This API - countryflags.io alternative](https://dev.to/jeremypersing/add-country-flags-to-your-app-with-this-api-countryflagsio-alternative-d0d)**
>
> Introduction I was recently working on a project that required me to implement country...

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/0/9/092f01aa2bf17e6d603019fa64506512a50c82d8.jpeg)

---

<div class="post-metadata">

### Author: ![Hassan\_Nadeem](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/hassan_nadeem/32/72956_2.png) [@Hassan\_Nadeem](https://community.glideapps.com/u/Hassan_Nadeem)
#### Post date: [January 28, 2022, 11:28pm UTC](https://community.glideapps.com/t/generate-a-url-for-a-picture/37845/3 "2022-01-28T23:28:59Z")

</div>

Are you a genius or Are you a genius? 😍 😍 😍 😍 😍 😍 😍 😍 😍 😍 😍

---

<div class="post-metadata">

### Author: ![Hassan\_Nadeem](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/hassan_nadeem/32/72956_2.png) [@Hassan\_Nadeem](https://community.glideapps.com/u/Hassan_Nadeem)
#### Post date: [January 28, 2022, 11:32pm UTC](https://community.glideapps.com/t/generate-a-url-for-a-picture/37845/4 "2022-01-28T23:32:45Z")

</div>

@Robert_Petitto

This is too much to ask, but can you please get me a similar APIs for:

1. Movies or TV shows
2. Books
3. Food items maybe? 😊

---

<div class="post-metadata">

### Author: ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)
#### Post date: [January 28, 2022, 11:40pm UTC](https://community.glideapps.com/t/generate-a-url-for-a-picture/37845/5 "2022-01-28T23:40:23Z")

</div>

Ha! That’s trickier and probably pricier (those APIs probably aren’t free). Perhaps start with something like [https://www.linkpreview.net/](https://www.linkpreview.net/)

> **[LinkPreview API - Free Link Preview Service](https://www.linkpreview.net)**
>
> Preview Web links with our reliable API service. Get Detailed JSON Response for any URL.

Google books API is freemium…perhaps IMDb has an API as well.

---

<div class="post-metadata">

### Author: ![Hassan\_Nadeem](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/hassan_nadeem/32/72956_2.png) [@Hassan\_Nadeem](https://community.glideapps.com/u/Hassan_Nadeem)
#### Post date: [January 29, 2022, 12:18am UTC](https://community.glideapps.com/t/generate-a-url-for-a-picture/37845/6 "2022-01-29T00:18:26Z")

</div>

Thank you so much!! I am an amateur in using APIs but will look up some tutorials for using them. Thanks

---

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [January 29, 2022, 11:34pm UTC](https://community.glideapps.com/t/generate-a-url-for-a-picture/37845/7 "2022-01-29T23:34:53Z")

</div>

Just to add to great responses by Bob, if you’re using a premium API, make sure you check for caching with those. If responses are not cached, you risk running out of calls very soon.

---

<div class="post-metadata">

### Author: ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)
#### Post date: [January 30, 2022, 1:28am UTC](https://community.glideapps.com/t/generate-a-url-for-a-picture/37845/8 "2022-01-30T01:28:38Z")

</div>

Good call on caching. I’ve run Into this issue more times than I’d like to admit.

---

<div class="post-metadata">

### Author: ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)
#### Post date: [January 31, 2022, 1:28am UTC](https://community.glideapps.com/t/generate-a-url-for-a-picture/37845/9 "2022-01-31T01:28:58Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
