I already have a proxy setup, incase that’s of any help.
Here’s the code, if it’s needed
Players.PlayerAdded:Connect(function(plr)
local data = {
avatar_url = "Trying to get this";
username = gameName.Name.." Notifier";
["content"] = plr.Name.." has joined "..gameName.Name;
}
Proxy:Post(webhook, HttpService:JSONEncode(data))
end)
I don’t have a good internet connection right now, but from off the top of my head I don’t think that the thumbnails API is used for getting avatar thumbnails. Pretty sure it’s the avatars API.
Here are some endpoints that you can use:
I use these all the time in external projects. You just need to have the UserId of the player.
Also just to add onto what @RecanValor said, ensure you know the basics of how to code in the language ur proxy is in. There is no point u trying to get a grip on using the endpoints if u dont know the basics.
The thing ur asking is really something that if you know the basic you should already know. Really if you know the basic you should know this alreday.
Assuming your proxy library has a “Get” function, you can do something like this
local response = Proxy:Get(string.format("https://thumbnails.roblox.com/v1/users/avatar-headshot?userIds=%d&size=150x150&format=Png&isCircular=false", plr.UserId))
local data = HttpService:JSONDecode(response).data
local avatar_url = data[1].imageUrl