How to loop trough all gamepasses a player has uploaded?

I need this for a donate pls type game i’m creating.
I’ve already added shirts, pants, tshirts.
But, i can’t figure out how to add gamepasses to it.
Any help is appreciated, i also found Catalog APIs this, but i read trough it and it didn’t make any sense for me.
Is there any way to use the same method as shirts and tshirts?

"https://catalog.roproxy.com/v1/search/items/details?Category=3&Subcategory=13&Limit=30&CreatorName=%s&cursor=%s"

Bump, i need this and i haven’t found a soloution.

Well, i’ve gotten somewhere.

local Gamepasses = "https://search.roproxy.com/catalog/json?CatalogContext=2&Category=34&CreatorID=%s&CurrencyType=0"
local function Gamepass()
		cursor = cursor or ""
		local requestUrl = Gamepasses:format(tostring(userid))
		print(requestUrl)
		local success, result = pcall(function()
			return http:GetAsync(requestUrl)
		end)

		if success then
			if result then
				local success2, result2 = pcall(function()
					return http:JSONDecode(result)
				end)

				if success2 then
					if result2 then
						for _, tshirt in ipairs(result2.data) do
							table.insert(Content, tshirt.id)
						end

						cursor = result2.nextPageCursor
						if cursor then
							return GetContent(username, Content, cursor)
						else
							return Content
						end
					end
				else
					warn(result)
				end
			end
		else
			warn(result)
		end
	end

i’ve found a way to get the “link” to it but i’m not sure if it’s correct

Use those endpoints: https://games.roblox.com/docs#!/Games/get_v2_users_userId_games and https://games.roblox.com/docs#!/GamePasses/get_v1_games_universeId_game_passes

Nevermind i found a soloution like a day later after going insane with HTTPService

You can’t explicitly search for a user’s uploaded gamepasses with that API endpoint.

You could check their owned gamepasses and determine if they were created by them.

1 Like