Any alternative to avatar image urls?

Hi I used this for my discord webhook logs but this link no longer works, is there any other way to get their avatar through a link like this?

https://www.roblox.com/headshot-thumbnail/image?userId="..UserId.."&width=150&height=150&format=png

2 Likes

This endpoint works fine for me, can you maybe send your webhook script?

2 Likes

Those endpoints are all broken. But some reported they work inside the game / studio.
I need endpoints like that for use outside the Roblox platform, like for sending a discord hook with the player picture and so on.

The new endpoint Roblox wants us to use seems to be this one:

https://thumbnails.roblox.com/v1/users/avatar-headshot?userIds=130285655&size=420x420&format=Png&isCircular=false

But instead of displaying a picture it returns a json with a imageUrl field containing the URL for the thumbnail, in my case:

https://tr.rbxcdn.com/091d0730448995b78815cb0cfc443415/420/420/AvatarHeadshot/Png

That requires an extra step and in the case of webhooks sent from inside a Roblox game you would even need a proxy since you cant do HTTP requests to Roblox inside a game.

1 Like

Use a proxy:

https://thumbnails.roproxy.com/v1/users/avatar-headshot?userIds=130285655&size=420x420&format=Png&isCircular=false

1 Like