Univerise enpoint for Roblox api returning null

I am trying to recreate the donation booth from the popluar game, Pls Donate; However, when executed in code, the json comes back as “{universeId:“null”}”. But when I attempt to do the exact same thing in the browser, it works 100% of the time!

I tried using different proxies and using it in the browser works, so what gives?

	local GamesByUser = HttpService:GetAsync(("https://games.roproxy.com/v2/users/%s/games?accessFilter=2&limit=10&sortOrder=Asc"):format(`{UserId}`)) -- THIS WORKS!!!
	GamesByUser = HttpService:JSONDecode(GamesByUser)["data"]
	for i, v in next, GamesByUser do
		local NormalGameId = v["id"]
		-- get all the universeId's
		local UniverseId = HttpService:GetAsync(("https://apis.roproxy.com/universes/v1/places/%s/universe"):format(NormalGameId))
		UniverseId = HttpService:JSONDecode(UniverseId)["universeId"] -- THIS RETURNS NULL!!!
		print(UniverseId) -- nil

the id is already the universe ID, you can’t and don’t need to convert it.

1 Like

Thank you! Really opened my eyes there!

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