Skip to content
Insanerst edited this page Dec 6, 2024 · 3 revisions

Terms Of Use

Before we get started, the main url is https://roproxy-api.onrender.com



There are multiple endpoints in RoProxy which are the following:

/api/user_games/:userId


Function

Getting the game Id's of all the games the user made using the userId


Input/Output

Input

Type: Number
Example: 12345678

Output

Type: JSON
Example: {success:true, response: [12345678,87654321]}


Example Usage

local function fetchUserGames()
	local apiUrl = "https://roproxy-api.onrender.com/api/user_games/123456789"
	local success, response = pcall(function()
		return HttpService:GetAsync(apiUrl)
	end)

	if success then
		local data = HttpService:JSONDecode(response)
		return data.response
	end
end






/api/game_passes/:universeId


Function

Getting the game passes of a specific game using the Universe Id


Input/Output

Input

Type: Number
Example: 98765432

Output

Type:JSON
Example:{success:true, response:[16481863,51781934]}


Example Usage

local function fetchPasses()
	local apiUrl = "https://roproxy-api.onrender.com/api/game_passes/98765432"

	local success, response = pcall(function()
		return HttpService:GetAsync(apiUrl)
	end)

	if success then
		local data = HttpService:JSONDecode(response)
		return data.response
	end
end