Is there a way to get a user's game visits thru roblox studio?

I’m making a data game about a player, like Friend Checker. Is there a way to get a player’s game visits that were created by them?

This post here it gives me an error that Roblox Resources cannot be accessed by http services.

Yes, the post also states using the games api for this. However roblox does not allow http requests to its own domains so you have to rely on community made proxies like roproxy or make one yourself. Use this URL endpoint which uses roproxy to redirect the link to roblox:

https://games.roproxy.com/v2/users/{USERID}/games?accessFilter=Public&limit=50

This endpoint should return an array of public games made by the user, there is a “placeVisits” key in each of them, combining all should give you the place visits.

It seems to be printing Error response: HttpError: InvalidUrl - Server

Am i using the script okay?

local url4 = "https://games.roproxy.com/v2/users/{"..userid.."}/games?accessFilter=Public&limit=50"

		local success, output = pcall(function()
			return HttpService:GetAsync(url4)
		end)

		if success then
			local games = HttpService:JSONDecode(output)
			print(games)
		else
			warn("Failed to fetch data: HTTP error or invalid URL.")
			print("Error response: " .. output) -- Show more details of the failure
		end
	end


The curly brackets ( { and } ) were for templates not actually meant to be in the url, removing them should fix your problem.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.