Grabbing player avatar images from link

So it appears Roblox recently changed how they generate images of users’ avatars, which has broken a minor function of one of our webhooks.

Originally, we used the line

avatar_url = ""..player.UserId

to grab an image of the player’s avatar. This has since broken.

Due to the nature of the way we’re doing this, I don’t think we’d be able to use
Players:GetUserThumbnailAsync, as that’s more for GUIs and things in-game as opposed to external resources.

Currently, when I try to get my own avatar image, it gives me a URL like this:
Which, sadly, doesn’t incorporate the user’s ID at all. Instead, it seems to generate a completely different, longer identifying string. Going through the properties of Player on Documentation, there’s no such thing I can call, so getting this string seems to be impossible.

Does anybody know about any other way to get the link to an image of a user’s avatar using their user ID? It just makes life easier.
This is totally just a silly feature of our webhook which gives face-to-a-name effectively, and we don’t really need it at all, we just like it a lot.

‘rbxthumb://type=Asset&w=420&h=420&id=’ …player.UserId

Breaks the script- throws a HTTP 400 error.
It seems it has an issue with the lack of it being an actual link.

1 Like

AAAND found a fix.
Though our original used the full avatar image, the headshot will do!


Hey, there are image endpoints that you can use to get the full body, you can view them here.

1 Like

Hello! I’ve tried that solution since im having the same problem, but it doesnt show the image. Is there any fix for that? – Nevermind, i just formatted the thumbnail wrong.

1 Like

Look I found the same but full body > ""..player.UserId.."&width=420&height=420&format=png"

sorry for bumping but this doesn’t seem to work anymore, is there any other solution?

Nope. Roblox deprecated the avatar image endpoints and wants us to use the API. Problem is most of us don’t know how.

ahh that’s bad, thank you anyways.