Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

403 Forbidden while using api.roblox.com (api.rprxy.xyz)?

Hello, i am making a custom player list to remove the new fat roblox player list wich is the old and i'm trying to know when someone is following another person so i used api.rprxy.xyz (proxy to use api.roblox.com) the request went well but i'm getting 403 Forbidden back, why?

local http = game:GetService("HttpService")
local client = script.Parent.Parent.Parent --// player
game.Players.PlayerAdded:Connect(function(plr)
local e = http:RequestAsync({
	Url = "https://api.rprxy.xyz/user/following-exists",
	Method = "GET",
	Headers = {
		userId = tostring(plr.UserId),
		followerUserId = tostring(client.UserId)
	}
	})
table.foreach(e,print)
--[[
table.foreach returns:
"
StatusMessage Forbidden
Success false
StatusCode 403
Body {"errors":[{"code":403,"message":"Forbidden"}]}
Headers table (random numbers)
"
--]]
end)

What could i be possibly be doing wrong?

3 comments

0

Don't use table.foreach, it's deprecated, instead use a generic for loop. Also, you know what 403 means? It means forbidden. So make it not forbidden.

0

still, how do i make it not forbidden

0

i'm using a proxy

1 answer

Hi! As stated in the HTTPService wiki page. You may NOT send requests to api.roblox.com

Try using AssetService or something else

4 comments

0

LukaRoblox100, i can send requests to api.roblox.com but i use a proxy instead because if i used api,roblox.com it would drop an error but this is not the case.

0

uhh, but clearly on the wiki it says "This service is not allowed to send requests to any of the Roblox websites such as www.roblox.com or api.roblox.com"

0

its a proxy ohw

0

well... i did some testing in the browser and it also errored

This discussion is preserved as it was. New answers, comments, and votes are closed.