Why does this script that gets place visits and favorites error? "HttpError: InvalidRedirect"

For my game, I have a system that displays “goals” for the game, like likes and favorites.

Recently, this seems to have stopped working after months of it working.

I don’t know when exactly this happened, but it was sometime recent. Here’s the function I used for getting data:

local placeId = 190749311
local HttpService = game:GetService("HttpService")

local function getGameInfo()
	local stats = {}
	local success, err = pcall(function()
		local API = HttpService:JSONDecode(HttpService:GetAsync('https://www.roproxy.com/places/api-get-details?assetId=' .. placeId, true))
		stats = {
			OnlineCount = API.OnlineCount;
			VisitedCount = API.VisitedCount;
			Name = API.Name;
			Created = API.Created;
			Updated = API.Updated;
			Description = API.Description;
			FavoritedCount = API.FavoritedCount;
			TotalUpVotes = API.TotalUpVotes;
			TotalDownVotes = API.TotalDownVotes
		}
	end)
	if not success then
		print("error with stats thingy")
		warn(tostring(err))
		return "error"
	else	
		return stats
	end
	---return (err and warn(err)) or stats.TotalUpVotes
end

This function prints out “HttpError: InvalidRedirect”. Why? I know this uses roproxy, and I assume the link I used before has been changed, but I can’t find any reliable documentation on the internal links for roproxy.

try using https://games.roproxy.com/v1/games?universeIds=90437549 the response is in a different format so you’ll need to adjust stats

or for votes:
https://games.roblox.com/v1/games/votes?universeIds=90437549 (not sure if roproxy has support for this one)

1 Like

I believe RoProxy is down now :frowning:

https://games.roproxy.com/v1/games?universeIds=90437549 worked.

https://games.roblox.com/v1/games/votes?universeIds=90437549 got blocked by ROBLOX itself:

In any sense, I was able to get my goal billboard back up and running.
image

Thank you!

3 Likes

This appears to be incorrect given my above response

sent you an alternative for getting votes in pms