How can I change this url into headshot?

hello, so I’m messing around with roblox player thumbnail urls. My question is, how can I make this url into a headshot? This is the url
https://www.roblox.com/Thumbs/Avatar.ashx?x=420&y=420&username=ROBLOX

2 Likes

https://www.roblox.com/headshot-thumbnail/image?userId=1&width=420&height=420&format=png

3 Likes

is there anyway I can do it with the username instead, or no?

No, but you can get a UserId from a username by using Players:GetUserIdFromNameAsync.

1 Like

Hi, do you know how to get full avatar or at least half? I’m trying to get it to work but I can’t find nothing else besides headshot that works. I’ve tried various attempts based on some older DevForum posts.

1 Like

You can just use the AvatarThumbnail. Here’s a proper documentation on it:
https://developer.roblox.com/en-us/api-reference/function/Players/GetUserThumbnailAsync

how would i do this wish a username?

You can’t. You would need to get the UserId from the player’s name using Players:GetUserIdFromNameAsync and then get the user’s image using Players:GetUserThumbnailAsync

2 Likes

Seems like Roblox broke another feature, it doesnt work anymore

1 Like