I am a developer who specializes in HTTP Service, and for accessing Roblox’s API, you would generally use a proxy to do so. You have to use a proxy because you can’t just access Roblox’s API through Roblox directly because Roblox now blocks these requests. I have been wondering for a while how I could make my own proxy, because there are many reasons as to not using a general one such as the proxy providing wrong, broken, or invalid information.
Main Problem
Since I want to make a proxy, I go to the DeveloperForum and search for help with hosting my own proxy. The only post I could find on this topic is this post, which basically explains why you shouldn’t use proxys such as https://roproxy.com. In this post, I don’t understand the part where it talks about how to host your own proxy.
TLDR
I want to know how to host my own proxy for Roblox’s API that would deliver the same info as Roblox’s API would. If you know a way to do this, please let me know! Thanks!
All you need is a server & some (very) simple code. Assume your server is hosted on the url url. What you want to do then is forward all requests to the appropriate roblox url. I forgot which url it is for the roblox api, but lets say its on roblox. This means that:
------ Pseudo code, not actual code based on any actual language
-- Incoming request
incoming = http.acceptRequest() -- Get incoming request (ex. GET url/avatar <json>
-- Copy the request and forward it to roblox
response = http.send("roblox/".. incoming.ulr, incoming.Method, incoming.content)
http.send(incoming.Source, response)
Essentially all a proxy does is route traffic through itself. So instead of roblox game->roblox api it is roblox game -> proxy -> roblox api