How would I get a player's Icon URL?

How would I get a player’s Icon URL?

I tried using GetUserThumbnailAsync But that didn’t return a URL.

Is there a way to do this without a proxy?

4 Likes

"http://thumbnails.roblox.com/v1/users/avatar-bust?userIds="..User.UserId.."&size=420x420&format=Png&isCircular=false"

I tried that before, It didn’t work.

I think I need a proxy to use this.

And I don’t want to use one because I think it costs money, And its also really hard to understand how proxy works

"https://thumbnails.roproxy.com/v1/users/avatar-headshot?userIds="..UserID.."&size=720x720&format=Png&isCircular=false"

3 Likes

Can you tell me how to use this?

There is no imageUrl property found.

1 Like

Can you print the response?
It seems to work fine from my browser.

1 Like

Oh never mind, it works.

But can you tell me how can I get the thumbnail of the player too?

and how this url works?

I barely know anything about proxy

If you didn’t know already, the url is using a proxy.
Most APIs can have “roblox” replaced by “roproxy” and it should work.

From my knowledge, proxies are hosted on a server either using money out of pocket or using a hosting service. They use the actual API and just return the results.
I’m not really sure why roblox blocks API requests from their own servers though.

To get the thumbnail of the player you can use this API:
"https://thumbnails.roblox.com/v1/users/avatar?userIds="..UserID.."&size=720x720&format=Png&isCircular=false"
Remember that you can replace roblox.com with roproxy.com to use the proxy version of the url.

Also you can use this to see a list of API urls.

Okay, But can I use other API’s that Roblox doesn’t allow, using this proxy?

And aren’t proxy’s not free to create and host?

why is the proxy free to use even tho it’s costs money to host?

and who is hosting this proxy?

are proxy’s just an api?

Am still really confused.

You can read more about roproxy specifically here.

They may not be paying for it, though, if they are, its probably just to help people out.
Plus they would probably be helping themselves too.

This proxy only works with roblox API urls so it won’t work for stuff like discord.
If you want to use a proxy to access other sites like discord, I suggest searching for other proxies here on the devforum. Just be careful not to click sketchy urls.

If you want to learn more about what proxies are I would suggest reading about them here.

If you need more roblox api’s check it out here: News Targeted | Apis

You can choose between these sizes:
48x48, 50x50, 60x60, 75x75, 100x100, 150x150, 180x180, 353x352, 420x420, 720x720

https://api.newstargeted.com/roblox/users/v1/avatar-headshot?userid=4309939&size=150x150&format=Png&isCircular=false

https://api.newstargeted.com/roblox/users/v1/avatar-bust?userid=4309939&size=150x150&format=Png&isCircular=false

https://api.newstargeted.com/roblox/users/v1/avatar.php?userid=4309939&size=150x150&format=Png&isCircular=false

Thank you very much!

You helped me a lot!

1 Like

Yes, proxies for roblox’s api’s are a simple “redirect” through someone else’s server.
Anyone can host it.

If you can host it yourself, it’s easier to know if something goes down.
I use this GitHub repo with my own theme on webhooks from roblox to discord: https://webhook.newstargeted.com/ (Self-hosting since 2021)

But in most cases, proxies don’t go down unless the site owner changes anything, or they don’t pay for the domain anymore.

Roblox no longer allows direct API links, so we have to go through 3-party websites.
And just so you know.
My site hasn’t been down since 2017 (When it was moved from another host and renamed, my site was originally made in 2014 https://newstargeted.com)

1 Like

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