# Can we pick the user instagram avatar from instagram username?

**URL:** https://community.glideapps.com/t/can-we-pick-the-user-instagram-avatar-from-instagram-username/32783
**Category:** Ask for Help
**Tags:** custom-code
**Created:** [October 7, 2021, 8:52pm UTC](https://community.glideapps.com/t/can-we-pick-the-user-instagram-avatar-from-instagram-username/32783 "2021-10-07T20:52:05Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Lucas\_Pires](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/lucas_pires/32/64863_2.png) [@Lucas\_Pires](https://community.glideapps.com/u/Lucas_Pires)
#### Post date: [October 7, 2021, 8:52pm UTC](https://community.glideapps.com/t/can-we-pick-the-user-instagram-avatar-from-instagram-username/32783/1 "2021-10-07T20:52:05Z")

</div>

Hey guys, new challange!

Can we pick the user instagram avatar from instagram username?

**Example**

User name: `willsmith`

---

<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: [October 7, 2021, 10:50pm UTC](https://community.glideapps.com/t/can-we-pick-the-user-instagram-avatar-from-instagram-username/32783/2 "2021-10-07T22:50:09Z")

</div>

There’s no direct way to do that I think. You would have to fetch the link from Instagram’s API.

The link to fetch, taking @willsmith as an example:

`https://www.instagram.com/willsmith/?__a=1`

The profile image URL (profile\_pic\_url\_hd):

> [https://instagram.fsgn5-10.fna.fbcdn.net/v/t51.2885-19/s320x320/140570243\_693797584646033\_2762531085115909555\_n.jpg?\_nc\_ht=instagram.fsgn5-10.fna.fbcdn.net&\_nc\_ohc=Tgakxnj7Rj8AX-SjmEL&edm=ABfd0MgBAAAA&ccb=7-4&oh=0f87125fd4f97961aba93863dfceba80&oe=6166B1D8&\_nc\_sid=7bff83](https://instagram.fsgn5-10.fna.fbcdn.net/v/t51.2885-19/s320x320/140570243_693797584646033_2762531085115909555_n.jpg?_nc_ht=instagram.fsgn5-10.fna.fbcdn.net&_nc_ohc=Tgakxnj7Rj8AX-SjmEL&edm=ABfd0MgBAAAA&ccb=7-4&oh=0f87125fd4f97961aba93863dfceba80&oe=6166B1D8&_nc_sid=7bff83)

[https://unavatar.io/](https://unavatar.io/) seems to offer it but you have to get a Microlink Pro account.

---

<div class="post-metadata">

### Author: ![Lucas\_Pires](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/lucas_pires/32/64863_2.png) [@Lucas\_Pires](https://community.glideapps.com/u/Lucas_Pires)
#### Post date: [October 8, 2021, 1:16am UTC](https://community.glideapps.com/t/can-we-pick-the-user-instagram-avatar-from-instagram-username/32783/3 "2021-10-08T01:16:41Z")

</div>

I’d like to get it by username by I don’t have any knowledge to do it @ThinhDinh

---

<div class="post-metadata">

### Author: ![Maxim\_KM](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/maxim_km/32/29274_2.png) [@Maxim\_KM](https://community.glideapps.com/u/Maxim_KM)
#### Post date: [October 8, 2021, 5:28am UTC](https://community.glideapps.com/t/can-we-pick-the-user-instagram-avatar-from-instagram-username/32783/4 "2021-10-08T05:28:25Z")

</div>

with Cloudinary you can get an avatar in a simple manner

> **[Display Instagram and Google+ profile pictures in your website and mobile app](https://cloudinary.com/blog/display_instagram_and_google_profile_pictures_in_your_website_and_mobile_app)**
>
> How to retrieve Instagram or Google+ profile pictures of users, dynamically adapt them to your site's look and feel, and embed them on your site or mobile app.

---

<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: [October 8, 2021, 7:57am UTC](https://community.glideapps.com/t/can-we-pick-the-user-instagram-avatar-from-instagram-username/32783/5 "2021-10-08T07:57:26Z")

</div>

![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/3/b/3b78f56460243577338316267977255ad8170a21.png)

Is it still available?

---

<div class="post-metadata">

### Author: ![Maxim\_KM](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/maxim_km/32/29274_2.png) [@Maxim\_KM](https://community.glideapps.com/u/Maxim_KM)
#### Post date: [October 8, 2021, 8:44am UTC](https://community.glideapps.com/t/can-we-pick-the-user-instagram-avatar-from-instagram-username/32783/6 "2021-10-08T08:44:44Z")

</div>

Oh, sorry. Didn’t know that Instagram is no longer available.

---

<div class="post-metadata">

### Author: ![Lucas\_Pires](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/lucas_pires/32/64863_2.png) [@Lucas\_Pires](https://community.glideapps.com/u/Lucas_Pires)
#### Post date: [October 9, 2021, 7:25pm UTC](https://community.glideapps.com/t/can-we-pick-the-user-instagram-avatar-from-instagram-username/32783/7 "2021-10-09T19:25:21Z")

</div>

Can @Manu.n @Roldy @SantiagoPerez or someone else achieve this? One of my client wants it, but we can figure it out how to do it instead of manually 😕

---

<div class="post-metadata">

### Author: ![Manu.n](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/manu.n/32/11679_2.png) [@Manu.n](https://community.glideapps.com/u/Manu.n)
#### Post date: [October 9, 2021, 7:47pm UTC](https://community.glideapps.com/t/can-we-pick-the-user-instagram-avatar-from-instagram-username/32783/8 "2021-10-09T19:47:18Z")

</div>

Hello @Lucas_Pires  
Sorry I can’t help with this operation.

---

<div class="post-metadata">

### Author: ![Lucas\_Pires](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/lucas_pires/32/64863_2.png) [@Lucas\_Pires](https://community.glideapps.com/u/Lucas_Pires)
#### Post date: [October 9, 2021, 7:49pm UTC](https://community.glideapps.com/t/can-we-pick-the-user-instagram-avatar-from-instagram-username/32783/9 "2021-10-09T19:49:03Z")

</div>

Thank you Manu!

---

<div class="post-metadata">

### Author: ![SantiagoPerez](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/santiagoperez/32/16807_2.png) [@SantiagoPerez](https://community.glideapps.com/u/SantiagoPerez)
#### Post date: [October 9, 2021, 8:00pm UTC](https://community.glideapps.com/t/can-we-pick-the-user-instagram-avatar-from-instagram-username/32783/10 "2021-10-09T20:00:06Z")

</div>

No man! Haven’t even tried before.

---

<div class="post-metadata">

### Author: ![Lucas\_Pires](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/lucas_pires/32/64863_2.png) [@Lucas\_Pires](https://community.glideapps.com/u/Lucas_Pires)
#### Post date: [October 9, 2021, 8:01pm UTC](https://community.glideapps.com/t/can-we-pick-the-user-instagram-avatar-from-instagram-username/32783/11 "2021-10-09T20:01:19Z")

</div>

Thank you!

---

<div class="post-metadata">

### Author: ![V88](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/v88/32/90054_2.png) [@V88](https://community.glideapps.com/u/V88)
#### Post date: [October 9, 2021, 8:36pm UTC](https://community.glideapps.com/t/can-we-pick-the-user-instagram-avatar-from-instagram-username/32783/12 "2021-10-09T20:36:58Z")

</div>

> <https://stackoverflow.com/questions/50086945/how-to-get-instagram-profile-picture-via-api>

---

<div class="post-metadata">

### Author: ![V88](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/v88/32/90054_2.png) [@V88](https://community.glideapps.com/u/V88)
#### Post date: [October 9, 2021, 8:37pm UTC](https://community.glideapps.com/t/can-we-pick-the-user-instagram-avatar-from-instagram-username/32783/13 "2021-10-09T20:37:34Z")

</div>

It’s late here so I can’t try it but maybe worth a read

---

<div class="post-metadata">

### Author: ![Lucas\_Pires](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/lucas_pires/32/64863_2.png) [@Lucas\_Pires](https://community.glideapps.com/u/Lucas_Pires)
#### Post date: [October 9, 2021, 9:13pm UTC](https://community.glideapps.com/t/can-we-pick-the-user-instagram-avatar-from-instagram-username/32783/14 "2021-10-09T21:13:10Z")

</div>

It’s not late because I havent achieve this yet. Thanks, gonna take a look!

---

<div class="post-metadata">

### Author: ![Roldy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/roldy/32/36068_2.png) [@Roldy](https://community.glideapps.com/u/Roldy)
#### Post date: [October 9, 2021, 11:09pm UTC](https://community.glideapps.com/t/can-we-pick-the-user-instagram-avatar-from-instagram-username/32783/15 "2021-10-09T23:09:59Z")

</div>

Hi. Happy to help you if I can. But it’s too late here, will try tomorrow.

---

<div class="post-metadata">

### Author: ![Roldy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/roldy/32/36068_2.png) [@Roldy](https://community.glideapps.com/u/Roldy)
#### Post date: [October 10, 2021, 9:08am UTC](https://community.glideapps.com/t/can-we-pick-the-user-instagram-avatar-from-instagram-username/32783/16 "2021-10-10T09:08:59Z")

</div>

It seems to me that the easiest and most feasible way to do this, is as @ThinhDinh indicated at the beginning.  
So, if it were for one of my APPs, I would create an apps script function to be launched frequently with trigger that updates the photo column. If you want to do so, I’ll write it to you, it takes a little while.  
Let me know.

---

<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: [October 10, 2021, 9:10am UTC](https://community.glideapps.com/t/can-we-pick-the-user-instagram-avatar-from-instagram-username/32783/17 "2021-10-10T09:10:26Z")

</div>

Just a warning, be careful as you can run into some kind of hourly or daily limit for accessing the API. I can recall reading about it on StackOverflow like a year ago.

---

<div class="post-metadata">

### Author: ![Roldy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/roldy/32/36068_2.png) [@Roldy](https://community.glideapps.com/u/Roldy)
#### Post date: [October 10, 2021, 9:23am UTC](https://community.glideapps.com/t/can-we-pick-the-user-instagram-avatar-from-instagram-username/32783/18 "2021-10-10T09:23:10Z")

</div>

### Instagram Graph API

Calls to the [Instagram Graph API](https://developers.facebook.com/docs/instagram-api) are counted against the calling app’s call count. An app’s call count is unique for each app and app user pair, and is the number of calls the app has made in a rolling 24 hour window. It is calculated as follows:

`Calls within 24 hours = 4800 * Number of Impressions`

The Number of Impressions is the number of times any content from the app user’s Instagram account has entered a person’s screen within the last 24 hours.

* * *

Thanks to your warning, the function may try to retrieve the information and if it fails then it will try next time. This is because I believe we cannot know the Number of Impressions.  
What do you think @ThinhDinh ?

---

<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: [October 10, 2021, 9:46am UTC](https://community.glideapps.com/t/can-we-pick-the-user-instagram-avatar-from-instagram-username/32783/19 "2021-10-10T09:46:16Z")

</div>

Still seems too risky for my liking considering we don’t know the number of impressions. It can fail anytime.

---

<div class="post-metadata">

### Author: ![Roldy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/roldy/32/36068_2.png) [@Roldy](https://community.glideapps.com/u/Roldy)
#### Post date: [October 10, 2021, 9:53am UTC](https://community.glideapps.com/t/can-we-pick-the-user-instagram-avatar-from-instagram-username/32783/20 "2021-10-10T09:53:53Z")

</div>

Surely, the idea would be to manage failure as well, trying again at the next trigger. It certainly can cost a lot in terms of time quota limits for scripts, especially if there are a lot of profiles to query.  
It all depends on the degree of acceptability of the data in the APP (sometimes the image is there, sometimes not).

[Next page](https://community.glideapps.com/t/can-we-pick-the-user-instagram-avatar-from-instagram-username/32783.md?page=2)
