I want to get the amount of friends of a player using HTTPService.
The issue is that it’s giving me this error “HTTP 403 (Forbidden)”
I couldn’t think of any other solutions. I have tried to look for solution on the Developer Hub, did not find anything.
I’m new to using HTTPService and using Roproxy, I wouldn’t be surprised if this mistake could be easily fixable.
Code:
local HTTP = game:GetService("HttpService")
game.Players.PlayerAdded:Connect(function(player)
local URL = 'https://friends.roproxy.com/v1/users/'..player.UserId..'/friends/count'
local Data = HTTP:GetAsync(URL)
for i, v in pairs(Data) do
print(v)
end
end)
I don’t think it could be malformed, when you use roblox.com it works and using the follower endpoints works with roproxy too, but it breaks on ALL friend endpoints using roproxy.
note: When you put the Request URL using roproxy into your URL bar, it says “Access Denied”
I use roproxy in other areas in my script (such as for follower count and following count) and it functions as expected. Are you saying that roproxy isn’t something that can be publicly used?
Have you tried creating your own proxy, and using an authenticated account with noblox or something along similar lines to get friend information? This, I assume, would work.