How to Get Player Profile Picture Link?

Around a month ago I started to notice that webhooks couldn’t get player profile picture.

This is the line that I use for webhooks which is currently broken:

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

Any help would be greatly appreciated!

1 Like

If you are doing this in game, then you should use Players:GetUserThumbnailAsync()

2 Likes

I need to get a link of players profile picture.

local content = Players:GetUserThumbnailAsync(plr.UserId, Enum.ThumbnailType.HeadShot, Enum.ThumbnailSize.Size420x420)

This will return the rbxthumb://. Your other option is a get request from the user api.

the endpoints you’re using are no longer active. you’ll have to use the official thumbnails API to fetch images, which means parsing the thumbnail URL from the response JSON

https://thumbnails.roblox.com/docs

you’ll have to create a little node server to request and return the image URL, or if you’re using a service like IFTTT with a pro subscription, you could use queries and filters to retrieve it

4 Likes

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